{"action":"created","comment":{"url":"https://api.github.com/repos/odota/web/pulls/comments/181540971","pull_request_review_id":112196183,"id":181540971,"diff_hunk":"@@ -0,0 +1,83 @@\n+import { inflictorWithValue } from 'components/Visualizations';\n+import strings from '../../lang';\n+import { transformations, formatSeconds } from '../../utility';\n+\n+const computeWinRate = row => (row.wins / row.games);\n+\n+const getTimeRange = (field, metadata) => {\n+  let lower;\n+  if (metadata.indexOf(field) !== 0) {\n+    lower = metadata[metadata.indexOf(field) - 1];\n+  } else {\n+    lower = 0;\n+  }\n+  return `${formatSeconds(lower)} - ${formatSeconds(field)}`;\n+};\n+\n+const getColumns = (f, metadata) => {\n+  const columns =\n+{\n+  itemTimings: [{\n+    displayName: strings.filter_hero_id,\n+    field: 'hero_id',\n+    sortFn: true,\n+    displayFn: transformations.hero_id,\n+  }, {\n+    displayName: strings.scenarios_time,\n+    field: 'time',\n+    sortFn: row => row.time,\n+    displayFn: (row, col, field) => getTimeRange(field, metadata.timings),\n+  }, {\n+    displayName: strings.scenarios_item,\n+    field: 'item',\n+    sortFn: true,\n+    displayFn: (row, col, field) => inflictorWithValue(field),\n+  }, {\n+    displayName: strings.heading_win_rate,\n+    field: 'games',\n+    sortFn: computeWinRate,\n+    percentBarsWithValue: row => row.games,\n+    tooltip: strings.tooltip_winrate_samplesize,","path":"src/components/Scenarios/ScenariosColumns.jsx","position":40,"original_position":40,"commit_id":"853dfe003396f315881283d678e8ef4183213775","original_commit_id":"853dfe003396f315881283d678e8ef4183213775","user":{"login":"howardchung","id":3134520,"avatar_url":"https://avatars3.githubusercontent.com/u/3134520?v=4","gravatar_id":"","url":"https://api.github.com/users/howardchung","html_url":"https://github.com/howardchung","followers_url":"https://api.github.com/users/howardchung/followers","following_url":"https://api.github.com/users/howardchung/following{/other_user}","gists_url":"https://api.github.com/users/howardchung/gists{/gist_id}","starred_url":"https://api.github.com/users/howardchung/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/howardchung/subscriptions","organizations_url":"https://api.github.com/users/howardchung/orgs","repos_url":"https://api.github.com/users/howardchung/repos","events_url":"https://api.github.com/users/howardchung/events{/privacy}","received_events_url":"https://api.github.com/users/howardchung/received_events","type":"User","site_admin":false},"body":"might want to abbreviate the sample size","created_at":"2018-04-14T04:07:38Z","updated_at":"2018-04-14T04:07:38Z","html_url":"https://github.com/odota/web/pull/1516#discussion_r181540971","pull_request_url":"https://api.github.com/repos/odota/web/pulls/1516","author_association":"OWNER","_links":{"self":{"href":"https://api.github.com/repos/odota/web/pulls/comments/181540971"},"html":{"href":"https://github.com/odota/web/pull/1516#discussion_r181540971"},"pull_request":{"href":"https://api.github.com/repos/odota/web/pulls/1516"}}},"pull_request":{"url":"https://api.github.com/repos/odota/web/pulls/1516","id":180009450,"html_url":"https://github.com/odota/web/pull/1516","diff_url":"https://github.com/odota/web/pull/1516.diff","patch_url":"https://github.com/odota/web/pull/1516.patch","issue_url":"https://api.github.com/repos/odota/web/issues/1516","number":1516,"state":"open","locked":false,"title":"Scenarios page","user":{"login":"Argn0","id":29599118,"avatar_url":"https://avatars2.githubusercontent.com/u/29599118?v=4","gravatar_id":"","url":"https://api.github.com/users/Argn0","html_url":"https://github.com/Argn0","followers_url":"https://api.github.com/users/Argn0/followers","following_url":"https://api.github.com/users/Argn0/following{/other_user}","gists_url":"https://api.github.com/users/Argn0/gists{/gist_id}","starred_url":"https://api.github.com/users/Argn0/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Argn0/subscriptions","organizations_url":"https://api.github.com/users/Argn0/orgs","repos_url":"https://api.github.com/users/Argn0/repos","events_url":"https://api.github.com/users/Argn0/events{/privacy}","received_events_url":"https://api.github.com/users/Argn0/received_events","type":"User","site_admin":false},"body":"closes https://github.com/odota/web/issues/1440","created_at":"2018-04-06T17:33:36Z","updated_at":"2018-04-14T04:07:38Z","closed_at":null,"merged_at":null,"merge_commit_sha":"7cf5e14ffc3fad78e681d06bd76be5634b9cf006","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/odota/web/pulls/1516/commits","review_comments_url":"https://api.github.com/repos/odota/web/pulls/1516/comments","review_comment_url":"https://api.github.com/repos/odota/web/pulls/comments{/number}","comments_url":"https://api.github.com/repos/odota/web/issues/1516/comments","statuses_url":"https://api.github.com/repos/odota/web/statuses/853dfe003396f315881283d678e8ef4183213775","head":{"label":"Argn0:scenarioswebf2","ref":"scenarioswebf2","sha":"853dfe003396f315881283d678e8ef4183213775","user":{"login":"Argn0","id":29599118,"avatar_url":"https://avatars2.githubusercontent.com/u/29599118?v=4","gravatar_id":"","url":"https://api.github.com/users/Argn0","html_url":"https://github.com/Argn0","followers_url":"https://api.github.com/users/Argn0/followers","following_url":"https://api.github.com/users/Argn0/following{/other_user}","gists_url":"https://api.github.com/users/Argn0/gists{/gist_id}","starred_url":"https://api.github.com/users/Argn0/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Argn0/subscriptions","organizations_url":"https://api.github.com/users/Argn0/orgs","repos_url":"https://api.github.com/users/Argn0/repos","events_url":"https://api.github.com/users/Argn0/events{/privacy}","received_events_url":"https://api.github.com/users/Argn0/received_events","type":"User","site_admin":false},"repo":{"id":111878617,"name":"web","full_name":"Argn0/web","owner":{"login":"Argn0","id":29599118,"avatar_url":"https://avatars2.githubusercontent.com/u/29599118?v=4","gravatar_id":"","url":"https://api.github.com/users/Argn0","html_url":"https://github.com/Argn0","followers_url":"https://api.github.com/users/Argn0/followers","following_url":"https://api.github.com/users/Argn0/following{/other_user}","gists_url":"https://api.github.com/users/Argn0/gists{/gist_id}","starred_url":"https://api.github.com/users/Argn0/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Argn0/subscriptions","organizations_url":"https://api.github.com/users/Argn0/orgs","repos_url":"https://api.github.com/users/Argn0/repos","events_url":"https://api.github.com/users/Argn0/events{/privacy}","received_events_url":"https://api.github.com/users/Argn0/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/Argn0/web","description":"OpenDota Web: A React web interface for viewing Dota 2 data","fork":true,"url":"https://api.github.com/repos/Argn0/web","forks_url":"https://api.github.com/repos/Argn0/web/forks","keys_url":"https://api.github.com/repos/Argn0/web/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Argn0/web/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Argn0/web/teams","hooks_url":"https://api.github.com/repos/Argn0/web/hooks","issue_events_url":"https://api.github.com/repos/Argn0/web/issues/events{/number}","events_url":"https://api.github.com/repos/Argn0/web/events","assignees_url":"https://api.github.com/repos/Argn0/web/assignees{/user}","branches_url":"https://api.github.com/repos/Argn0/web/branches{/branch}","tags_url":"https://api.github.com/repos/Argn0/web/tags","blobs_url":"https://api.github.com/repos/Argn0/web/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Argn0/web/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Argn0/web/git/refs{/sha}","trees_url":"https://api.github.com/repos/Argn0/web/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Argn0/web/statuses/{sha}","languages_url":"https://api.github.com/repos/Argn0/web/languages","stargazers_url":"https://api.github.com/repos/Argn0/web/stargazers","contributors_url":"https://api.github.com/repos/Argn0/web/contributors","subscribers_url":"https://api.github.com/repos/Argn0/web/subscribers","subscription_url":"https://api.github.com/repos/Argn0/web/subscription","commits_url":"https://api.github.com/repos/Argn0/web/commits{/sha}","git_commits_url":"https://api.github.com/repos/Argn0/web/git/commits{/sha}","comments_url":"https://api.github.com/repos/Argn0/web/comments{/number}","issue_comment_url":"https://api.github.com/repos/Argn0/web/issues/comments{/number}","contents_url":"https://api.github.com/repos/Argn0/web/contents/{+path}","compare_url":"https://api.github.com/repos/Argn0/web/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Argn0/web/merges","archive_url":"https://api.github.com/repos/Argn0/web/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Argn0/web/downloads","issues_url":"https://api.github.com/repos/Argn0/web/issues{/number}","pulls_url":"https://api.github.com/repos/Argn0/web/pulls{/number}","milestones_url":"https://api.github.com/repos/Argn0/web/milestones{/number}","notifications_url":"https://api.github.com/repos/Argn0/web/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Argn0/web/labels{/name}","releases_url":"https://api.github.com/repos/Argn0/web/releases{/id}","deployments_url":"https://api.github.com/repos/Argn0/web/deployments","created_at":"2017-11-24T05:14:54Z","updated_at":"2018-03-24T05:17:11Z","pushed_at":"2018-04-14T02:33:48Z","git_url":"git://github.com/Argn0/web.git","ssh_url":"git@github.com:Argn0/web.git","clone_url":"https://github.com/Argn0/web.git","svn_url":"https://github.com/Argn0/web","homepage":"https://www.opendota.com","size":58885,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","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":"odota:master","ref":"master","sha":"8f595183c84baa1894432c021177a30cc05c4f7d","user":{"login":"odota","id":10602524,"avatar_url":"https://avatars1.githubusercontent.com/u/10602524?v=4","gravatar_id":"","url":"https://api.github.com/users/odota","html_url":"https://github.com/odota","followers_url":"https://api.github.com/users/odota/followers","following_url":"https://api.github.com/users/odota/following{/other_user}","gists_url":"https://api.github.com/users/odota/gists{/gist_id}","starred_url":"https://api.github.com/users/odota/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/odota/subscriptions","organizations_url":"https://api.github.com/users/odota/orgs","repos_url":"https://api.github.com/users/odota/repos","events_url":"https://api.github.com/users/odota/events{/privacy}","received_events_url":"https://api.github.com/users/odota/received_events","type":"Organization","site_admin":false},"repo":{"id":59816990,"name":"web","full_name":"odota/web","owner":{"login":"odota","id":10602524,"avatar_url":"https://avatars1.githubusercontent.com/u/10602524?v=4","gravatar_id":"","url":"https://api.github.com/users/odota","html_url":"https://github.com/odota","followers_url":"https://api.github.com/users/odota/followers","following_url":"https://api.github.com/users/odota/following{/other_user}","gists_url":"https://api.github.com/users/odota/gists{/gist_id}","starred_url":"https://api.github.com/users/odota/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/odota/subscriptions","organizations_url":"https://api.github.com/users/odota/orgs","repos_url":"https://api.github.com/users/odota/repos","events_url":"https://api.github.com/users/odota/events{/privacy}","received_events_url":"https://api.github.com/users/odota/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/odota/web","description":"React web interface for viewing Dota 2 data","fork":false,"url":"https://api.github.com/repos/odota/web","forks_url":"https://api.github.com/repos/odota/web/forks","keys_url":"https://api.github.com/repos/odota/web/keys{/key_id}","collaborators_url":"https://api.github.com/repos/odota/web/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/odota/web/teams","hooks_url":"https://api.github.com/repos/odota/web/hooks","issue_events_url":"https://api.github.com/repos/odota/web/issues/events{/number}","events_url":"https://api.github.com/repos/odota/web/events","assignees_url":"https://api.github.com/repos/odota/web/assignees{/user}","branches_url":"https://api.github.com/repos/odota/web/branches{/branch}","tags_url":"https://api.github.com/repos/odota/web/tags","blobs_url":"https://api.github.com/repos/odota/web/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/odota/web/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/odota/web/git/refs{/sha}","trees_url":"https://api.github.com/repos/odota/web/git/trees{/sha}","statuses_url":"https://api.github.com/repos/odota/web/statuses/{sha}","languages_url":"https://api.github.com/repos/odota/web/languages","stargazers_url":"https://api.github.com/repos/odota/web/stargazers","contributors_url":"https://api.github.com/repos/odota/web/contributors","subscribers_url":"https://api.github.com/repos/odota/web/subscribers","subscription_url":"https://api.github.com/repos/odota/web/subscription","commits_url":"https://api.github.com/repos/odota/web/commits{/sha}","git_commits_url":"https://api.github.com/repos/odota/web/git/commits{/sha}","comments_url":"https://api.github.com/repos/odota/web/comments{/number}","issue_comment_url":"https://api.github.com/repos/odota/web/issues/comments{/number}","contents_url":"https://api.github.com/repos/odota/web/contents/{+path}","compare_url":"https://api.github.com/repos/odota/web/compare/{base}...{head}","merges_url":"https://api.github.com/repos/odota/web/merges","archive_url":"https://api.github.com/repos/odota/web/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/odota/web/downloads","issues_url":"https://api.github.com/repos/odota/web/issues{/number}","pulls_url":"https://api.github.com/repos/odota/web/pulls{/number}","milestones_url":"https://api.github.com/repos/odota/web/milestones{/number}","notifications_url":"https://api.github.com/repos/odota/web/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/odota/web/labels{/name}","releases_url":"https://api.github.com/repos/odota/web/releases{/id}","deployments_url":"https://api.github.com/repos/odota/web/deployments","created_at":"2016-05-27T08:06:05Z","updated_at":"2018-04-13T03:26:40Z","pushed_at":"2018-04-14T03:35:25Z","git_url":"git://github.com/odota/web.git","ssh_url":"git@github.com:odota/web.git","clone_url":"https://github.com/odota/web.git","svn_url":"https://github.com/odota/web","homepage":"https://www.opendota.com","size":59217,"stargazers_count":429,"watchers_count":429,"language":"JavaScript","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":212,"mirror_url":null,"archived":false,"open_issues_count":53,"license":{"key":"mit","name":"MIT License","spdx_id":"MIT","url":"https://api.github.com/licenses/mit"},"forks":212,"open_issues":53,"watchers":429,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/odota/web/pulls/1516"},"html":{"href":"https://github.com/odota/web/pull/1516"},"issue":{"href":"https://api.github.com/repos/odota/web/issues/1516"},"comments":{"href":"https://api.github.com/repos/odota/web/issues/1516/comments"},"review_comments":{"href":"https://api.github.com/repos/odota/web/pulls/1516/comments"},"review_comment":{"href":"https://api.github.com/repos/odota/web/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/odota/web/pulls/1516/commits"},"statuses":{"href":"https://api.github.com/repos/odota/web/statuses/853dfe003396f315881283d678e8ef4183213775"}},"author_association":"CONTRIBUTOR"}}
{"actor":{"display_login":"howardchung"}}