{"action":"created","comment":{"url":"https://api.github.com/repos/htmlacademy-ecmascript/24186-guess-melody/pulls/comments/212190750","pull_request_review_id":148765097,"id":212190750,"node_id":"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDIxMjE5MDc1MA==","diff_hunk":"@@ -0,0 +1,39 @@\n+import {wordsDeclension} from './../js/utils';\n+\n+\n+const errorCode = -1;\n+\n+\n+export function getPlayerStatistic(statistics, playerResult) {\n+  if (!statistics || !Array.isArray(statistics)) {\n+    return errorCode;\n+  }\n+  if (!playerResult || (playerResult && typeof playerResult !== `object`)) {\n+    return errorCode;\n+  }\n+\n+  const newStatistics = statistics.slice();\n+\n+  if (playerResult.time <= 0) {","path":"js/statistic.js","position":17,"original_position":17,"commit_id":"e054d0511473bacb2d2e7b54d1d605c54c149920","original_commit_id":"e054d0511473bacb2d2e7b54d1d605c54c149920","user":{"login":"nikolayemrikh","id":11134770,"node_id":"MDQ6VXNlcjExMTM0Nzcw","avatar_url":"https://avatars0.githubusercontent.com/u/11134770?v=4","gravatar_id":"","url":"https://api.github.com/users/nikolayemrikh","html_url":"https://github.com/nikolayemrikh","followers_url":"https://api.github.com/users/nikolayemrikh/followers","following_url":"https://api.github.com/users/nikolayemrikh/following{/other_user}","gists_url":"https://api.github.com/users/nikolayemrikh/gists{/gist_id}","starred_url":"https://api.github.com/users/nikolayemrikh/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nikolayemrikh/subscriptions","organizations_url":"https://api.github.com/users/nikolayemrikh/orgs","repos_url":"https://api.github.com/users/nikolayemrikh/repos","events_url":"https://api.github.com/users/nikolayemrikh/events{/privacy}","received_events_url":"https://api.github.com/users/nikolayemrikh/received_events","type":"User","site_admin":false},"body":"Время может быть меньше 0?","created_at":"2018-08-23T06:03:55Z","updated_at":"2018-08-23T06:51:14Z","html_url":"https://github.com/htmlacademy-ecmascript/24186-guess-melody/pull/5#discussion_r212190750","pull_request_url":"https://api.github.com/repos/htmlacademy-ecmascript/24186-guess-melody/pulls/5","author_association":"COLLABORATOR","_links":{"self":{"href":"https://api.github.com/repos/htmlacademy-ecmascript/24186-guess-melody/pulls/comments/212190750"},"html":{"href":"https://github.com/htmlacademy-ecmascript/24186-guess-melody/pull/5#discussion_r212190750"},"pull_request":{"href":"https://api.github.com/repos/htmlacademy-ecmascript/24186-guess-melody/pulls/5"}}},"pull_request":{"url":"https://api.github.com/repos/htmlacademy-ecmascript/24186-guess-melody/pulls/5","id":210117491,"node_id":"MDExOlB1bGxSZXF1ZXN0MjEwMTE3NDkx","html_url":"https://github.com/htmlacademy-ecmascript/24186-guess-melody/pull/5","diff_url":"https://github.com/htmlacademy-ecmascript/24186-guess-melody/pull/5.diff","patch_url":"https://github.com/htmlacademy-ecmascript/24186-guess-melody/pull/5.patch","issue_url":"https://api.github.com/repos/htmlacademy-ecmascript/24186-guess-melody/issues/5","number":5,"state":"open","locked":false,"title":"Начнём с конца","user":{"login":"Drinkerok","id":5852171,"node_id":"MDQ6VXNlcjU4NTIxNzE=","avatar_url":"https://avatars3.githubusercontent.com/u/5852171?v=4","gravatar_id":"","url":"https://api.github.com/users/Drinkerok","html_url":"https://github.com/Drinkerok","followers_url":"https://api.github.com/users/Drinkerok/followers","following_url":"https://api.github.com/users/Drinkerok/following{/other_user}","gists_url":"https://api.github.com/users/Drinkerok/gists{/gist_id}","starred_url":"https://api.github.com/users/Drinkerok/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Drinkerok/subscriptions","organizations_url":"https://api.github.com/users/Drinkerok/orgs","repos_url":"https://api.github.com/users/Drinkerok/repos","events_url":"https://api.github.com/users/Drinkerok/events{/privacy}","received_events_url":"https://api.github.com/users/Drinkerok/received_events","type":"User","site_admin":false},"body":"\n\n---\n:mortar_board: [Начнём с конца](https://up.htmlacademy.ru/ecmascript/6/user/24186/tasks/6)","created_at":"2018-08-22T12:30:02Z","updated_at":"2018-08-23T06:51:14Z","closed_at":null,"merged_at":null,"merge_commit_sha":"4c785c2ce4c880b5f47ece94ea5b60c8a10f2efb","assignee":{"login":"nikolayemrikh","id":11134770,"node_id":"MDQ6VXNlcjExMTM0Nzcw","avatar_url":"https://avatars0.githubusercontent.com/u/11134770?v=4","gravatar_id":"","url":"https://api.github.com/users/nikolayemrikh","html_url":"https://github.com/nikolayemrikh","followers_url":"https://api.github.com/users/nikolayemrikh/followers","following_url":"https://api.github.com/users/nikolayemrikh/following{/other_user}","gists_url":"https://api.github.com/users/nikolayemrikh/gists{/gist_id}","starred_url":"https://api.github.com/users/nikolayemrikh/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nikolayemrikh/subscriptions","organizations_url":"https://api.github.com/users/nikolayemrikh/orgs","repos_url":"https://api.github.com/users/nikolayemrikh/repos","events_url":"https://api.github.com/users/nikolayemrikh/events{/privacy}","received_events_url":"https://api.github.com/users/nikolayemrikh/received_events","type":"User","site_admin":false},"assignees":[{"login":"nikolayemrikh","id":11134770,"node_id":"MDQ6VXNlcjExMTM0Nzcw","avatar_url":"https://avatars0.githubusercontent.com/u/11134770?v=4","gravatar_id":"","url":"https://api.github.com/users/nikolayemrikh","html_url":"https://github.com/nikolayemrikh","followers_url":"https://api.github.com/users/nikolayemrikh/followers","following_url":"https://api.github.com/users/nikolayemrikh/following{/other_user}","gists_url":"https://api.github.com/users/nikolayemrikh/gists{/gist_id}","starred_url":"https://api.github.com/users/nikolayemrikh/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nikolayemrikh/subscriptions","organizations_url":"https://api.github.com/users/nikolayemrikh/orgs","repos_url":"https://api.github.com/users/nikolayemrikh/repos","events_url":"https://api.github.com/users/nikolayemrikh/events{/privacy}","received_events_url":"https://api.github.com/users/nikolayemrikh/received_events","type":"User","site_admin":false}],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/htmlacademy-ecmascript/24186-guess-melody/pulls/5/commits","review_comments_url":"https://api.github.com/repos/htmlacademy-ecmascript/24186-guess-melody/pulls/5/comments","review_comment_url":"https://api.github.com/repos/htmlacademy-ecmascript/24186-guess-melody/pulls/comments{/number}","comments_url":"https://api.github.com/repos/htmlacademy-ecmascript/24186-guess-melody/issues/5/comments","statuses_url":"https://api.github.com/repos/htmlacademy-ecmascript/24186-guess-melody/statuses/e054d0511473bacb2d2e7b54d1d605c54c149920","head":{"label":"Drinkerok:module3-task2","ref":"module3-task2","sha":"e054d0511473bacb2d2e7b54d1d605c54c149920","user":{"login":"Drinkerok","id":5852171,"node_id":"MDQ6VXNlcjU4NTIxNzE=","avatar_url":"https://avatars3.githubusercontent.com/u/5852171?v=4","gravatar_id":"","url":"https://api.github.com/users/Drinkerok","html_url":"https://github.com/Drinkerok","followers_url":"https://api.github.com/users/Drinkerok/followers","following_url":"https://api.github.com/users/Drinkerok/following{/other_user}","gists_url":"https://api.github.com/users/Drinkerok/gists{/gist_id}","starred_url":"https://api.github.com/users/Drinkerok/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Drinkerok/subscriptions","organizations_url":"https://api.github.com/users/Drinkerok/orgs","repos_url":"https://api.github.com/users/Drinkerok/repos","events_url":"https://api.github.com/users/Drinkerok/events{/privacy}","received_events_url":"https://api.github.com/users/Drinkerok/received_events","type":"User","site_admin":false},"repo":{"id":143765273,"node_id":"MDEwOlJlcG9zaXRvcnkxNDM3NjUyNzM=","name":"24186-guess-melody","full_name":"Drinkerok/24186-guess-melody","owner":{"login":"Drinkerok","id":5852171,"node_id":"MDQ6VXNlcjU4NTIxNzE=","avatar_url":"https://avatars3.githubusercontent.com/u/5852171?v=4","gravatar_id":"","url":"https://api.github.com/users/Drinkerok","html_url":"https://github.com/Drinkerok","followers_url":"https://api.github.com/users/Drinkerok/followers","following_url":"https://api.github.com/users/Drinkerok/following{/other_user}","gists_url":"https://api.github.com/users/Drinkerok/gists{/gist_id}","starred_url":"https://api.github.com/users/Drinkerok/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Drinkerok/subscriptions","organizations_url":"https://api.github.com/users/Drinkerok/orgs","repos_url":"https://api.github.com/users/Drinkerok/repos","events_url":"https://api.github.com/users/Drinkerok/events{/privacy}","received_events_url":"https://api.github.com/users/Drinkerok/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/Drinkerok/24186-guess-melody","description":"Дмитрий Казанцев","fork":true,"url":"https://api.github.com/repos/Drinkerok/24186-guess-melody","forks_url":"https://api.github.com/repos/Drinkerok/24186-guess-melody/forks","keys_url":"https://api.github.com/repos/Drinkerok/24186-guess-melody/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Drinkerok/24186-guess-melody/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Drinkerok/24186-guess-melody/teams","hooks_url":"https://api.github.com/repos/Drinkerok/24186-guess-melody/hooks","issue_events_url":"https://api.github.com/repos/Drinkerok/24186-guess-melody/issues/events{/number}","events_url":"https://api.github.com/repos/Drinkerok/24186-guess-melody/events","assignees_url":"https://api.github.com/repos/Drinkerok/24186-guess-melody/assignees{/user}","branches_url":"https://api.github.com/repos/Drinkerok/24186-guess-melody/branches{/branch}","tags_url":"https://api.github.com/repos/Drinkerok/24186-guess-melody/tags","blobs_url":"https://api.github.com/repos/Drinkerok/24186-guess-melody/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Drinkerok/24186-guess-melody/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Drinkerok/24186-guess-melody/git/refs{/sha}","trees_url":"https://api.github.com/repos/Drinkerok/24186-guess-melody/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Drinkerok/24186-guess-melody/statuses/{sha}","languages_url":"https://api.github.com/repos/Drinkerok/24186-guess-melody/languages","stargazers_url":"https://api.github.com/repos/Drinkerok/24186-guess-melody/stargazers","contributors_url":"https://api.github.com/repos/Drinkerok/24186-guess-melody/contributors","subscribers_url":"https://api.github.com/repos/Drinkerok/24186-guess-melody/subscribers","subscription_url":"https://api.github.com/repos/Drinkerok/24186-guess-melody/subscription","commits_url":"https://api.github.com/repos/Drinkerok/24186-guess-melody/commits{/sha}","git_commits_url":"https://api.github.com/repos/Drinkerok/24186-guess-melody/git/commits{/sha}","comments_url":"https://api.github.com/repos/Drinkerok/24186-guess-melody/comments{/number}","issue_comment_url":"https://api.github.com/repos/Drinkerok/24186-guess-melody/issues/comments{/number}","contents_url":"https://api.github.com/repos/Drinkerok/24186-guess-melody/contents/{+path}","compare_url":"https://api.github.com/repos/Drinkerok/24186-guess-melody/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Drinkerok/24186-guess-melody/merges","archive_url":"https://api.github.com/repos/Drinkerok/24186-guess-melody/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Drinkerok/24186-guess-melody/downloads","issues_url":"https://api.github.com/repos/Drinkerok/24186-guess-melody/issues{/number}","pulls_url":"https://api.github.com/repos/Drinkerok/24186-guess-melody/pulls{/number}","milestones_url":"https://api.github.com/repos/Drinkerok/24186-guess-melody/milestones{/number}","notifications_url":"https://api.github.com/repos/Drinkerok/24186-guess-melody/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Drinkerok/24186-guess-melody/labels{/name}","releases_url":"https://api.github.com/repos/Drinkerok/24186-guess-melody/releases{/id}","deployments_url":"https://api.github.com/repos/Drinkerok/24186-guess-melody/deployments","created_at":"2018-08-06T18:08:48Z","updated_at":"2018-08-22T04:49:20Z","pushed_at":"2018-08-22T12:27:34Z","git_url":"git://github.com/Drinkerok/24186-guess-melody.git","ssh_url":"git@github.com:Drinkerok/24186-guess-melody.git","clone_url":"https://github.com/Drinkerok/24186-guess-melody.git","svn_url":"https://github.com/Drinkerok/24186-guess-melody","homepage":null,"size":1967,"stargazers_count":0,"watchers_count":0,"language":"CSS","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,"license":null,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"htmlacademy-ecmascript:master","ref":"master","sha":"789e448ba3057de892e5e00dba31450aa435cfcc","user":{"login":"htmlacademy-ecmascript","id":22890904,"node_id":"MDEyOk9yZ2FuaXphdGlvbjIyODkwOTA0","avatar_url":"https://avatars2.githubusercontent.com/u/22890904?v=4","gravatar_id":"","url":"https://api.github.com/users/htmlacademy-ecmascript","html_url":"https://github.com/htmlacademy-ecmascript","followers_url":"https://api.github.com/users/htmlacademy-ecmascript/followers","following_url":"https://api.github.com/users/htmlacademy-ecmascript/following{/other_user}","gists_url":"https://api.github.com/users/htmlacademy-ecmascript/gists{/gist_id}","starred_url":"https://api.github.com/users/htmlacademy-ecmascript/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/htmlacademy-ecmascript/subscriptions","organizations_url":"https://api.github.com/users/htmlacademy-ecmascript/orgs","repos_url":"https://api.github.com/users/htmlacademy-ecmascript/repos","events_url":"https://api.github.com/users/htmlacademy-ecmascript/events{/privacy}","received_events_url":"https://api.github.com/users/htmlacademy-ecmascript/received_events","type":"Organization","site_admin":false},"repo":{"id":143765214,"node_id":"MDEwOlJlcG9zaXRvcnkxNDM3NjUyMTQ=","name":"24186-guess-melody","full_name":"htmlacademy-ecmascript/24186-guess-melody","owner":{"login":"htmlacademy-ecmascript","id":22890904,"node_id":"MDEyOk9yZ2FuaXphdGlvbjIyODkwOTA0","avatar_url":"https://avatars2.githubusercontent.com/u/22890904?v=4","gravatar_id":"","url":"https://api.github.com/users/htmlacademy-ecmascript","html_url":"https://github.com/htmlacademy-ecmascript","followers_url":"https://api.github.com/users/htmlacademy-ecmascript/followers","following_url":"https://api.github.com/users/htmlacademy-ecmascript/following{/other_user}","gists_url":"https://api.github.com/users/htmlacademy-ecmascript/gists{/gist_id}","starred_url":"https://api.github.com/users/htmlacademy-ecmascript/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/htmlacademy-ecmascript/subscriptions","organizations_url":"https://api.github.com/users/htmlacademy-ecmascript/orgs","repos_url":"https://api.github.com/users/htmlacademy-ecmascript/repos","events_url":"https://api.github.com/users/htmlacademy-ecmascript/events{/privacy}","received_events_url":"https://api.github.com/users/htmlacademy-ecmascript/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/htmlacademy-ecmascript/24186-guess-melody","description":"Дмитрий Казанцев","fork":false,"url":"https://api.github.com/repos/htmlacademy-ecmascript/24186-guess-melody","forks_url":"https://api.github.com/repos/htmlacademy-ecmascript/24186-guess-melody/forks","keys_url":"https://api.github.com/repos/htmlacademy-ecmascript/24186-guess-melody/keys{/key_id}","collaborators_url":"https://api.github.com/repos/htmlacademy-ecmascript/24186-guess-melody/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/htmlacademy-ecmascript/24186-guess-melody/teams","hooks_url":"https://api.github.com/repos/htmlacademy-ecmascript/24186-guess-melody/hooks","issue_events_url":"https://api.github.com/repos/htmlacademy-ecmascript/24186-guess-melody/issues/events{/number}","events_url":"https://api.github.com/repos/htmlacademy-ecmascript/24186-guess-melody/events","assignees_url":"https://api.github.com/repos/htmlacademy-ecmascript/24186-guess-melody/assignees{/user}","branches_url":"https://api.github.com/repos/htmlacademy-ecmascript/24186-guess-melody/branches{/branch}","tags_url":"https://api.github.com/repos/htmlacademy-ecmascript/24186-guess-melody/tags","blobs_url":"https://api.github.com/repos/htmlacademy-ecmascript/24186-guess-melody/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/htmlacademy-ecmascript/24186-guess-melody/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/htmlacademy-ecmascript/24186-guess-melody/git/refs{/sha}","trees_url":"https://api.github.com/repos/htmlacademy-ecmascript/24186-guess-melody/git/trees{/sha}","statuses_url":"https://api.github.com/repos/htmlacademy-ecmascript/24186-guess-melody/statuses/{sha}","languages_url":"https://api.github.com/repos/htmlacademy-ecmascript/24186-guess-melody/languages","stargazers_url":"https://api.github.com/repos/htmlacademy-ecmascript/24186-guess-melody/stargazers","contributors_url":"https://api.github.com/repos/htmlacademy-ecmascript/24186-guess-melody/contributors","subscribers_url":"https://api.github.com/repos/htmlacademy-ecmascript/24186-guess-melody/subscribers","subscription_url":"https://api.github.com/repos/htmlacademy-ecmascript/24186-guess-melody/subscription","commits_url":"https://api.github.com/repos/htmlacademy-ecmascript/24186-guess-melody/commits{/sha}","git_commits_url":"https://api.github.com/repos/htmlacademy-ecmascript/24186-guess-melody/git/commits{/sha}","comments_url":"https://api.github.com/repos/htmlacademy-ecmascript/24186-guess-melody/comments{/number}","issue_comment_url":"https://api.github.com/repos/htmlacademy-ecmascript/24186-guess-melody/issues/comments{/number}","contents_url":"https://api.github.com/repos/htmlacademy-ecmascript/24186-guess-melody/contents/{+path}","compare_url":"https://api.github.com/repos/htmlacademy-ecmascript/24186-guess-melody/compare/{base}...{head}","merges_url":"https://api.github.com/repos/htmlacademy-ecmascript/24186-guess-melody/merges","archive_url":"https://api.github.com/repos/htmlacademy-ecmascript/24186-guess-melody/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/htmlacademy-ecmascript/24186-guess-melody/downloads","issues_url":"https://api.github.com/repos/htmlacademy-ecmascript/24186-guess-melody/issues{/number}","pulls_url":"https://api.github.com/repos/htmlacademy-ecmascript/24186-guess-melody/pulls{/number}","milestones_url":"https://api.github.com/repos/htmlacademy-ecmascript/24186-guess-melody/milestones{/number}","notifications_url":"https://api.github.com/repos/htmlacademy-ecmascript/24186-guess-melody/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/htmlacademy-ecmascript/24186-guess-melody/labels{/name}","releases_url":"https://api.github.com/repos/htmlacademy-ecmascript/24186-guess-melody/releases{/id}","deployments_url":"https://api.github.com/repos/htmlacademy-ecmascript/24186-guess-melody/deployments","created_at":"2018-08-06T18:08:14Z","updated_at":"2018-08-21T16:13:33Z","pushed_at":"2018-08-22T12:30:03Z","git_url":"git://github.com/htmlacademy-ecmascript/24186-guess-melody.git","ssh_url":"git@github.com:htmlacademy-ecmascript/24186-guess-melody.git","clone_url":"https://github.com/htmlacademy-ecmascript/24186-guess-melody.git","svn_url":"https://github.com/htmlacademy-ecmascript/24186-guess-melody","homepage":"https://github.com/Drinkerok/24186-guess-melody","size":2008,"stargazers_count":0,"watchers_count":0,"language":"CSS","has_issues":false,"has_projects":false,"has_downloads":false,"has_wiki":false,"has_pages":true,"forks_count":1,"mirror_url":null,"archived":false,"open_issues_count":1,"license":null,"forks":1,"open_issues":1,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/htmlacademy-ecmascript/24186-guess-melody/pulls/5"},"html":{"href":"https://github.com/htmlacademy-ecmascript/24186-guess-melody/pull/5"},"issue":{"href":"https://api.github.com/repos/htmlacademy-ecmascript/24186-guess-melody/issues/5"},"comments":{"href":"https://api.github.com/repos/htmlacademy-ecmascript/24186-guess-melody/issues/5/comments"},"review_comments":{"href":"https://api.github.com/repos/htmlacademy-ecmascript/24186-guess-melody/pulls/5/comments"},"review_comment":{"href":"https://api.github.com/repos/htmlacademy-ecmascript/24186-guess-melody/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/htmlacademy-ecmascript/24186-guess-melody/pulls/5/commits"},"statuses":{"href":"https://api.github.com/repos/htmlacademy-ecmascript/24186-guess-melody/statuses/e054d0511473bacb2d2e7b54d1d605c54c149920"}},"author_association":"CONTRIBUTOR"}}
{"actor":{"display_login":"nikolayemrikh"}}