{"action":"created","comment":{"url":"https://api.github.com/repos/htmlacademy-javascript/75394-code-and-magick/pulls/comments/152197395","pull_request_review_id":78020696,"id":152197395,"diff_hunk":"@@ -0,0 +1,114 @@\n+window.renderStatistics = function(ctx, names, times) {\n+  ctx.fillStyle = 'rgba(0,0,0,0.7)';\n+  ctx.beginPath();\n+  ctx.arc(230,140,130,0,Math.PI*2,true);\n+  ctx.fill('nonzero');\n+\n+  ctx.beginPath();\n+  ctx.arc(350,175,120,0,Math.PI*2,true);\n+  ctx.fill('nonzero');\n+\n+  ctx.beginPath();\n+  ctx.arc(440,150,90,0,Math.PI*2,true);\n+  ctx.fill('nonzero');\n+\n+  ctx.beginPath();\n+  ctx.arc(150,220,70,0,Math.PI*2,true);\n+  ctx.fill('nonzero');\n+\n+  ctx.beginPath();\n+  ctx.arc(190,220,80,0,Math.PI*2,true);\n+  ctx.fill('nonzero');\n+\n+  ctx.beginPath();\n+  ctx.arc(270,220,80,0,Math.PI*2,true);\n+  ctx.fill('nonzero');\n+\n+  ctx.beginPath();\n+  ctx.arc(450,210,80,0,Math.PI*2,true);\n+  ctx.fill('nonzero');\n+\n+//----------------------------------------//\n+\n+  ctx.fillStyle = '#FFF';\n+  ctx.beginPath();\n+  ctx.arc(220,130,130,0,Math.PI*2,true);\n+  ctx.fill('nonzero');\n+\n+  ctx.beginPath();\n+  ctx.arc(340,165,120,0,Math.PI*2,true);\n+  ctx.fill('nonzero');\n+\n+  ctx.beginPath();\n+  ctx.arc(430,140,90,0,Math.PI*2,true);\n+  ctx.fill('nonzero');\n+\n+  ctx.beginPath();\n+  ctx.arc(140,210,70,0,Math.PI*2,true);\n+  ctx.fill('nonzero');\n+\n+  ctx.beginPath();\n+  ctx.arc(180,210,80,0,Math.PI*2,true);\n+  ctx.fill('nonzero');\n+\n+  ctx.beginPath();\n+  ctx.arc(260,210,80,0,Math.PI*2,true);\n+  ctx.fill('nonzero');\n+\n+  ctx.beginPath();\n+  ctx.arc(440,200,80,0,Math.PI*2,true);\n+  ctx.fill('nonzero');\n+\n+\n+  ctx.beginPath();\n+  ctx.fillStyle = '#000';\n+  ctx.font = '16px PT MONO';\n+  ctx.fillText('Ура вы победили!', 150, 64);\n+  ctx.fillText('Список результатов:', 150, 88);\n+  ctx.fill('nonzero');\n+\n+  var max = 1;\n+  var maxIndex = 0;\n+  var initialY = 236;\n+  var initialX = 150;\n+  var barWidth = 40;\n+  var barMargin = 50;\n+  var lineHeight = 24;\n+\n+  function getRandomArbitrary(min, max) {\n+    return Math.random() * (max - min) + min;\n+  }\n+\n+  for (var i = 0; i <= times.length - 1; i++) {\n+    var time = times[i];\n+    var name = names[i];\n+    var histogramWidth = 150;\n+    var step = histogramWidth / max;\n+    var maxHeightBar = 100;\n+    var HeightBar = maxHeightBar/(max/time);\n+\n+    if (time > max) {\n+      max = time;\n+      maxIndex = i;\n+    }\n+\n+    time == max ? calcBarHeight = maxHeightBar : calcBarHeight = HeightBar;","path":"js/stat.js","position":95,"original_position":95,"commit_id":"ce1b6017905d9a113bfcbee9e8efa224b97e92f9","original_commit_id":"ce1b6017905d9a113bfcbee9e8efa224b97e92f9","user":{"login":"Tagir-A","id":23556586,"avatar_url":"https://avatars0.githubusercontent.com/u/23556586?v=4","gravatar_id":"","url":"https://api.github.com/users/Tagir-A","html_url":"https://github.com/Tagir-A","followers_url":"https://api.github.com/users/Tagir-A/followers","following_url":"https://api.github.com/users/Tagir-A/following{/other_user}","gists_url":"https://api.github.com/users/Tagir-A/gists{/gist_id}","starred_url":"https://api.github.com/users/Tagir-A/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Tagir-A/subscriptions","organizations_url":"https://api.github.com/users/Tagir-A/orgs","repos_url":"https://api.github.com/users/Tagir-A/repos","events_url":"https://api.github.com/users/Tagir-A/events{/privacy}","received_events_url":"https://api.github.com/users/Tagir-A/received_events","type":"User","site_admin":false},"body":"Плохой стиль использования тернарного оператора.\r\nУ тебя в любом случае выполняется присваивание, просто разного значения.\r\nПерепиши так, чтобы было очевидно, что от условия меняется только значение.","created_at":"2017-11-21T07:45:45Z","updated_at":"2017-11-21T07:45:46Z","html_url":"https://github.com/htmlacademy-javascript/75394-code-and-magick/pull/2#discussion_r152197395","pull_request_url":"https://api.github.com/repos/htmlacademy-javascript/75394-code-and-magick/pulls/2","author_association":"COLLABORATOR","_links":{"self":{"href":"https://api.github.com/repos/htmlacademy-javascript/75394-code-and-magick/pulls/comments/152197395"},"html":{"href":"https://github.com/htmlacademy-javascript/75394-code-and-magick/pull/2#discussion_r152197395"},"pull_request":{"href":"https://api.github.com/repos/htmlacademy-javascript/75394-code-and-magick/pulls/2"}}},"pull_request":{"url":"https://api.github.com/repos/htmlacademy-javascript/75394-code-and-magick/pulls/2","id":153651977,"html_url":"https://github.com/htmlacademy-javascript/75394-code-and-magick/pull/2","diff_url":"https://github.com/htmlacademy-javascript/75394-code-and-magick/pull/2.diff","patch_url":"https://github.com/htmlacademy-javascript/75394-code-and-magick/pull/2.patch","issue_url":"https://api.github.com/repos/htmlacademy-javascript/75394-code-and-magick/issues/2","number":2,"state":"open","locked":false,"title":"Учебный проект: Холст","user":{"login":"RSadyrga","id":14769914,"avatar_url":"https://avatars3.githubusercontent.com/u/14769914?v=4","gravatar_id":"","url":"https://api.github.com/users/RSadyrga","html_url":"https://github.com/RSadyrga","followers_url":"https://api.github.com/users/RSadyrga/followers","following_url":"https://api.github.com/users/RSadyrga/following{/other_user}","gists_url":"https://api.github.com/users/RSadyrga/gists{/gist_id}","starred_url":"https://api.github.com/users/RSadyrga/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/RSadyrga/subscriptions","organizations_url":"https://api.github.com/users/RSadyrga/orgs","repos_url":"https://api.github.com/users/RSadyrga/repos","events_url":"https://api.github.com/users/RSadyrga/events{/privacy}","received_events_url":"https://api.github.com/users/RSadyrga/received_events","type":"User","site_admin":false},"body":"\n\n---\n:mortar_board: [Учебный проект: Холст](https://up.htmlacademy.ru/javascript/11/user/75394/tasks/8)","created_at":"2017-11-20T15:03:44Z","updated_at":"2017-11-21T07:45:46Z","closed_at":null,"merged_at":null,"merge_commit_sha":"cbb530451530fc37327417e01a45aa458cd408c5","assignee":null,"assignees":[],"requested_reviewers":[],"milestone":null,"commits_url":"https://api.github.com/repos/htmlacademy-javascript/75394-code-and-magick/pulls/2/commits","review_comments_url":"https://api.github.com/repos/htmlacademy-javascript/75394-code-and-magick/pulls/2/comments","review_comment_url":"https://api.github.com/repos/htmlacademy-javascript/75394-code-and-magick/pulls/comments{/number}","comments_url":"https://api.github.com/repos/htmlacademy-javascript/75394-code-and-magick/issues/2/comments","statuses_url":"https://api.github.com/repos/htmlacademy-javascript/75394-code-and-magick/statuses/ce1b6017905d9a113bfcbee9e8efa224b97e92f9","head":{"label":"RSadyrga:module2-task1","ref":"module2-task1","sha":"ce1b6017905d9a113bfcbee9e8efa224b97e92f9","user":{"login":"RSadyrga","id":14769914,"avatar_url":"https://avatars3.githubusercontent.com/u/14769914?v=4","gravatar_id":"","url":"https://api.github.com/users/RSadyrga","html_url":"https://github.com/RSadyrga","followers_url":"https://api.github.com/users/RSadyrga/followers","following_url":"https://api.github.com/users/RSadyrga/following{/other_user}","gists_url":"https://api.github.com/users/RSadyrga/gists{/gist_id}","starred_url":"https://api.github.com/users/RSadyrga/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/RSadyrga/subscriptions","organizations_url":"https://api.github.com/users/RSadyrga/orgs","repos_url":"https://api.github.com/users/RSadyrga/repos","events_url":"https://api.github.com/users/RSadyrga/events{/privacy}","received_events_url":"https://api.github.com/users/RSadyrga/received_events","type":"User","site_admin":false},"repo":{"id":110871636,"name":"75394-code-and-magick","full_name":"RSadyrga/75394-code-and-magick","owner":{"login":"RSadyrga","id":14769914,"avatar_url":"https://avatars3.githubusercontent.com/u/14769914?v=4","gravatar_id":"","url":"https://api.github.com/users/RSadyrga","html_url":"https://github.com/RSadyrga","followers_url":"https://api.github.com/users/RSadyrga/followers","following_url":"https://api.github.com/users/RSadyrga/following{/other_user}","gists_url":"https://api.github.com/users/RSadyrga/gists{/gist_id}","starred_url":"https://api.github.com/users/RSadyrga/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/RSadyrga/subscriptions","organizations_url":"https://api.github.com/users/RSadyrga/orgs","repos_url":"https://api.github.com/users/RSadyrga/repos","events_url":"https://api.github.com/users/RSadyrga/events{/privacy}","received_events_url":"https://api.github.com/users/RSadyrga/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/RSadyrga/75394-code-and-magick","description":"Роман Садырга","fork":true,"url":"https://api.github.com/repos/RSadyrga/75394-code-and-magick","forks_url":"https://api.github.com/repos/RSadyrga/75394-code-and-magick/forks","keys_url":"https://api.github.com/repos/RSadyrga/75394-code-and-magick/keys{/key_id}","collaborators_url":"https://api.github.com/repos/RSadyrga/75394-code-and-magick/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/RSadyrga/75394-code-and-magick/teams","hooks_url":"https://api.github.com/repos/RSadyrga/75394-code-and-magick/hooks","issue_events_url":"https://api.github.com/repos/RSadyrga/75394-code-and-magick/issues/events{/number}","events_url":"https://api.github.com/repos/RSadyrga/75394-code-and-magick/events","assignees_url":"https://api.github.com/repos/RSadyrga/75394-code-and-magick/assignees{/user}","branches_url":"https://api.github.com/repos/RSadyrga/75394-code-and-magick/branches{/branch}","tags_url":"https://api.github.com/repos/RSadyrga/75394-code-and-magick/tags","blobs_url":"https://api.github.com/repos/RSadyrga/75394-code-and-magick/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/RSadyrga/75394-code-and-magick/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/RSadyrga/75394-code-and-magick/git/refs{/sha}","trees_url":"https://api.github.com/repos/RSadyrga/75394-code-and-magick/git/trees{/sha}","statuses_url":"https://api.github.com/repos/RSadyrga/75394-code-and-magick/statuses/{sha}","languages_url":"https://api.github.com/repos/RSadyrga/75394-code-and-magick/languages","stargazers_url":"https://api.github.com/repos/RSadyrga/75394-code-and-magick/stargazers","contributors_url":"https://api.github.com/repos/RSadyrga/75394-code-and-magick/contributors","subscribers_url":"https://api.github.com/repos/RSadyrga/75394-code-and-magick/subscribers","subscription_url":"https://api.github.com/repos/RSadyrga/75394-code-and-magick/subscription","commits_url":"https://api.github.com/repos/RSadyrga/75394-code-and-magick/commits{/sha}","git_commits_url":"https://api.github.com/repos/RSadyrga/75394-code-and-magick/git/commits{/sha}","comments_url":"https://api.github.com/repos/RSadyrga/75394-code-and-magick/comments{/number}","issue_comment_url":"https://api.github.com/repos/RSadyrga/75394-code-and-magick/issues/comments{/number}","contents_url":"https://api.github.com/repos/RSadyrga/75394-code-and-magick/contents/{+path}","compare_url":"https://api.github.com/repos/RSadyrga/75394-code-and-magick/compare/{base}...{head}","merges_url":"https://api.github.com/repos/RSadyrga/75394-code-and-magick/merges","archive_url":"https://api.github.com/repos/RSadyrga/75394-code-and-magick/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/RSadyrga/75394-code-and-magick/downloads","issues_url":"https://api.github.com/repos/RSadyrga/75394-code-and-magick/issues{/number}","pulls_url":"https://api.github.com/repos/RSadyrga/75394-code-and-magick/pulls{/number}","milestones_url":"https://api.github.com/repos/RSadyrga/75394-code-and-magick/milestones{/number}","notifications_url":"https://api.github.com/repos/RSadyrga/75394-code-and-magick/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/RSadyrga/75394-code-and-magick/labels{/name}","releases_url":"https://api.github.com/repos/RSadyrga/75394-code-and-magick/releases{/id}","deployments_url":"https://api.github.com/repos/RSadyrga/75394-code-and-magick/deployments","created_at":"2017-11-15T18:35:58Z","updated_at":"2017-11-15T18:36:00Z","pushed_at":"2017-11-20T15:03:11Z","git_url":"git://github.com/RSadyrga/75394-code-and-magick.git","ssh_url":"git@github.com:RSadyrga/75394-code-and-magick.git","clone_url":"https://github.com/RSadyrga/75394-code-and-magick.git","svn_url":"https://github.com/RSadyrga/75394-code-and-magick","homepage":null,"size":1067,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","has_issues":false,"has_projects":true,"has_downloads":false,"has_wiki":false,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"htmlacademy-javascript:master","ref":"master","sha":"ecb5eace2b42b230bf8575a49b84f2bf0e21d8c4","user":{"login":"htmlacademy-javascript","id":14179712,"avatar_url":"https://avatars2.githubusercontent.com/u/14179712?v=4","gravatar_id":"","url":"https://api.github.com/users/htmlacademy-javascript","html_url":"https://github.com/htmlacademy-javascript","followers_url":"https://api.github.com/users/htmlacademy-javascript/followers","following_url":"https://api.github.com/users/htmlacademy-javascript/following{/other_user}","gists_url":"https://api.github.com/users/htmlacademy-javascript/gists{/gist_id}","starred_url":"https://api.github.com/users/htmlacademy-javascript/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/htmlacademy-javascript/subscriptions","organizations_url":"https://api.github.com/users/htmlacademy-javascript/orgs","repos_url":"https://api.github.com/users/htmlacademy-javascript/repos","events_url":"https://api.github.com/users/htmlacademy-javascript/events{/privacy}","received_events_url":"https://api.github.com/users/htmlacademy-javascript/received_events","type":"Organization","site_admin":false},"repo":{"id":110844585,"name":"75394-code-and-magick","full_name":"htmlacademy-javascript/75394-code-and-magick","owner":{"login":"htmlacademy-javascript","id":14179712,"avatar_url":"https://avatars2.githubusercontent.com/u/14179712?v=4","gravatar_id":"","url":"https://api.github.com/users/htmlacademy-javascript","html_url":"https://github.com/htmlacademy-javascript","followers_url":"https://api.github.com/users/htmlacademy-javascript/followers","following_url":"https://api.github.com/users/htmlacademy-javascript/following{/other_user}","gists_url":"https://api.github.com/users/htmlacademy-javascript/gists{/gist_id}","starred_url":"https://api.github.com/users/htmlacademy-javascript/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/htmlacademy-javascript/subscriptions","organizations_url":"https://api.github.com/users/htmlacademy-javascript/orgs","repos_url":"https://api.github.com/users/htmlacademy-javascript/repos","events_url":"https://api.github.com/users/htmlacademy-javascript/events{/privacy}","received_events_url":"https://api.github.com/users/htmlacademy-javascript/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/htmlacademy-javascript/75394-code-and-magick","description":"Роман Садырга","fork":false,"url":"https://api.github.com/repos/htmlacademy-javascript/75394-code-and-magick","forks_url":"https://api.github.com/repos/htmlacademy-javascript/75394-code-and-magick/forks","keys_url":"https://api.github.com/repos/htmlacademy-javascript/75394-code-and-magick/keys{/key_id}","collaborators_url":"https://api.github.com/repos/htmlacademy-javascript/75394-code-and-magick/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/htmlacademy-javascript/75394-code-and-magick/teams","hooks_url":"https://api.github.com/repos/htmlacademy-javascript/75394-code-and-magick/hooks","issue_events_url":"https://api.github.com/repos/htmlacademy-javascript/75394-code-and-magick/issues/events{/number}","events_url":"https://api.github.com/repos/htmlacademy-javascript/75394-code-and-magick/events","assignees_url":"https://api.github.com/repos/htmlacademy-javascript/75394-code-and-magick/assignees{/user}","branches_url":"https://api.github.com/repos/htmlacademy-javascript/75394-code-and-magick/branches{/branch}","tags_url":"https://api.github.com/repos/htmlacademy-javascript/75394-code-and-magick/tags","blobs_url":"https://api.github.com/repos/htmlacademy-javascript/75394-code-and-magick/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/htmlacademy-javascript/75394-code-and-magick/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/htmlacademy-javascript/75394-code-and-magick/git/refs{/sha}","trees_url":"https://api.github.com/repos/htmlacademy-javascript/75394-code-and-magick/git/trees{/sha}","statuses_url":"https://api.github.com/repos/htmlacademy-javascript/75394-code-and-magick/statuses/{sha}","languages_url":"https://api.github.com/repos/htmlacademy-javascript/75394-code-and-magick/languages","stargazers_url":"https://api.github.com/repos/htmlacademy-javascript/75394-code-and-magick/stargazers","contributors_url":"https://api.github.com/repos/htmlacademy-javascript/75394-code-and-magick/contributors","subscribers_url":"https://api.github.com/repos/htmlacademy-javascript/75394-code-and-magick/subscribers","subscription_url":"https://api.github.com/repos/htmlacademy-javascript/75394-code-and-magick/subscription","commits_url":"https://api.github.com/repos/htmlacademy-javascript/75394-code-and-magick/commits{/sha}","git_commits_url":"https://api.github.com/repos/htmlacademy-javascript/75394-code-and-magick/git/commits{/sha}","comments_url":"https://api.github.com/repos/htmlacademy-javascript/75394-code-and-magick/comments{/number}","issue_comment_url":"https://api.github.com/repos/htmlacademy-javascript/75394-code-and-magick/issues/comments{/number}","contents_url":"https://api.github.com/repos/htmlacademy-javascript/75394-code-and-magick/contents/{+path}","compare_url":"https://api.github.com/repos/htmlacademy-javascript/75394-code-and-magick/compare/{base}...{head}","merges_url":"https://api.github.com/repos/htmlacademy-javascript/75394-code-and-magick/merges","archive_url":"https://api.github.com/repos/htmlacademy-javascript/75394-code-and-magick/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/htmlacademy-javascript/75394-code-and-magick/downloads","issues_url":"https://api.github.com/repos/htmlacademy-javascript/75394-code-and-magick/issues{/number}","pulls_url":"https://api.github.com/repos/htmlacademy-javascript/75394-code-and-magick/pulls{/number}","milestones_url":"https://api.github.com/repos/htmlacademy-javascript/75394-code-and-magick/milestones{/number}","notifications_url":"https://api.github.com/repos/htmlacademy-javascript/75394-code-and-magick/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/htmlacademy-javascript/75394-code-and-magick/labels{/name}","releases_url":"https://api.github.com/repos/htmlacademy-javascript/75394-code-and-magick/releases{/id}","deployments_url":"https://api.github.com/repos/htmlacademy-javascript/75394-code-and-magick/deployments","created_at":"2017-11-15T14:34:03Z","updated_at":"2017-11-17T14:36:55Z","pushed_at":"2017-11-20T15:03:45Z","git_url":"git://github.com/htmlacademy-javascript/75394-code-and-magick.git","ssh_url":"git@github.com:htmlacademy-javascript/75394-code-and-magick.git","clone_url":"https://github.com/htmlacademy-javascript/75394-code-and-magick.git","svn_url":"https://github.com/htmlacademy-javascript/75394-code-and-magick","homepage":"https://github.com/RSadyrga/75394-code-and-magick","size":1066,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","has_issues":false,"has_projects":true,"has_downloads":false,"has_wiki":false,"has_pages":false,"forks_count":1,"mirror_url":null,"archived":false,"open_issues_count":1,"forks":1,"open_issues":1,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/htmlacademy-javascript/75394-code-and-magick/pulls/2"},"html":{"href":"https://github.com/htmlacademy-javascript/75394-code-and-magick/pull/2"},"issue":{"href":"https://api.github.com/repos/htmlacademy-javascript/75394-code-and-magick/issues/2"},"comments":{"href":"https://api.github.com/repos/htmlacademy-javascript/75394-code-and-magick/issues/2/comments"},"review_comments":{"href":"https://api.github.com/repos/htmlacademy-javascript/75394-code-and-magick/pulls/2/comments"},"review_comment":{"href":"https://api.github.com/repos/htmlacademy-javascript/75394-code-and-magick/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/htmlacademy-javascript/75394-code-and-magick/pulls/2/commits"},"statuses":{"href":"https://api.github.com/repos/htmlacademy-javascript/75394-code-and-magick/statuses/ce1b6017905d9a113bfcbee9e8efa224b97e92f9"}},"author_association":"CONTRIBUTOR"}}
{"actor":{"display_login":"Tagir-A"}}