{"action":"created","comment":{"url":"https://api.github.com/repos/zeppelin/editorium-ruby/pulls/comments/46271438","id":46271438,"diff_hunk":"@@ -35,7 +37,22 @@ var EditoriumInput = React.createClass({\n     });\n   },\n \n+  sectionLength(data) {\n+    data = data || this.props.value;\n+    return data && data.length > 0 ? JSON.parse(data)['sections'][1].length : 0;\n+  },\n+\n   render() {\n+    switch(this.sectionLength()) {","path":"vendor/assets/javascripts/components/input.js.jsx","position":19,"original_position":19,"commit_id":"61de0e929f0bebadb03119ef60efd18cfb46d707","original_commit_id":"61de0e929f0bebadb03119ef60efd18cfb46d707","user":{"login":"zeppelin","id":97832,"avatar_url":"https://avatars.githubusercontent.com/u/97832?v=3","gravatar_id":"","url":"https://api.github.com/users/zeppelin","html_url":"https://github.com/zeppelin","followers_url":"https://api.github.com/users/zeppelin/followers","following_url":"https://api.github.com/users/zeppelin/following{/other_user}","gists_url":"https://api.github.com/users/zeppelin/gists{/gist_id}","starred_url":"https://api.github.com/users/zeppelin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/zeppelin/subscriptions","organizations_url":"https://api.github.com/users/zeppelin/orgs","repos_url":"https://api.github.com/users/zeppelin/repos","events_url":"https://api.github.com/users/zeppelin/events{/privacy}","received_events_url":"https://api.github.com/users/zeppelin/received_events","type":"User","site_admin":false},"body":"Add space before the `(` paren","created_at":"2015-12-01T12:23:57Z","updated_at":"2015-12-01T12:23:57Z","html_url":"https://github.com/zeppelin/editorium-ruby/pull/4#discussion_r46271438","pull_request_url":"https://api.github.com/repos/zeppelin/editorium-ruby/pulls/4","_links":{"self":{"href":"https://api.github.com/repos/zeppelin/editorium-ruby/pulls/comments/46271438"},"html":{"href":"https://github.com/zeppelin/editorium-ruby/pull/4#discussion_r46271438"},"pull_request":{"href":"https://api.github.com/repos/zeppelin/editorium-ruby/pulls/4"}}},"pull_request":{"url":"https://api.github.com/repos/zeppelin/editorium-ruby/pulls/4","id":52249381,"html_url":"https://github.com/zeppelin/editorium-ruby/pull/4","diff_url":"https://github.com/zeppelin/editorium-ruby/pull/4.diff","patch_url":"https://github.com/zeppelin/editorium-ruby/pull/4.patch","issue_url":"https://api.github.com/repos/zeppelin/editorium-ruby/issues/4","number":4,"state":"open","locked":false,"title":"card","user":{"login":"ikko","id":132140,"avatar_url":"https://avatars.githubusercontent.com/u/132140?v=3","gravatar_id":"","url":"https://api.github.com/users/ikko","html_url":"https://github.com/ikko","followers_url":"https://api.github.com/users/ikko/followers","following_url":"https://api.github.com/users/ikko/following{/other_user}","gists_url":"https://api.github.com/users/ikko/gists{/gist_id}","starred_url":"https://api.github.com/users/ikko/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ikko/subscriptions","organizations_url":"https://api.github.com/users/ikko/orgs","repos_url":"https://api.github.com/users/ikko/repos","events_url":"https://api.github.com/users/ikko/events{/privacy}","received_events_url":"https://api.github.com/users/ikko/received_events","type":"User","site_admin":false},"body":"","created_at":"2015-12-01T12:02:30Z","updated_at":"2015-12-01T12:23:57Z","closed_at":null,"merged_at":null,"merge_commit_sha":"8875db4bcdb0ef2a7fc544d047876e954136d6a4","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/zeppelin/editorium-ruby/pulls/4/commits","review_comments_url":"https://api.github.com/repos/zeppelin/editorium-ruby/pulls/4/comments","review_comment_url":"https://api.github.com/repos/zeppelin/editorium-ruby/pulls/comments{/number}","comments_url":"https://api.github.com/repos/zeppelin/editorium-ruby/issues/4/comments","statuses_url":"https://api.github.com/repos/zeppelin/editorium-ruby/statuses/61de0e929f0bebadb03119ef60efd18cfb46d707","head":{"label":"ikko:master","ref":"master","sha":"61de0e929f0bebadb03119ef60efd18cfb46d707","user":{"login":"ikko","id":132140,"avatar_url":"https://avatars.githubusercontent.com/u/132140?v=3","gravatar_id":"","url":"https://api.github.com/users/ikko","html_url":"https://github.com/ikko","followers_url":"https://api.github.com/users/ikko/followers","following_url":"https://api.github.com/users/ikko/following{/other_user}","gists_url":"https://api.github.com/users/ikko/gists{/gist_id}","starred_url":"https://api.github.com/users/ikko/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ikko/subscriptions","organizations_url":"https://api.github.com/users/ikko/orgs","repos_url":"https://api.github.com/users/ikko/repos","events_url":"https://api.github.com/users/ikko/events{/privacy}","received_events_url":"https://api.github.com/users/ikko/received_events","type":"User","site_admin":false},"repo":{"id":47126602,"name":"editorium-ruby","full_name":"ikko/editorium-ruby","owner":{"login":"ikko","id":132140,"avatar_url":"https://avatars.githubusercontent.com/u/132140?v=3","gravatar_id":"","url":"https://api.github.com/users/ikko","html_url":"https://github.com/ikko","followers_url":"https://api.github.com/users/ikko/followers","following_url":"https://api.github.com/users/ikko/following{/other_user}","gists_url":"https://api.github.com/users/ikko/gists{/gist_id}","starred_url":"https://api.github.com/users/ikko/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ikko/subscriptions","organizations_url":"https://api.github.com/users/ikko/orgs","repos_url":"https://api.github.com/users/ikko/repos","events_url":"https://api.github.com/users/ikko/events{/privacy}","received_events_url":"https://api.github.com/users/ikko/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/ikko/editorium-ruby","description":"WIP","fork":true,"url":"https://api.github.com/repos/ikko/editorium-ruby","forks_url":"https://api.github.com/repos/ikko/editorium-ruby/forks","keys_url":"https://api.github.com/repos/ikko/editorium-ruby/keys{/key_id}","collaborators_url":"https://api.github.com/repos/ikko/editorium-ruby/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/ikko/editorium-ruby/teams","hooks_url":"https://api.github.com/repos/ikko/editorium-ruby/hooks","issue_events_url":"https://api.github.com/repos/ikko/editorium-ruby/issues/events{/number}","events_url":"https://api.github.com/repos/ikko/editorium-ruby/events","assignees_url":"https://api.github.com/repos/ikko/editorium-ruby/assignees{/user}","branches_url":"https://api.github.com/repos/ikko/editorium-ruby/branches{/branch}","tags_url":"https://api.github.com/repos/ikko/editorium-ruby/tags","blobs_url":"https://api.github.com/repos/ikko/editorium-ruby/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/ikko/editorium-ruby/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/ikko/editorium-ruby/git/refs{/sha}","trees_url":"https://api.github.com/repos/ikko/editorium-ruby/git/trees{/sha}","statuses_url":"https://api.github.com/repos/ikko/editorium-ruby/statuses/{sha}","languages_url":"https://api.github.com/repos/ikko/editorium-ruby/languages","stargazers_url":"https://api.github.com/repos/ikko/editorium-ruby/stargazers","contributors_url":"https://api.github.com/repos/ikko/editorium-ruby/contributors","subscribers_url":"https://api.github.com/repos/ikko/editorium-ruby/subscribers","subscription_url":"https://api.github.com/repos/ikko/editorium-ruby/subscription","commits_url":"https://api.github.com/repos/ikko/editorium-ruby/commits{/sha}","git_commits_url":"https://api.github.com/repos/ikko/editorium-ruby/git/commits{/sha}","comments_url":"https://api.github.com/repos/ikko/editorium-ruby/comments{/number}","issue_comment_url":"https://api.github.com/repos/ikko/editorium-ruby/issues/comments{/number}","contents_url":"https://api.github.com/repos/ikko/editorium-ruby/contents/{+path}","compare_url":"https://api.github.com/repos/ikko/editorium-ruby/compare/{base}...{head}","merges_url":"https://api.github.com/repos/ikko/editorium-ruby/merges","archive_url":"https://api.github.com/repos/ikko/editorium-ruby/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/ikko/editorium-ruby/downloads","issues_url":"https://api.github.com/repos/ikko/editorium-ruby/issues{/number}","pulls_url":"https://api.github.com/repos/ikko/editorium-ruby/pulls{/number}","milestones_url":"https://api.github.com/repos/ikko/editorium-ruby/milestones{/number}","notifications_url":"https://api.github.com/repos/ikko/editorium-ruby/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/ikko/editorium-ruby/labels{/name}","releases_url":"https://api.github.com/repos/ikko/editorium-ruby/releases{/id}","created_at":"2015-11-30T15:08:45Z","updated_at":"2015-11-30T15:08:46Z","pushed_at":"2015-12-01T12:02:05Z","git_url":"git://github.com/ikko/editorium-ruby.git","ssh_url":"git@github.com:ikko/editorium-ruby.git","clone_url":"https://github.com/ikko/editorium-ruby.git","svn_url":"https://github.com/ikko/editorium-ruby","homepage":null,"size":38,"stargazers_count":0,"watchers_count":0,"language":"Ruby","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"zeppelin:master","ref":"master","sha":"191695c15f0f62cb4dcca8c0095de5358291551b","user":{"login":"zeppelin","id":97832,"avatar_url":"https://avatars.githubusercontent.com/u/97832?v=3","gravatar_id":"","url":"https://api.github.com/users/zeppelin","html_url":"https://github.com/zeppelin","followers_url":"https://api.github.com/users/zeppelin/followers","following_url":"https://api.github.com/users/zeppelin/following{/other_user}","gists_url":"https://api.github.com/users/zeppelin/gists{/gist_id}","starred_url":"https://api.github.com/users/zeppelin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/zeppelin/subscriptions","organizations_url":"https://api.github.com/users/zeppelin/orgs","repos_url":"https://api.github.com/users/zeppelin/repos","events_url":"https://api.github.com/users/zeppelin/events{/privacy}","received_events_url":"https://api.github.com/users/zeppelin/received_events","type":"User","site_admin":false},"repo":{"id":37986586,"name":"editorium-ruby","full_name":"zeppelin/editorium-ruby","owner":{"login":"zeppelin","id":97832,"avatar_url":"https://avatars.githubusercontent.com/u/97832?v=3","gravatar_id":"","url":"https://api.github.com/users/zeppelin","html_url":"https://github.com/zeppelin","followers_url":"https://api.github.com/users/zeppelin/followers","following_url":"https://api.github.com/users/zeppelin/following{/other_user}","gists_url":"https://api.github.com/users/zeppelin/gists{/gist_id}","starred_url":"https://api.github.com/users/zeppelin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/zeppelin/subscriptions","organizations_url":"https://api.github.com/users/zeppelin/orgs","repos_url":"https://api.github.com/users/zeppelin/repos","events_url":"https://api.github.com/users/zeppelin/events{/privacy}","received_events_url":"https://api.github.com/users/zeppelin/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/zeppelin/editorium-ruby","description":"WIP","fork":false,"url":"https://api.github.com/repos/zeppelin/editorium-ruby","forks_url":"https://api.github.com/repos/zeppelin/editorium-ruby/forks","keys_url":"https://api.github.com/repos/zeppelin/editorium-ruby/keys{/key_id}","collaborators_url":"https://api.github.com/repos/zeppelin/editorium-ruby/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/zeppelin/editorium-ruby/teams","hooks_url":"https://api.github.com/repos/zeppelin/editorium-ruby/hooks","issue_events_url":"https://api.github.com/repos/zeppelin/editorium-ruby/issues/events{/number}","events_url":"https://api.github.com/repos/zeppelin/editorium-ruby/events","assignees_url":"https://api.github.com/repos/zeppelin/editorium-ruby/assignees{/user}","branches_url":"https://api.github.com/repos/zeppelin/editorium-ruby/branches{/branch}","tags_url":"https://api.github.com/repos/zeppelin/editorium-ruby/tags","blobs_url":"https://api.github.com/repos/zeppelin/editorium-ruby/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/zeppelin/editorium-ruby/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/zeppelin/editorium-ruby/git/refs{/sha}","trees_url":"https://api.github.com/repos/zeppelin/editorium-ruby/git/trees{/sha}","statuses_url":"https://api.github.com/repos/zeppelin/editorium-ruby/statuses/{sha}","languages_url":"https://api.github.com/repos/zeppelin/editorium-ruby/languages","stargazers_url":"https://api.github.com/repos/zeppelin/editorium-ruby/stargazers","contributors_url":"https://api.github.com/repos/zeppelin/editorium-ruby/contributors","subscribers_url":"https://api.github.com/repos/zeppelin/editorium-ruby/subscribers","subscription_url":"https://api.github.com/repos/zeppelin/editorium-ruby/subscription","commits_url":"https://api.github.com/repos/zeppelin/editorium-ruby/commits{/sha}","git_commits_url":"https://api.github.com/repos/zeppelin/editorium-ruby/git/commits{/sha}","comments_url":"https://api.github.com/repos/zeppelin/editorium-ruby/comments{/number}","issue_comment_url":"https://api.github.com/repos/zeppelin/editorium-ruby/issues/comments{/number}","contents_url":"https://api.github.com/repos/zeppelin/editorium-ruby/contents/{+path}","compare_url":"https://api.github.com/repos/zeppelin/editorium-ruby/compare/{base}...{head}","merges_url":"https://api.github.com/repos/zeppelin/editorium-ruby/merges","archive_url":"https://api.github.com/repos/zeppelin/editorium-ruby/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/zeppelin/editorium-ruby/downloads","issues_url":"https://api.github.com/repos/zeppelin/editorium-ruby/issues{/number}","pulls_url":"https://api.github.com/repos/zeppelin/editorium-ruby/pulls{/number}","milestones_url":"https://api.github.com/repos/zeppelin/editorium-ruby/milestones{/number}","notifications_url":"https://api.github.com/repos/zeppelin/editorium-ruby/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/zeppelin/editorium-ruby/labels{/name}","releases_url":"https://api.github.com/repos/zeppelin/editorium-ruby/releases{/id}","created_at":"2015-06-24T13:39:40Z","updated_at":"2015-10-15T13:05:40Z","pushed_at":"2015-12-01T12:02:31Z","git_url":"git://github.com/zeppelin/editorium-ruby.git","ssh_url":"git@github.com:zeppelin/editorium-ruby.git","clone_url":"https://github.com/zeppelin/editorium-ruby.git","svn_url":"https://github.com/zeppelin/editorium-ruby","homepage":null,"size":24,"stargazers_count":0,"watchers_count":0,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":2,"mirror_url":null,"open_issues_count":1,"forks":2,"open_issues":1,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/zeppelin/editorium-ruby/pulls/4"},"html":{"href":"https://github.com/zeppelin/editorium-ruby/pull/4"},"issue":{"href":"https://api.github.com/repos/zeppelin/editorium-ruby/issues/4"},"comments":{"href":"https://api.github.com/repos/zeppelin/editorium-ruby/issues/4/comments"},"review_comments":{"href":"https://api.github.com/repos/zeppelin/editorium-ruby/pulls/4/comments"},"review_comment":{"href":"https://api.github.com/repos/zeppelin/editorium-ruby/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/zeppelin/editorium-ruby/pulls/4/commits"},"statuses":{"href":"https://api.github.com/repos/zeppelin/editorium-ruby/statuses/61de0e929f0bebadb03119ef60efd18cfb46d707"}}}}