{"action":"created","comment":{"url":"https://api.github.com/repos/wikirate/wikirate/pulls/comments/217178523","pull_request_review_id":154831120,"id":217178523,"node_id":"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDIxNzE3ODUyMw==","diff_hunk":"@@ -14,15 +14,34 @@ def self.included host_class\n end\n \n def metric_part full_name=name\n-  full_name.to_name.parts[0..(-1 - generation)].join(\"+\")\n+  parts = full_name.to_name.parts\n+  metric_parts = parts[0..(-1 - generation)]\n+  if metric_parts.size > 2 && company_with_plus?(parts)\n+    metric_parts[0..1].join Cardname.joint\n+  else\n+    metric_parts.join Cardname.joint\n+  end\n end\n \n def year_part full_name=name\n   full_name.to_name.parts[1 - generation]\n end\n \n def company_part full_name=name\n-  full_name.to_name.parts[-generation]\n+  parts = full_name.to_name.parts\n+  if parts.size - generation == 3 && company_with_plus?(parts)\n+    parts[-generation - 1..-generation].join Cardname.joint\n+  else\n+    parts[-generation]\n+  end","path":"mod/metrics/set/abstract/01_metric_child.rb","position":25,"original_position":25,"commit_id":"7e2ffecf56c9d6cc6c2115df6dd68959bdc1e25d","original_commit_id":"7e2ffecf56c9d6cc6c2115df6dd68959bdc1e25d","user":{"login":"ethn","id":21904,"node_id":"MDQ6VXNlcjIxOTA0","avatar_url":"https://avatars1.githubusercontent.com/u/21904?v=4","gravatar_id":"","url":"https://api.github.com/users/ethn","html_url":"https://github.com/ethn","followers_url":"https://api.github.com/users/ethn/followers","following_url":"https://api.github.com/users/ethn/following{/other_user}","gists_url":"https://api.github.com/users/ethn/gists{/gist_id}","starred_url":"https://api.github.com/users/ethn/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ethn/subscriptions","organizations_url":"https://api.github.com/users/ethn/orgs","repos_url":"https://api.github.com/users/ethn/repos","events_url":"https://api.github.com/users/ethn/events{/privacy}","received_events_url":"https://api.github.com/users/ethn/received_events","type":"User","site_admin":false},"body":"(and here)","created_at":"2018-09-12T20:32:27Z","updated_at":"2018-09-12T20:37:59Z","html_url":"https://github.com/wikirate/wikirate/pull/889#discussion_r217178523","pull_request_url":"https://api.github.com/repos/wikirate/wikirate/pulls/889","author_association":"COLLABORATOR","_links":{"self":{"href":"https://api.github.com/repos/wikirate/wikirate/pulls/comments/217178523"},"html":{"href":"https://github.com/wikirate/wikirate/pull/889#discussion_r217178523"},"pull_request":{"href":"https://api.github.com/repos/wikirate/wikirate/pulls/889"}}},"pull_request":{"url":"https://api.github.com/repos/wikirate/wikirate/pulls/889","id":214694997,"node_id":"MDExOlB1bGxSZXF1ZXN0MjE0Njk0OTk3","html_url":"https://github.com/wikirate/wikirate/pull/889","diff_url":"https://github.com/wikirate/wikirate/pull/889.diff","patch_url":"https://github.com/wikirate/wikirate/pull/889.patch","issue_url":"https://api.github.com/repos/wikirate/wikirate/issues/889","number":889,"state":"open","locked":false,"title":"research page tweaks","user":{"login":"xithan","id":13584,"node_id":"MDQ6VXNlcjEzNTg0","avatar_url":"https://avatars0.githubusercontent.com/u/13584?v=4","gravatar_id":"","url":"https://api.github.com/users/xithan","html_url":"https://github.com/xithan","followers_url":"https://api.github.com/users/xithan/followers","following_url":"https://api.github.com/users/xithan/following{/other_user}","gists_url":"https://api.github.com/users/xithan/gists{/gist_id}","starred_url":"https://api.github.com/users/xithan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/xithan/subscriptions","organizations_url":"https://api.github.com/users/xithan/orgs","repos_url":"https://api.github.com/users/xithan/repos","events_url":"https://api.github.com/users/xithan/events{/privacy}","received_events_url":"https://api.github.com/users/xithan/received_events","type":"User","site_admin":false},"body":"","created_at":"2018-09-11T16:39:07Z","updated_at":"2018-09-12T20:37:59Z","closed_at":null,"merged_at":null,"merge_commit_sha":"6383130f954234f1e7a23f7fed09c8e310abc5c4","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/wikirate/wikirate/pulls/889/commits","review_comments_url":"https://api.github.com/repos/wikirate/wikirate/pulls/889/comments","review_comment_url":"https://api.github.com/repos/wikirate/wikirate/pulls/comments{/number}","comments_url":"https://api.github.com/repos/wikirate/wikirate/issues/889/comments","statuses_url":"https://api.github.com/repos/wikirate/wikirate/statuses/7e2ffecf56c9d6cc6c2115df6dd68959bdc1e25d","head":{"label":"xithan:research_page","ref":"research_page","sha":"7e2ffecf56c9d6cc6c2115df6dd68959bdc1e25d","user":{"login":"xithan","id":13584,"node_id":"MDQ6VXNlcjEzNTg0","avatar_url":"https://avatars0.githubusercontent.com/u/13584?v=4","gravatar_id":"","url":"https://api.github.com/users/xithan","html_url":"https://github.com/xithan","followers_url":"https://api.github.com/users/xithan/followers","following_url":"https://api.github.com/users/xithan/following{/other_user}","gists_url":"https://api.github.com/users/xithan/gists{/gist_id}","starred_url":"https://api.github.com/users/xithan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/xithan/subscriptions","organizations_url":"https://api.github.com/users/xithan/orgs","repos_url":"https://api.github.com/users/xithan/repos","events_url":"https://api.github.com/users/xithan/events{/privacy}","received_events_url":"https://api.github.com/users/xithan/received_events","type":"User","site_admin":false},"repo":{"id":20190741,"node_id":"MDEwOlJlcG9zaXRvcnkyMDE5MDc0MQ==","name":"wikirate","full_name":"xithan/wikirate","owner":{"login":"xithan","id":13584,"node_id":"MDQ6VXNlcjEzNTg0","avatar_url":"https://avatars0.githubusercontent.com/u/13584?v=4","gravatar_id":"","url":"https://api.github.com/users/xithan","html_url":"https://github.com/xithan","followers_url":"https://api.github.com/users/xithan/followers","following_url":"https://api.github.com/users/xithan/following{/other_user}","gists_url":"https://api.github.com/users/xithan/gists{/gist_id}","starred_url":"https://api.github.com/users/xithan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/xithan/subscriptions","organizations_url":"https://api.github.com/users/xithan/orgs","repos_url":"https://api.github.com/users/xithan/repos","events_url":"https://api.github.com/users/xithan/events{/privacy}","received_events_url":"https://api.github.com/users/xithan/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/xithan/wikirate","description":null,"fork":true,"url":"https://api.github.com/repos/xithan/wikirate","forks_url":"https://api.github.com/repos/xithan/wikirate/forks","keys_url":"https://api.github.com/repos/xithan/wikirate/keys{/key_id}","collaborators_url":"https://api.github.com/repos/xithan/wikirate/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/xithan/wikirate/teams","hooks_url":"https://api.github.com/repos/xithan/wikirate/hooks","issue_events_url":"https://api.github.com/repos/xithan/wikirate/issues/events{/number}","events_url":"https://api.github.com/repos/xithan/wikirate/events","assignees_url":"https://api.github.com/repos/xithan/wikirate/assignees{/user}","branches_url":"https://api.github.com/repos/xithan/wikirate/branches{/branch}","tags_url":"https://api.github.com/repos/xithan/wikirate/tags","blobs_url":"https://api.github.com/repos/xithan/wikirate/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/xithan/wikirate/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/xithan/wikirate/git/refs{/sha}","trees_url":"https://api.github.com/repos/xithan/wikirate/git/trees{/sha}","statuses_url":"https://api.github.com/repos/xithan/wikirate/statuses/{sha}","languages_url":"https://api.github.com/repos/xithan/wikirate/languages","stargazers_url":"https://api.github.com/repos/xithan/wikirate/stargazers","contributors_url":"https://api.github.com/repos/xithan/wikirate/contributors","subscribers_url":"https://api.github.com/repos/xithan/wikirate/subscribers","subscription_url":"https://api.github.com/repos/xithan/wikirate/subscription","commits_url":"https://api.github.com/repos/xithan/wikirate/commits{/sha}","git_commits_url":"https://api.github.com/repos/xithan/wikirate/git/commits{/sha}","comments_url":"https://api.github.com/repos/xithan/wikirate/comments{/number}","issue_comment_url":"https://api.github.com/repos/xithan/wikirate/issues/comments{/number}","contents_url":"https://api.github.com/repos/xithan/wikirate/contents/{+path}","compare_url":"https://api.github.com/repos/xithan/wikirate/compare/{base}...{head}","merges_url":"https://api.github.com/repos/xithan/wikirate/merges","archive_url":"https://api.github.com/repos/xithan/wikirate/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/xithan/wikirate/downloads","issues_url":"https://api.github.com/repos/xithan/wikirate/issues{/number}","pulls_url":"https://api.github.com/repos/xithan/wikirate/pulls{/number}","milestones_url":"https://api.github.com/repos/xithan/wikirate/milestones{/number}","notifications_url":"https://api.github.com/repos/xithan/wikirate/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/xithan/wikirate/labels{/name}","releases_url":"https://api.github.com/repos/xithan/wikirate/releases{/id}","deployments_url":"https://api.github.com/repos/xithan/wikirate/deployments","created_at":"2014-05-26T15:35:11Z","updated_at":"2018-07-10T05:33:26Z","pushed_at":"2018-09-12T20:11:06Z","git_url":"git://github.com/xithan/wikirate.git","ssh_url":"git@github.com:xithan/wikirate.git","clone_url":"https://github.com/xithan/wikirate.git","svn_url":"https://github.com/xithan/wikirate","homepage":null,"size":188669,"stargazers_count":0,"watchers_count":0,"language":"Ruby","has_issues":false,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":0,"license":null,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"wikirate:master","ref":"master","sha":"d998d70da570f10eb4e55c3ff296e7028d385c87","user":{"login":"wikirate","id":8244867,"node_id":"MDEyOk9yZ2FuaXphdGlvbjgyNDQ4Njc=","avatar_url":"https://avatars3.githubusercontent.com/u/8244867?v=4","gravatar_id":"","url":"https://api.github.com/users/wikirate","html_url":"https://github.com/wikirate","followers_url":"https://api.github.com/users/wikirate/followers","following_url":"https://api.github.com/users/wikirate/following{/other_user}","gists_url":"https://api.github.com/users/wikirate/gists{/gist_id}","starred_url":"https://api.github.com/users/wikirate/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/wikirate/subscriptions","organizations_url":"https://api.github.com/users/wikirate/orgs","repos_url":"https://api.github.com/users/wikirate/repos","events_url":"https://api.github.com/users/wikirate/events{/privacy}","received_events_url":"https://api.github.com/users/wikirate/received_events","type":"Organization","site_admin":false},"repo":{"id":15884166,"node_id":"MDEwOlJlcG9zaXRvcnkxNTg4NDE2Ng==","name":"wikirate","full_name":"wikirate/wikirate","owner":{"login":"wikirate","id":8244867,"node_id":"MDEyOk9yZ2FuaXphdGlvbjgyNDQ4Njc=","avatar_url":"https://avatars3.githubusercontent.com/u/8244867?v=4","gravatar_id":"","url":"https://api.github.com/users/wikirate","html_url":"https://github.com/wikirate","followers_url":"https://api.github.com/users/wikirate/followers","following_url":"https://api.github.com/users/wikirate/following{/other_user}","gists_url":"https://api.github.com/users/wikirate/gists{/gist_id}","starred_url":"https://api.github.com/users/wikirate/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/wikirate/subscriptions","organizations_url":"https://api.github.com/users/wikirate/orgs","repos_url":"https://api.github.com/users/wikirate/repos","events_url":"https://api.github.com/users/wikirate/events{/privacy}","received_events_url":"https://api.github.com/users/wikirate/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/wikirate/wikirate","description":null,"fork":false,"url":"https://api.github.com/repos/wikirate/wikirate","forks_url":"https://api.github.com/repos/wikirate/wikirate/forks","keys_url":"https://api.github.com/repos/wikirate/wikirate/keys{/key_id}","collaborators_url":"https://api.github.com/repos/wikirate/wikirate/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/wikirate/wikirate/teams","hooks_url":"https://api.github.com/repos/wikirate/wikirate/hooks","issue_events_url":"https://api.github.com/repos/wikirate/wikirate/issues/events{/number}","events_url":"https://api.github.com/repos/wikirate/wikirate/events","assignees_url":"https://api.github.com/repos/wikirate/wikirate/assignees{/user}","branches_url":"https://api.github.com/repos/wikirate/wikirate/branches{/branch}","tags_url":"https://api.github.com/repos/wikirate/wikirate/tags","blobs_url":"https://api.github.com/repos/wikirate/wikirate/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/wikirate/wikirate/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/wikirate/wikirate/git/refs{/sha}","trees_url":"https://api.github.com/repos/wikirate/wikirate/git/trees{/sha}","statuses_url":"https://api.github.com/repos/wikirate/wikirate/statuses/{sha}","languages_url":"https://api.github.com/repos/wikirate/wikirate/languages","stargazers_url":"https://api.github.com/repos/wikirate/wikirate/stargazers","contributors_url":"https://api.github.com/repos/wikirate/wikirate/contributors","subscribers_url":"https://api.github.com/repos/wikirate/wikirate/subscribers","subscription_url":"https://api.github.com/repos/wikirate/wikirate/subscription","commits_url":"https://api.github.com/repos/wikirate/wikirate/commits{/sha}","git_commits_url":"https://api.github.com/repos/wikirate/wikirate/git/commits{/sha}","comments_url":"https://api.github.com/repos/wikirate/wikirate/comments{/number}","issue_comment_url":"https://api.github.com/repos/wikirate/wikirate/issues/comments{/number}","contents_url":"https://api.github.com/repos/wikirate/wikirate/contents/{+path}","compare_url":"https://api.github.com/repos/wikirate/wikirate/compare/{base}...{head}","merges_url":"https://api.github.com/repos/wikirate/wikirate/merges","archive_url":"https://api.github.com/repos/wikirate/wikirate/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/wikirate/wikirate/downloads","issues_url":"https://api.github.com/repos/wikirate/wikirate/issues{/number}","pulls_url":"https://api.github.com/repos/wikirate/wikirate/pulls{/number}","milestones_url":"https://api.github.com/repos/wikirate/wikirate/milestones{/number}","notifications_url":"https://api.github.com/repos/wikirate/wikirate/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/wikirate/wikirate/labels{/name}","releases_url":"https://api.github.com/repos/wikirate/wikirate/releases{/id}","deployments_url":"https://api.github.com/repos/wikirate/wikirate/deployments","created_at":"2014-01-13T22:29:39Z","updated_at":"2018-09-12T08:58:55Z","pushed_at":"2018-09-12T20:11:07Z","git_url":"git://github.com/wikirate/wikirate.git","ssh_url":"git@github.com:wikirate/wikirate.git","clone_url":"https://github.com/wikirate/wikirate.git","svn_url":"https://github.com/wikirate/wikirate","homepage":null,"size":185131,"stargazers_count":2,"watchers_count":2,"language":"Ruby","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":7,"mirror_url":null,"archived":false,"open_issues_count":7,"license":null,"forks":7,"open_issues":7,"watchers":2,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/wikirate/wikirate/pulls/889"},"html":{"href":"https://github.com/wikirate/wikirate/pull/889"},"issue":{"href":"https://api.github.com/repos/wikirate/wikirate/issues/889"},"comments":{"href":"https://api.github.com/repos/wikirate/wikirate/issues/889/comments"},"review_comments":{"href":"https://api.github.com/repos/wikirate/wikirate/pulls/889/comments"},"review_comment":{"href":"https://api.github.com/repos/wikirate/wikirate/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/wikirate/wikirate/pulls/889/commits"},"statuses":{"href":"https://api.github.com/repos/wikirate/wikirate/statuses/7e2ffecf56c9d6cc6c2115df6dd68959bdc1e25d"}},"author_association":"COLLABORATOR"}}
{"actor":{"display_login":"ethn"}}