{"action":"created","comment":{"url":"https://api.github.com/repos/phenotips/phenotips/pulls/comments/29997858","id":29997858,"diff_hunk":"@@ -4693,6 +4693,177 @@ document.observe(\"xwiki:dom:loaded\", function() {\n   </object>\n   <object>\n     <name>PhenoTips.Widgets</name>\n+    <number>13</number>\n+    <className>XWiki.JavaScriptExtension</className>\n+    <guid>d823f086-78f1-4019-8747-fcd55d2bd448</guid>\n+    <class>\n+      <name>XWiki.JavaScriptExtension</name>\n+      <customClass/>\n+      <customMapping/>\n+      <defaultViewSheet/>\n+      <defaultEditSheet/>\n+      <defaultWeb/>\n+      <nameField/>\n+      <validationScript/>\n+      <cache>\n+        <cache>0</cache>\n+        <disabled>0</disabled>\n+        <displayType>select</displayType>\n+        <multiSelect>0</multiSelect>\n+        <name>cache</name>\n+        <number>5</number>\n+        <prettyName>Caching policy</prettyName>\n+        <relationalStorage>0</relationalStorage>\n+        <separator> </separator>\n+        <separators> ,|</separators>\n+        <size>1</size>\n+        <unmodifiable>0</unmodifiable>\n+        <values>long|short|default|forbid</values>\n+        <classType>com.xpn.xwiki.objects.classes.StaticListClass</classType>\n+      </cache>\n+      <code>\n+        <disabled>0</disabled>\n+        <name>code</name>\n+        <number>2</number>\n+        <prettyName>Code</prettyName>\n+        <rows>20</rows>\n+        <size>50</size>\n+        <unmodifiable>0</unmodifiable>\n+        <classType>com.xpn.xwiki.objects.classes.TextAreaClass</classType>\n+      </code>\n+      <name>\n+        <disabled>0</disabled>\n+        <name>name</name>\n+        <number>1</number>\n+        <prettyName>Name</prettyName>\n+        <size>30</size>\n+        <unmodifiable>0</unmodifiable>\n+        <classType>com.xpn.xwiki.objects.classes.StringClass</classType>\n+      </name>\n+      <parse>\n+        <disabled>0</disabled>\n+        <displayFormType>select</displayFormType>\n+        <displayType>yesno</displayType>\n+        <name>parse</name>\n+        <number>4</number>\n+        <prettyName>Parse content</prettyName>\n+        <unmodifiable>0</unmodifiable>\n+        <classType>com.xpn.xwiki.objects.classes.BooleanClass</classType>\n+      </parse>\n+      <use>\n+        <cache>0</cache>\n+        <disabled>0</disabled>\n+        <displayType>select</displayType>\n+        <multiSelect>0</multiSelect>\n+        <name>use</name>\n+        <number>3</number>\n+        <prettyName>Use this extension</prettyName>\n+        <relationalStorage>0</relationalStorage>\n+        <separator> </separator>\n+        <separators> ,|</separators>\n+        <size>1</size>\n+        <unmodifiable>0</unmodifiable>\n+        <values>currentPage=Always on this page|onDemand=On demand|always=Always on this wiki</values>\n+        <classType>com.xpn.xwiki.objects.classes.StaticListClass</classType>\n+      </use>\n+    </class>\n+    <property>\n+      <cache>default</cache>\n+    </property>\n+    <property>\n+      <code>var PhenoTips = (function(PhenoTips) {\n+  var widgets = PhenoTips.widgets = PhenoTips.widgets || {};\n+  widgets.SegmentedBar = Class.create({\n+    DEFAULT_SEGMENTS : 5,\n+    DEFAULT_FILL : '#777',\n+    DEFAULT_BORDER : '#777',\n+    DEFAULT_SEGMENT_HEIGHT : '5px',\n+    DEFAULT_DISPLAY_PERCENT_VALUE_FLAG : true,\n+    /**\n+    A PhenoTips widget for creating a segment bar html element. Example:\n+\n+        var barOptions = {\n+          segments : 10,\n+          fill: '#625',\n+          border : '#987',\n+          segmentHeight : '10px',\n+          segmentWidth : '3px',\n+          displayPercentValueFlag : false\n+        };\n+        container.insert(new PhenoTips.widgets.SegmentedBar(score, barOptions).generateSegmentedBar());\n+\n+    @param value The value that this bar is meant to display. Must be between 0 and 1.\n+\n+    @param options Options for styling the segmented bar, all values are optional:\n+\n+    {\n+      segments: The number of segments in the bar. Default is 5.,","path":"components/widgets/ui/src/main/resources/PhenoTips/Widgets.xml","position":108,"original_position":108,"commit_id":"7ddfe6822d6e22a43b887d4ecd30d02795b6e39b","original_commit_id":"7ddfe6822d6e22a43b887d4ecd30d02795b6e39b","user":{"login":"sdumitriu","id":88663,"avatar_url":"https://avatars.githubusercontent.com/u/88663?v=3","gravatar_id":"","url":"https://api.github.com/users/sdumitriu","html_url":"https://github.com/sdumitriu","followers_url":"https://api.github.com/users/sdumitriu/followers","following_url":"https://api.github.com/users/sdumitriu/following{/other_user}","gists_url":"https://api.github.com/users/sdumitriu/gists{/gist_id}","starred_url":"https://api.github.com/users/sdumitriu/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sdumitriu/subscriptions","organizations_url":"https://api.github.com/users/sdumitriu/orgs","repos_url":"https://api.github.com/users/sdumitriu/repos","events_url":"https://api.github.com/users/sdumitriu/events{/privacy}","received_events_url":"https://api.github.com/users/sdumitriu/received_events","type":"User","site_admin":false},"body":"The `.,` at the end looks weird, choose one.","created_at":"2015-05-10T01:33:33Z","updated_at":"2015-05-10T01:33:33Z","html_url":"https://github.com/phenotips/phenotips/pull/1650#discussion_r29997858","pull_request_url":"https://api.github.com/repos/phenotips/phenotips/pulls/1650","_links":{"self":{"href":"https://api.github.com/repos/phenotips/phenotips/pulls/comments/29997858"},"html":{"href":"https://github.com/phenotips/phenotips/pull/1650#discussion_r29997858"},"pull_request":{"href":"https://api.github.com/repos/phenotips/phenotips/pulls/1650"}}},"pull_request":{"url":"https://api.github.com/repos/phenotips/phenotips/pulls/1650","id":34921068,"html_url":"https://github.com/phenotips/phenotips/pull/1650","diff_url":"https://github.com/phenotips/phenotips/pull/1650.diff","patch_url":"https://github.com/phenotips/phenotips/pull/1650.patch","issue_url":"https://api.github.com/repos/phenotips/phenotips/issues/1650","number":1650,"state":"open","locked":false,"title":"Issue #1649: Segmented bar should be a widget","user":{"login":"mjshepherd","id":9931605,"avatar_url":"https://avatars.githubusercontent.com/u/9931605?v=3","gravatar_id":"","url":"https://api.github.com/users/mjshepherd","html_url":"https://github.com/mjshepherd","followers_url":"https://api.github.com/users/mjshepherd/followers","following_url":"https://api.github.com/users/mjshepherd/following{/other_user}","gists_url":"https://api.github.com/users/mjshepherd/gists{/gist_id}","starred_url":"https://api.github.com/users/mjshepherd/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mjshepherd/subscriptions","organizations_url":"https://api.github.com/users/mjshepherd/orgs","repos_url":"https://api.github.com/users/mjshepherd/repos","events_url":"https://api.github.com/users/mjshepherd/events{/privacy}","received_events_url":"https://api.github.com/users/mjshepherd/received_events","type":"User","site_admin":false},"body":"Put the code in widgets.xml, wasn't sure where it should go.","created_at":"2015-05-07T14:29:49Z","updated_at":"2015-05-10T01:33:33Z","closed_at":null,"merged_at":null,"merge_commit_sha":"2cd6025005116da16bed7b43c2a5631364bc912b","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/phenotips/phenotips/pulls/1650/commits","review_comments_url":"https://api.github.com/repos/phenotips/phenotips/pulls/1650/comments","review_comment_url":"https://api.github.com/repos/phenotips/phenotips/pulls/comments{/number}","comments_url":"https://api.github.com/repos/phenotips/phenotips/issues/1650/comments","statuses_url":"https://api.github.com/repos/phenotips/phenotips/statuses/7ddfe6822d6e22a43b887d4ecd30d02795b6e39b","head":{"label":"mjshepherd:Issue-#1649","ref":"Issue-#1649","sha":"7ddfe6822d6e22a43b887d4ecd30d02795b6e39b","user":{"login":"mjshepherd","id":9931605,"avatar_url":"https://avatars.githubusercontent.com/u/9931605?v=3","gravatar_id":"","url":"https://api.github.com/users/mjshepherd","html_url":"https://github.com/mjshepherd","followers_url":"https://api.github.com/users/mjshepherd/followers","following_url":"https://api.github.com/users/mjshepherd/following{/other_user}","gists_url":"https://api.github.com/users/mjshepherd/gists{/gist_id}","starred_url":"https://api.github.com/users/mjshepherd/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mjshepherd/subscriptions","organizations_url":"https://api.github.com/users/mjshepherd/orgs","repos_url":"https://api.github.com/users/mjshepherd/repos","events_url":"https://api.github.com/users/mjshepherd/events{/privacy}","received_events_url":"https://api.github.com/users/mjshepherd/received_events","type":"User","site_admin":false},"repo":{"id":35223758,"name":"phenotips","full_name":"mjshepherd/phenotips","owner":{"login":"mjshepherd","id":9931605,"avatar_url":"https://avatars.githubusercontent.com/u/9931605?v=3","gravatar_id":"","url":"https://api.github.com/users/mjshepherd","html_url":"https://github.com/mjshepherd","followers_url":"https://api.github.com/users/mjshepherd/followers","following_url":"https://api.github.com/users/mjshepherd/following{/other_user}","gists_url":"https://api.github.com/users/mjshepherd/gists{/gist_id}","starred_url":"https://api.github.com/users/mjshepherd/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mjshepherd/subscriptions","organizations_url":"https://api.github.com/users/mjshepherd/orgs","repos_url":"https://api.github.com/users/mjshepherd/repos","events_url":"https://api.github.com/users/mjshepherd/events{/privacy}","received_events_url":"https://api.github.com/users/mjshepherd/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/mjshepherd/phenotips","description":"PhenoTips provides an easy-to-use Web interface and standardized database back-end for collecting clinical findings observed in patients with possible genetic disorders.","fork":true,"url":"https://api.github.com/repos/mjshepherd/phenotips","forks_url":"https://api.github.com/repos/mjshepherd/phenotips/forks","keys_url":"https://api.github.com/repos/mjshepherd/phenotips/keys{/key_id}","collaborators_url":"https://api.github.com/repos/mjshepherd/phenotips/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/mjshepherd/phenotips/teams","hooks_url":"https://api.github.com/repos/mjshepherd/phenotips/hooks","issue_events_url":"https://api.github.com/repos/mjshepherd/phenotips/issues/events{/number}","events_url":"https://api.github.com/repos/mjshepherd/phenotips/events","assignees_url":"https://api.github.com/repos/mjshepherd/phenotips/assignees{/user}","branches_url":"https://api.github.com/repos/mjshepherd/phenotips/branches{/branch}","tags_url":"https://api.github.com/repos/mjshepherd/phenotips/tags","blobs_url":"https://api.github.com/repos/mjshepherd/phenotips/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/mjshepherd/phenotips/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/mjshepherd/phenotips/git/refs{/sha}","trees_url":"https://api.github.com/repos/mjshepherd/phenotips/git/trees{/sha}","statuses_url":"https://api.github.com/repos/mjshepherd/phenotips/statuses/{sha}","languages_url":"https://api.github.com/repos/mjshepherd/phenotips/languages","stargazers_url":"https://api.github.com/repos/mjshepherd/phenotips/stargazers","contributors_url":"https://api.github.com/repos/mjshepherd/phenotips/contributors","subscribers_url":"https://api.github.com/repos/mjshepherd/phenotips/subscribers","subscription_url":"https://api.github.com/repos/mjshepherd/phenotips/subscription","commits_url":"https://api.github.com/repos/mjshepherd/phenotips/commits{/sha}","git_commits_url":"https://api.github.com/repos/mjshepherd/phenotips/git/commits{/sha}","comments_url":"https://api.github.com/repos/mjshepherd/phenotips/comments{/number}","issue_comment_url":"https://api.github.com/repos/mjshepherd/phenotips/issues/comments{/number}","contents_url":"https://api.github.com/repos/mjshepherd/phenotips/contents/{+path}","compare_url":"https://api.github.com/repos/mjshepherd/phenotips/compare/{base}...{head}","merges_url":"https://api.github.com/repos/mjshepherd/phenotips/merges","archive_url":"https://api.github.com/repos/mjshepherd/phenotips/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/mjshepherd/phenotips/downloads","issues_url":"https://api.github.com/repos/mjshepherd/phenotips/issues{/number}","pulls_url":"https://api.github.com/repos/mjshepherd/phenotips/pulls{/number}","milestones_url":"https://api.github.com/repos/mjshepherd/phenotips/milestones{/number}","notifications_url":"https://api.github.com/repos/mjshepherd/phenotips/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/mjshepherd/phenotips/labels{/name}","releases_url":"https://api.github.com/repos/mjshepherd/phenotips/releases{/id}","created_at":"2015-05-07T14:10:06Z","updated_at":"2015-05-07T14:10:11Z","pushed_at":"2015-05-07T14:28:21Z","git_url":"git://github.com/mjshepherd/phenotips.git","ssh_url":"git@github.com:mjshepherd/phenotips.git","clone_url":"https://github.com/mjshepherd/phenotips.git","svn_url":"https://github.com/mjshepherd/phenotips","homepage":"http://phenotips.org/","size":366166,"stargazers_count":0,"watchers_count":0,"language":"Java","has_issues":false,"has_downloads":true,"has_wiki":false,"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":"phenotips:master","ref":"master","sha":"c0e80b96ad765ba1bb212030fc897ade8083f1bb","user":{"login":"phenotips","id":4872353,"avatar_url":"https://avatars.githubusercontent.com/u/4872353?v=3","gravatar_id":"","url":"https://api.github.com/users/phenotips","html_url":"https://github.com/phenotips","followers_url":"https://api.github.com/users/phenotips/followers","following_url":"https://api.github.com/users/phenotips/following{/other_user}","gists_url":"https://api.github.com/users/phenotips/gists{/gist_id}","starred_url":"https://api.github.com/users/phenotips/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/phenotips/subscriptions","organizations_url":"https://api.github.com/users/phenotips/orgs","repos_url":"https://api.github.com/users/phenotips/repos","events_url":"https://api.github.com/users/phenotips/events{/privacy}","received_events_url":"https://api.github.com/users/phenotips/received_events","type":"Organization","site_admin":false},"repo":{"id":2685841,"name":"phenotips","full_name":"phenotips/phenotips","owner":{"login":"phenotips","id":4872353,"avatar_url":"https://avatars.githubusercontent.com/u/4872353?v=3","gravatar_id":"","url":"https://api.github.com/users/phenotips","html_url":"https://github.com/phenotips","followers_url":"https://api.github.com/users/phenotips/followers","following_url":"https://api.github.com/users/phenotips/following{/other_user}","gists_url":"https://api.github.com/users/phenotips/gists{/gist_id}","starred_url":"https://api.github.com/users/phenotips/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/phenotips/subscriptions","organizations_url":"https://api.github.com/users/phenotips/orgs","repos_url":"https://api.github.com/users/phenotips/repos","events_url":"https://api.github.com/users/phenotips/events{/privacy}","received_events_url":"https://api.github.com/users/phenotips/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/phenotips/phenotips","description":"PhenoTips provides an easy-to-use Web interface and standardized database back-end for collecting clinical findings observed in patients with possible genetic disorders.","fork":false,"url":"https://api.github.com/repos/phenotips/phenotips","forks_url":"https://api.github.com/repos/phenotips/phenotips/forks","keys_url":"https://api.github.com/repos/phenotips/phenotips/keys{/key_id}","collaborators_url":"https://api.github.com/repos/phenotips/phenotips/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/phenotips/phenotips/teams","hooks_url":"https://api.github.com/repos/phenotips/phenotips/hooks","issue_events_url":"https://api.github.com/repos/phenotips/phenotips/issues/events{/number}","events_url":"https://api.github.com/repos/phenotips/phenotips/events","assignees_url":"https://api.github.com/repos/phenotips/phenotips/assignees{/user}","branches_url":"https://api.github.com/repos/phenotips/phenotips/branches{/branch}","tags_url":"https://api.github.com/repos/phenotips/phenotips/tags","blobs_url":"https://api.github.com/repos/phenotips/phenotips/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/phenotips/phenotips/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/phenotips/phenotips/git/refs{/sha}","trees_url":"https://api.github.com/repos/phenotips/phenotips/git/trees{/sha}","statuses_url":"https://api.github.com/repos/phenotips/phenotips/statuses/{sha}","languages_url":"https://api.github.com/repos/phenotips/phenotips/languages","stargazers_url":"https://api.github.com/repos/phenotips/phenotips/stargazers","contributors_url":"https://api.github.com/repos/phenotips/phenotips/contributors","subscribers_url":"https://api.github.com/repos/phenotips/phenotips/subscribers","subscription_url":"https://api.github.com/repos/phenotips/phenotips/subscription","commits_url":"https://api.github.com/repos/phenotips/phenotips/commits{/sha}","git_commits_url":"https://api.github.com/repos/phenotips/phenotips/git/commits{/sha}","comments_url":"https://api.github.com/repos/phenotips/phenotips/comments{/number}","issue_comment_url":"https://api.github.com/repos/phenotips/phenotips/issues/comments{/number}","contents_url":"https://api.github.com/repos/phenotips/phenotips/contents/{+path}","compare_url":"https://api.github.com/repos/phenotips/phenotips/compare/{base}...{head}","merges_url":"https://api.github.com/repos/phenotips/phenotips/merges","archive_url":"https://api.github.com/repos/phenotips/phenotips/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/phenotips/phenotips/downloads","issues_url":"https://api.github.com/repos/phenotips/phenotips/issues{/number}","pulls_url":"https://api.github.com/repos/phenotips/phenotips/pulls{/number}","milestones_url":"https://api.github.com/repos/phenotips/phenotips/milestones{/number}","notifications_url":"https://api.github.com/repos/phenotips/phenotips/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/phenotips/phenotips/labels{/name}","releases_url":"https://api.github.com/repos/phenotips/phenotips/releases{/id}","created_at":"2011-11-01T05:55:21Z","updated_at":"2015-05-08T06:43:06Z","pushed_at":"2015-05-08T22:58:40Z","git_url":"git://github.com/phenotips/phenotips.git","ssh_url":"git@github.com:phenotips/phenotips.git","clone_url":"https://github.com/phenotips/phenotips.git","svn_url":"https://github.com/phenotips/phenotips","homepage":"http://phenotips.org/","size":391848,"stargazers_count":6,"watchers_count":6,"language":"Java","has_issues":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":5,"mirror_url":null,"open_issues_count":269,"forks":5,"open_issues":269,"watchers":6,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/phenotips/phenotips/pulls/1650"},"html":{"href":"https://github.com/phenotips/phenotips/pull/1650"},"issue":{"href":"https://api.github.com/repos/phenotips/phenotips/issues/1650"},"comments":{"href":"https://api.github.com/repos/phenotips/phenotips/issues/1650/comments"},"review_comments":{"href":"https://api.github.com/repos/phenotips/phenotips/pulls/1650/comments"},"review_comment":{"href":"https://api.github.com/repos/phenotips/phenotips/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/phenotips/phenotips/pulls/1650/commits"},"statuses":{"href":"https://api.github.com/repos/phenotips/phenotips/statuses/7ddfe6822d6e22a43b887d4ecd30d02795b6e39b"}}}}