{"action":"created","comment":{"url":"https://api.github.com/repos/monarch-initiative/phenol/pulls/comments/175464205","pull_request_review_id":104996291,"id":175464205,"diff_hunk":"@@ -40,25 +42,19 @@\n    * @param termId Annotated {@link TermId}.\n    * @param f The frequency the term is annotated with.\n    */\n-  public HpoAnnotation(TermId termId, double f, HpoOnset onset, List<TermId> modifiers) {\n+  private HpoAnnotation(TermId termId, double f, HpoOnset onset, List<TermId> modifiers) {\n     this.termId = termId;\n     this.frequency = f;\n     this.onset = onset != null ? onset : DEFAULT_HPO_ONSET;\n-    this.modifierList = modifiers;\n+    this.modifiers = modifiers;\n   }\n \n-  public HpoAnnotation(TermId t) {\n-    this.termId = t;\n-    this.frequency = DEFAULT_HPO_FREQUENCY.mean();\n-    this.onset = DEFAULT_HPO_ONSET;\n-    this.modifierList = (new ImmutableList.Builder<TermId>()).build();\n+  public static HpoAnnotation forTerm(TermId t) {\n+    return new HpoAnnotation(t,DEFAULT_HPO_FREQUENCY.mean(),DEFAULT_HPO_ONSET,ImmutableList.of());","path":"phenol-core/src/main/java/org/monarchinitiative/phenol/formats/hpo/HpoAnnotation.java","position":38,"original_position":38,"commit_id":"b0715bdfd7ff3e1b5648cf03cbda9102001e071b","original_commit_id":"b0715bdfd7ff3e1b5648cf03cbda9102001e071b","user":{"login":"julesjacobsen","id":1576670,"avatar_url":"https://avatars3.githubusercontent.com/u/1576670?v=4","gravatar_id":"","url":"https://api.github.com/users/julesjacobsen","html_url":"https://github.com/julesjacobsen","followers_url":"https://api.github.com/users/julesjacobsen/followers","following_url":"https://api.github.com/users/julesjacobsen/following{/other_user}","gists_url":"https://api.github.com/users/julesjacobsen/gists{/gist_id}","starred_url":"https://api.github.com/users/julesjacobsen/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/julesjacobsen/subscriptions","organizations_url":"https://api.github.com/users/julesjacobsen/orgs","repos_url":"https://api.github.com/users/julesjacobsen/repos","events_url":"https://api.github.com/users/julesjacobsen/events{/privacy}","received_events_url":"https://api.github.com/users/julesjacobsen/received_events","type":"User","site_admin":false},"body":"This could be as simple as \r\n\r\n```\r\n    return builder(t).build();\r\n```","created_at":"2018-03-19T14:56:18Z","updated_at":"2018-03-19T14:56:18Z","html_url":"https://github.com/monarch-initiative/phenol/pull/61#discussion_r175464205","pull_request_url":"https://api.github.com/repos/monarch-initiative/phenol/pulls/61","author_association":"CONTRIBUTOR","_links":{"self":{"href":"https://api.github.com/repos/monarch-initiative/phenol/pulls/comments/175464205"},"html":{"href":"https://github.com/monarch-initiative/phenol/pull/61#discussion_r175464205"},"pull_request":{"href":"https://api.github.com/repos/monarch-initiative/phenol/pulls/61"}}},"pull_request":{"url":"https://api.github.com/repos/monarch-initiative/phenol/pulls/61","id":175917654,"html_url":"https://github.com/monarch-initiative/phenol/pull/61","diff_url":"https://github.com/monarch-initiative/phenol/pull/61.diff","patch_url":"https://github.com/monarch-initiative/phenol/pull/61.patch","issue_url":"https://api.github.com/repos/monarch-initiative/phenol/issues/61","number":61,"state":"open","locked":false,"title":"Hpo annotation","user":{"login":"pnrobinson","id":4943420,"avatar_url":"https://avatars0.githubusercontent.com/u/4943420?v=4","gravatar_id":"","url":"https://api.github.com/users/pnrobinson","html_url":"https://github.com/pnrobinson","followers_url":"https://api.github.com/users/pnrobinson/followers","following_url":"https://api.github.com/users/pnrobinson/following{/other_user}","gists_url":"https://api.github.com/users/pnrobinson/gists{/gist_id}","starred_url":"https://api.github.com/users/pnrobinson/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pnrobinson/subscriptions","organizations_url":"https://api.github.com/users/pnrobinson/orgs","repos_url":"https://api.github.com/users/pnrobinson/repos","events_url":"https://api.github.com/users/pnrobinson/events{/privacy}","received_events_url":"https://api.github.com/users/pnrobinson/received_events","type":"User","site_admin":false},"body":"Implements improved constructor","created_at":"2018-03-19T14:31:58Z","updated_at":"2018-03-19T14:56:18Z","closed_at":null,"merged_at":null,"merge_commit_sha":"2a70e1d7212b4df21812ac3e1852eed9cd6c0b33","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/monarch-initiative/phenol/pulls/61/commits","review_comments_url":"https://api.github.com/repos/monarch-initiative/phenol/pulls/61/comments","review_comment_url":"https://api.github.com/repos/monarch-initiative/phenol/pulls/comments{/number}","comments_url":"https://api.github.com/repos/monarch-initiative/phenol/issues/61/comments","statuses_url":"https://api.github.com/repos/monarch-initiative/phenol/statuses/b0715bdfd7ff3e1b5648cf03cbda9102001e071b","head":{"label":"monarch-initiative:HpoAnnotation","ref":"HpoAnnotation","sha":"b0715bdfd7ff3e1b5648cf03cbda9102001e071b","user":{"login":"monarch-initiative","id":5161984,"avatar_url":"https://avatars1.githubusercontent.com/u/5161984?v=4","gravatar_id":"","url":"https://api.github.com/users/monarch-initiative","html_url":"https://github.com/monarch-initiative","followers_url":"https://api.github.com/users/monarch-initiative/followers","following_url":"https://api.github.com/users/monarch-initiative/following{/other_user}","gists_url":"https://api.github.com/users/monarch-initiative/gists{/gist_id}","starred_url":"https://api.github.com/users/monarch-initiative/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/monarch-initiative/subscriptions","organizations_url":"https://api.github.com/users/monarch-initiative/orgs","repos_url":"https://api.github.com/users/monarch-initiative/repos","events_url":"https://api.github.com/users/monarch-initiative/events{/privacy}","received_events_url":"https://api.github.com/users/monarch-initiative/received_events","type":"Organization","site_admin":false},"repo":{"id":119170338,"name":"phenol","full_name":"monarch-initiative/phenol","owner":{"login":"monarch-initiative","id":5161984,"avatar_url":"https://avatars1.githubusercontent.com/u/5161984?v=4","gravatar_id":"","url":"https://api.github.com/users/monarch-initiative","html_url":"https://github.com/monarch-initiative","followers_url":"https://api.github.com/users/monarch-initiative/followers","following_url":"https://api.github.com/users/monarch-initiative/following{/other_user}","gists_url":"https://api.github.com/users/monarch-initiative/gists{/gist_id}","starred_url":"https://api.github.com/users/monarch-initiative/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/monarch-initiative/subscriptions","organizations_url":"https://api.github.com/users/monarch-initiative/orgs","repos_url":"https://api.github.com/users/monarch-initiative/repos","events_url":"https://api.github.com/users/monarch-initiative/events{/privacy}","received_events_url":"https://api.github.com/users/monarch-initiative/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/monarch-initiative/phenol","description":"phenol: Phenotype ontology library","fork":false,"url":"https://api.github.com/repos/monarch-initiative/phenol","forks_url":"https://api.github.com/repos/monarch-initiative/phenol/forks","keys_url":"https://api.github.com/repos/monarch-initiative/phenol/keys{/key_id}","collaborators_url":"https://api.github.com/repos/monarch-initiative/phenol/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/monarch-initiative/phenol/teams","hooks_url":"https://api.github.com/repos/monarch-initiative/phenol/hooks","issue_events_url":"https://api.github.com/repos/monarch-initiative/phenol/issues/events{/number}","events_url":"https://api.github.com/repos/monarch-initiative/phenol/events","assignees_url":"https://api.github.com/repos/monarch-initiative/phenol/assignees{/user}","branches_url":"https://api.github.com/repos/monarch-initiative/phenol/branches{/branch}","tags_url":"https://api.github.com/repos/monarch-initiative/phenol/tags","blobs_url":"https://api.github.com/repos/monarch-initiative/phenol/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/monarch-initiative/phenol/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/monarch-initiative/phenol/git/refs{/sha}","trees_url":"https://api.github.com/repos/monarch-initiative/phenol/git/trees{/sha}","statuses_url":"https://api.github.com/repos/monarch-initiative/phenol/statuses/{sha}","languages_url":"https://api.github.com/repos/monarch-initiative/phenol/languages","stargazers_url":"https://api.github.com/repos/monarch-initiative/phenol/stargazers","contributors_url":"https://api.github.com/repos/monarch-initiative/phenol/contributors","subscribers_url":"https://api.github.com/repos/monarch-initiative/phenol/subscribers","subscription_url":"https://api.github.com/repos/monarch-initiative/phenol/subscription","commits_url":"https://api.github.com/repos/monarch-initiative/phenol/commits{/sha}","git_commits_url":"https://api.github.com/repos/monarch-initiative/phenol/git/commits{/sha}","comments_url":"https://api.github.com/repos/monarch-initiative/phenol/comments{/number}","issue_comment_url":"https://api.github.com/repos/monarch-initiative/phenol/issues/comments{/number}","contents_url":"https://api.github.com/repos/monarch-initiative/phenol/contents/{+path}","compare_url":"https://api.github.com/repos/monarch-initiative/phenol/compare/{base}...{head}","merges_url":"https://api.github.com/repos/monarch-initiative/phenol/merges","archive_url":"https://api.github.com/repos/monarch-initiative/phenol/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/monarch-initiative/phenol/downloads","issues_url":"https://api.github.com/repos/monarch-initiative/phenol/issues{/number}","pulls_url":"https://api.github.com/repos/monarch-initiative/phenol/pulls{/number}","milestones_url":"https://api.github.com/repos/monarch-initiative/phenol/milestones{/number}","notifications_url":"https://api.github.com/repos/monarch-initiative/phenol/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/monarch-initiative/phenol/labels{/name}","releases_url":"https://api.github.com/repos/monarch-initiative/phenol/releases{/id}","deployments_url":"https://api.github.com/repos/monarch-initiative/phenol/deployments","created_at":"2018-01-27T14:14:30Z","updated_at":"2018-03-17T17:54:54Z","pushed_at":"2018-03-19T14:31:58Z","git_url":"git://github.com/monarch-initiative/phenol.git","ssh_url":"git@github.com:monarch-initiative/phenol.git","clone_url":"https://github.com/monarch-initiative/phenol.git","svn_url":"https://github.com/monarch-initiative/phenol","homepage":"","size":1048,"stargazers_count":1,"watchers_count":1,"language":"Java","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":10,"license":{"key":"other","name":"Other","spdx_id":null,"url":null},"forks":0,"open_issues":10,"watchers":1,"default_branch":"master"}},"base":{"label":"monarch-initiative:develop","ref":"develop","sha":"686e0ba8581a184d8c1d9e4a591bd939e3626ca9","user":{"login":"monarch-initiative","id":5161984,"avatar_url":"https://avatars1.githubusercontent.com/u/5161984?v=4","gravatar_id":"","url":"https://api.github.com/users/monarch-initiative","html_url":"https://github.com/monarch-initiative","followers_url":"https://api.github.com/users/monarch-initiative/followers","following_url":"https://api.github.com/users/monarch-initiative/following{/other_user}","gists_url":"https://api.github.com/users/monarch-initiative/gists{/gist_id}","starred_url":"https://api.github.com/users/monarch-initiative/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/monarch-initiative/subscriptions","organizations_url":"https://api.github.com/users/monarch-initiative/orgs","repos_url":"https://api.github.com/users/monarch-initiative/repos","events_url":"https://api.github.com/users/monarch-initiative/events{/privacy}","received_events_url":"https://api.github.com/users/monarch-initiative/received_events","type":"Organization","site_admin":false},"repo":{"id":119170338,"name":"phenol","full_name":"monarch-initiative/phenol","owner":{"login":"monarch-initiative","id":5161984,"avatar_url":"https://avatars1.githubusercontent.com/u/5161984?v=4","gravatar_id":"","url":"https://api.github.com/users/monarch-initiative","html_url":"https://github.com/monarch-initiative","followers_url":"https://api.github.com/users/monarch-initiative/followers","following_url":"https://api.github.com/users/monarch-initiative/following{/other_user}","gists_url":"https://api.github.com/users/monarch-initiative/gists{/gist_id}","starred_url":"https://api.github.com/users/monarch-initiative/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/monarch-initiative/subscriptions","organizations_url":"https://api.github.com/users/monarch-initiative/orgs","repos_url":"https://api.github.com/users/monarch-initiative/repos","events_url":"https://api.github.com/users/monarch-initiative/events{/privacy}","received_events_url":"https://api.github.com/users/monarch-initiative/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/monarch-initiative/phenol","description":"phenol: Phenotype ontology library","fork":false,"url":"https://api.github.com/repos/monarch-initiative/phenol","forks_url":"https://api.github.com/repos/monarch-initiative/phenol/forks","keys_url":"https://api.github.com/repos/monarch-initiative/phenol/keys{/key_id}","collaborators_url":"https://api.github.com/repos/monarch-initiative/phenol/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/monarch-initiative/phenol/teams","hooks_url":"https://api.github.com/repos/monarch-initiative/phenol/hooks","issue_events_url":"https://api.github.com/repos/monarch-initiative/phenol/issues/events{/number}","events_url":"https://api.github.com/repos/monarch-initiative/phenol/events","assignees_url":"https://api.github.com/repos/monarch-initiative/phenol/assignees{/user}","branches_url":"https://api.github.com/repos/monarch-initiative/phenol/branches{/branch}","tags_url":"https://api.github.com/repos/monarch-initiative/phenol/tags","blobs_url":"https://api.github.com/repos/monarch-initiative/phenol/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/monarch-initiative/phenol/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/monarch-initiative/phenol/git/refs{/sha}","trees_url":"https://api.github.com/repos/monarch-initiative/phenol/git/trees{/sha}","statuses_url":"https://api.github.com/repos/monarch-initiative/phenol/statuses/{sha}","languages_url":"https://api.github.com/repos/monarch-initiative/phenol/languages","stargazers_url":"https://api.github.com/repos/monarch-initiative/phenol/stargazers","contributors_url":"https://api.github.com/repos/monarch-initiative/phenol/contributors","subscribers_url":"https://api.github.com/repos/monarch-initiative/phenol/subscribers","subscription_url":"https://api.github.com/repos/monarch-initiative/phenol/subscription","commits_url":"https://api.github.com/repos/monarch-initiative/phenol/commits{/sha}","git_commits_url":"https://api.github.com/repos/monarch-initiative/phenol/git/commits{/sha}","comments_url":"https://api.github.com/repos/monarch-initiative/phenol/comments{/number}","issue_comment_url":"https://api.github.com/repos/monarch-initiative/phenol/issues/comments{/number}","contents_url":"https://api.github.com/repos/monarch-initiative/phenol/contents/{+path}","compare_url":"https://api.github.com/repos/monarch-initiative/phenol/compare/{base}...{head}","merges_url":"https://api.github.com/repos/monarch-initiative/phenol/merges","archive_url":"https://api.github.com/repos/monarch-initiative/phenol/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/monarch-initiative/phenol/downloads","issues_url":"https://api.github.com/repos/monarch-initiative/phenol/issues{/number}","pulls_url":"https://api.github.com/repos/monarch-initiative/phenol/pulls{/number}","milestones_url":"https://api.github.com/repos/monarch-initiative/phenol/milestones{/number}","notifications_url":"https://api.github.com/repos/monarch-initiative/phenol/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/monarch-initiative/phenol/labels{/name}","releases_url":"https://api.github.com/repos/monarch-initiative/phenol/releases{/id}","deployments_url":"https://api.github.com/repos/monarch-initiative/phenol/deployments","created_at":"2018-01-27T14:14:30Z","updated_at":"2018-03-17T17:54:54Z","pushed_at":"2018-03-19T14:31:58Z","git_url":"git://github.com/monarch-initiative/phenol.git","ssh_url":"git@github.com:monarch-initiative/phenol.git","clone_url":"https://github.com/monarch-initiative/phenol.git","svn_url":"https://github.com/monarch-initiative/phenol","homepage":"","size":1048,"stargazers_count":1,"watchers_count":1,"language":"Java","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":10,"license":{"key":"other","name":"Other","spdx_id":null,"url":null},"forks":0,"open_issues":10,"watchers":1,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/monarch-initiative/phenol/pulls/61"},"html":{"href":"https://github.com/monarch-initiative/phenol/pull/61"},"issue":{"href":"https://api.github.com/repos/monarch-initiative/phenol/issues/61"},"comments":{"href":"https://api.github.com/repos/monarch-initiative/phenol/issues/61/comments"},"review_comments":{"href":"https://api.github.com/repos/monarch-initiative/phenol/pulls/61/comments"},"review_comment":{"href":"https://api.github.com/repos/monarch-initiative/phenol/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/monarch-initiative/phenol/pulls/61/commits"},"statuses":{"href":"https://api.github.com/repos/monarch-initiative/phenol/statuses/b0715bdfd7ff3e1b5648cf03cbda9102001e071b"}},"author_association":"OWNER"}}
{"actor":{"display_login":"julesjacobsen"}}