{"action":"created","comment":{"url":"https://api.github.com/repos/urfu-2015/webdev-tasks-1/pulls/comments/54409779","id":54409779,"diff_hunk":"@@ -0,0 +1,122 @@\n+const https = require('https');\n+const request = require('request');\n+const fs = require('fs');\n+const natural = require('natural');\n+\n+var wordCountIsDone = false;\n+var rootCount = {};\n+var wordToRoot = {};\n+var rootToWord = {};\n+\n+module.exports.top = function (n) {\n+    if (wordCountIsDone) {\n+        showTop(n);\n+        return;\n+    }\n+    getWordCount(function (error) {\n+        if (!error) {\n+            wordCountIsDone = true;\n+            showTop(n);\n+        }\n+    });","path":"counter.js","position":21,"original_position":21,"commit_id":"e74a5ae08733f5c02b3547a5a31699c09e023ee4","original_commit_id":"e74a5ae08733f5c02b3547a5a31699c09e023ee4","user":{"login":"mrsamo","id":4165695,"avatar_url":"https://avatars.githubusercontent.com/u/4165695?v=3","gravatar_id":"","url":"https://api.github.com/users/mrsamo","html_url":"https://github.com/mrsamo","followers_url":"https://api.github.com/users/mrsamo/followers","following_url":"https://api.github.com/users/mrsamo/following{/other_user}","gists_url":"https://api.github.com/users/mrsamo/gists{/gist_id}","starred_url":"https://api.github.com/users/mrsamo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mrsamo/subscriptions","organizations_url":"https://api.github.com/users/mrsamo/orgs","repos_url":"https://api.github.com/users/mrsamo/repos","events_url":"https://api.github.com/users/mrsamo/events{/privacy}","received_events_url":"https://api.github.com/users/mrsamo/received_events","type":"User","site_admin":false},"body":"Есть ли шанс увидеть ошибку? )","created_at":"2016-02-29T13:39:03Z","updated_at":"2016-02-29T13:39:03Z","html_url":"https://github.com/urfu-2015/webdev-tasks-1/pull/15#discussion_r54409779","pull_request_url":"https://api.github.com/repos/urfu-2015/webdev-tasks-1/pulls/15","_links":{"self":{"href":"https://api.github.com/repos/urfu-2015/webdev-tasks-1/pulls/comments/54409779"},"html":{"href":"https://github.com/urfu-2015/webdev-tasks-1/pull/15#discussion_r54409779"},"pull_request":{"href":"https://api.github.com/repos/urfu-2015/webdev-tasks-1/pulls/15"}}},"pull_request":{"url":"https://api.github.com/repos/urfu-2015/webdev-tasks-1/pulls/15","id":60561414,"html_url":"https://github.com/urfu-2015/webdev-tasks-1/pull/15","diff_url":"https://github.com/urfu-2015/webdev-tasks-1/pull/15.diff","patch_url":"https://github.com/urfu-2015/webdev-tasks-1/pull/15.patch","issue_url":"https://api.github.com/repos/urfu-2015/webdev-tasks-1/issues/15","number":15,"state":"open","locked":false,"title":"Кузнецов Василий","user":{"login":"VasiliiKuznecov","id":8963033,"avatar_url":"https://avatars.githubusercontent.com/u/8963033?v=3","gravatar_id":"","url":"https://api.github.com/users/VasiliiKuznecov","html_url":"https://github.com/VasiliiKuznecov","followers_url":"https://api.github.com/users/VasiliiKuznecov/followers","following_url":"https://api.github.com/users/VasiliiKuznecov/following{/other_user}","gists_url":"https://api.github.com/users/VasiliiKuznecov/gists{/gist_id}","starred_url":"https://api.github.com/users/VasiliiKuznecov/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/VasiliiKuznecov/subscriptions","organizations_url":"https://api.github.com/users/VasiliiKuznecov/orgs","repos_url":"https://api.github.com/users/VasiliiKuznecov/repos","events_url":"https://api.github.com/users/VasiliiKuznecov/events{/privacy}","received_events_url":"https://api.github.com/users/VasiliiKuznecov/received_events","type":"User","site_admin":false},"body":"","created_at":"2016-02-24T19:10:20Z","updated_at":"2016-02-29T13:39:03Z","closed_at":null,"merged_at":null,"merge_commit_sha":"b2c8026b0df18a4fda0e0509aa8d71d0427da8ce","assignee":{"login":"mrsamo","id":4165695,"avatar_url":"https://avatars.githubusercontent.com/u/4165695?v=3","gravatar_id":"","url":"https://api.github.com/users/mrsamo","html_url":"https://github.com/mrsamo","followers_url":"https://api.github.com/users/mrsamo/followers","following_url":"https://api.github.com/users/mrsamo/following{/other_user}","gists_url":"https://api.github.com/users/mrsamo/gists{/gist_id}","starred_url":"https://api.github.com/users/mrsamo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mrsamo/subscriptions","organizations_url":"https://api.github.com/users/mrsamo/orgs","repos_url":"https://api.github.com/users/mrsamo/repos","events_url":"https://api.github.com/users/mrsamo/events{/privacy}","received_events_url":"https://api.github.com/users/mrsamo/received_events","type":"User","site_admin":false},"milestone":null,"commits_url":"https://api.github.com/repos/urfu-2015/webdev-tasks-1/pulls/15/commits","review_comments_url":"https://api.github.com/repos/urfu-2015/webdev-tasks-1/pulls/15/comments","review_comment_url":"https://api.github.com/repos/urfu-2015/webdev-tasks-1/pulls/comments{/number}","comments_url":"https://api.github.com/repos/urfu-2015/webdev-tasks-1/issues/15/comments","statuses_url":"https://api.github.com/repos/urfu-2015/webdev-tasks-1/statuses/e74a5ae08733f5c02b3547a5a31699c09e023ee4","head":{"label":"VasiliiKuznecov:master","ref":"master","sha":"e74a5ae08733f5c02b3547a5a31699c09e023ee4","user":{"login":"VasiliiKuznecov","id":8963033,"avatar_url":"https://avatars.githubusercontent.com/u/8963033?v=3","gravatar_id":"","url":"https://api.github.com/users/VasiliiKuznecov","html_url":"https://github.com/VasiliiKuznecov","followers_url":"https://api.github.com/users/VasiliiKuznecov/followers","following_url":"https://api.github.com/users/VasiliiKuznecov/following{/other_user}","gists_url":"https://api.github.com/users/VasiliiKuznecov/gists{/gist_id}","starred_url":"https://api.github.com/users/VasiliiKuznecov/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/VasiliiKuznecov/subscriptions","organizations_url":"https://api.github.com/users/VasiliiKuznecov/orgs","repos_url":"https://api.github.com/users/VasiliiKuznecov/repos","events_url":"https://api.github.com/users/VasiliiKuznecov/events{/privacy}","received_events_url":"https://api.github.com/users/VasiliiKuznecov/received_events","type":"User","site_admin":false},"repo":{"id":52092384,"name":"webdev-tasks-1","full_name":"VasiliiKuznecov/webdev-tasks-1","owner":{"login":"VasiliiKuznecov","id":8963033,"avatar_url":"https://avatars.githubusercontent.com/u/8963033?v=3","gravatar_id":"","url":"https://api.github.com/users/VasiliiKuznecov","html_url":"https://github.com/VasiliiKuznecov","followers_url":"https://api.github.com/users/VasiliiKuznecov/followers","following_url":"https://api.github.com/users/VasiliiKuznecov/following{/other_user}","gists_url":"https://api.github.com/users/VasiliiKuznecov/gists{/gist_id}","starred_url":"https://api.github.com/users/VasiliiKuznecov/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/VasiliiKuznecov/subscriptions","organizations_url":"https://api.github.com/users/VasiliiKuznecov/orgs","repos_url":"https://api.github.com/users/VasiliiKuznecov/repos","events_url":"https://api.github.com/users/VasiliiKuznecov/events{/privacy}","received_events_url":"https://api.github.com/users/VasiliiKuznecov/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/VasiliiKuznecov/webdev-tasks-1","description":"","fork":true,"url":"https://api.github.com/repos/VasiliiKuznecov/webdev-tasks-1","forks_url":"https://api.github.com/repos/VasiliiKuznecov/webdev-tasks-1/forks","keys_url":"https://api.github.com/repos/VasiliiKuznecov/webdev-tasks-1/keys{/key_id}","collaborators_url":"https://api.github.com/repos/VasiliiKuznecov/webdev-tasks-1/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/VasiliiKuznecov/webdev-tasks-1/teams","hooks_url":"https://api.github.com/repos/VasiliiKuznecov/webdev-tasks-1/hooks","issue_events_url":"https://api.github.com/repos/VasiliiKuznecov/webdev-tasks-1/issues/events{/number}","events_url":"https://api.github.com/repos/VasiliiKuznecov/webdev-tasks-1/events","assignees_url":"https://api.github.com/repos/VasiliiKuznecov/webdev-tasks-1/assignees{/user}","branches_url":"https://api.github.com/repos/VasiliiKuznecov/webdev-tasks-1/branches{/branch}","tags_url":"https://api.github.com/repos/VasiliiKuznecov/webdev-tasks-1/tags","blobs_url":"https://api.github.com/repos/VasiliiKuznecov/webdev-tasks-1/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/VasiliiKuznecov/webdev-tasks-1/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/VasiliiKuznecov/webdev-tasks-1/git/refs{/sha}","trees_url":"https://api.github.com/repos/VasiliiKuznecov/webdev-tasks-1/git/trees{/sha}","statuses_url":"https://api.github.com/repos/VasiliiKuznecov/webdev-tasks-1/statuses/{sha}","languages_url":"https://api.github.com/repos/VasiliiKuznecov/webdev-tasks-1/languages","stargazers_url":"https://api.github.com/repos/VasiliiKuznecov/webdev-tasks-1/stargazers","contributors_url":"https://api.github.com/repos/VasiliiKuznecov/webdev-tasks-1/contributors","subscribers_url":"https://api.github.com/repos/VasiliiKuznecov/webdev-tasks-1/subscribers","subscription_url":"https://api.github.com/repos/VasiliiKuznecov/webdev-tasks-1/subscription","commits_url":"https://api.github.com/repos/VasiliiKuznecov/webdev-tasks-1/commits{/sha}","git_commits_url":"https://api.github.com/repos/VasiliiKuznecov/webdev-tasks-1/git/commits{/sha}","comments_url":"https://api.github.com/repos/VasiliiKuznecov/webdev-tasks-1/comments{/number}","issue_comment_url":"https://api.github.com/repos/VasiliiKuznecov/webdev-tasks-1/issues/comments{/number}","contents_url":"https://api.github.com/repos/VasiliiKuznecov/webdev-tasks-1/contents/{+path}","compare_url":"https://api.github.com/repos/VasiliiKuznecov/webdev-tasks-1/compare/{base}...{head}","merges_url":"https://api.github.com/repos/VasiliiKuznecov/webdev-tasks-1/merges","archive_url":"https://api.github.com/repos/VasiliiKuznecov/webdev-tasks-1/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/VasiliiKuznecov/webdev-tasks-1/downloads","issues_url":"https://api.github.com/repos/VasiliiKuznecov/webdev-tasks-1/issues{/number}","pulls_url":"https://api.github.com/repos/VasiliiKuznecov/webdev-tasks-1/pulls{/number}","milestones_url":"https://api.github.com/repos/VasiliiKuznecov/webdev-tasks-1/milestones{/number}","notifications_url":"https://api.github.com/repos/VasiliiKuznecov/webdev-tasks-1/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/VasiliiKuznecov/webdev-tasks-1/labels{/name}","releases_url":"https://api.github.com/repos/VasiliiKuznecov/webdev-tasks-1/releases{/id}","deployments_url":"https://api.github.com/repos/VasiliiKuznecov/webdev-tasks-1/deployments","created_at":"2016-02-19T14:17:30Z","updated_at":"2016-02-24T19:09:36Z","pushed_at":"2016-02-24T19:09:35Z","git_url":"git://github.com/VasiliiKuznecov/webdev-tasks-1.git","ssh_url":"git@github.com:VasiliiKuznecov/webdev-tasks-1.git","clone_url":"https://github.com/VasiliiKuznecov/webdev-tasks-1.git","svn_url":"https://github.com/VasiliiKuznecov/webdev-tasks-1","homepage":null,"size":7,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"urfu-2015:master","ref":"master","sha":"6ff732253132f88e1eec631e611136f3676768b7","user":{"login":"urfu-2015","id":14800971,"avatar_url":"https://avatars.githubusercontent.com/u/14800971?v=3","gravatar_id":"","url":"https://api.github.com/users/urfu-2015","html_url":"https://github.com/urfu-2015","followers_url":"https://api.github.com/users/urfu-2015/followers","following_url":"https://api.github.com/users/urfu-2015/following{/other_user}","gists_url":"https://api.github.com/users/urfu-2015/gists{/gist_id}","starred_url":"https://api.github.com/users/urfu-2015/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/urfu-2015/subscriptions","organizations_url":"https://api.github.com/users/urfu-2015/orgs","repos_url":"https://api.github.com/users/urfu-2015/repos","events_url":"https://api.github.com/users/urfu-2015/events{/privacy}","received_events_url":"https://api.github.com/users/urfu-2015/received_events","type":"Organization","site_admin":false},"repo":{"id":52003967,"name":"webdev-tasks-1","full_name":"urfu-2015/webdev-tasks-1","owner":{"login":"urfu-2015","id":14800971,"avatar_url":"https://avatars.githubusercontent.com/u/14800971?v=3","gravatar_id":"","url":"https://api.github.com/users/urfu-2015","html_url":"https://github.com/urfu-2015","followers_url":"https://api.github.com/users/urfu-2015/followers","following_url":"https://api.github.com/users/urfu-2015/following{/other_user}","gists_url":"https://api.github.com/users/urfu-2015/gists{/gist_id}","starred_url":"https://api.github.com/users/urfu-2015/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/urfu-2015/subscriptions","organizations_url":"https://api.github.com/users/urfu-2015/orgs","repos_url":"https://api.github.com/users/urfu-2015/repos","events_url":"https://api.github.com/users/urfu-2015/events{/privacy}","received_events_url":"https://api.github.com/users/urfu-2015/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/urfu-2015/webdev-tasks-1","description":"","fork":false,"url":"https://api.github.com/repos/urfu-2015/webdev-tasks-1","forks_url":"https://api.github.com/repos/urfu-2015/webdev-tasks-1/forks","keys_url":"https://api.github.com/repos/urfu-2015/webdev-tasks-1/keys{/key_id}","collaborators_url":"https://api.github.com/repos/urfu-2015/webdev-tasks-1/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/urfu-2015/webdev-tasks-1/teams","hooks_url":"https://api.github.com/repos/urfu-2015/webdev-tasks-1/hooks","issue_events_url":"https://api.github.com/repos/urfu-2015/webdev-tasks-1/issues/events{/number}","events_url":"https://api.github.com/repos/urfu-2015/webdev-tasks-1/events","assignees_url":"https://api.github.com/repos/urfu-2015/webdev-tasks-1/assignees{/user}","branches_url":"https://api.github.com/repos/urfu-2015/webdev-tasks-1/branches{/branch}","tags_url":"https://api.github.com/repos/urfu-2015/webdev-tasks-1/tags","blobs_url":"https://api.github.com/repos/urfu-2015/webdev-tasks-1/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/urfu-2015/webdev-tasks-1/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/urfu-2015/webdev-tasks-1/git/refs{/sha}","trees_url":"https://api.github.com/repos/urfu-2015/webdev-tasks-1/git/trees{/sha}","statuses_url":"https://api.github.com/repos/urfu-2015/webdev-tasks-1/statuses/{sha}","languages_url":"https://api.github.com/repos/urfu-2015/webdev-tasks-1/languages","stargazers_url":"https://api.github.com/repos/urfu-2015/webdev-tasks-1/stargazers","contributors_url":"https://api.github.com/repos/urfu-2015/webdev-tasks-1/contributors","subscribers_url":"https://api.github.com/repos/urfu-2015/webdev-tasks-1/subscribers","subscription_url":"https://api.github.com/repos/urfu-2015/webdev-tasks-1/subscription","commits_url":"https://api.github.com/repos/urfu-2015/webdev-tasks-1/commits{/sha}","git_commits_url":"https://api.github.com/repos/urfu-2015/webdev-tasks-1/git/commits{/sha}","comments_url":"https://api.github.com/repos/urfu-2015/webdev-tasks-1/comments{/number}","issue_comment_url":"https://api.github.com/repos/urfu-2015/webdev-tasks-1/issues/comments{/number}","contents_url":"https://api.github.com/repos/urfu-2015/webdev-tasks-1/contents/{+path}","compare_url":"https://api.github.com/repos/urfu-2015/webdev-tasks-1/compare/{base}...{head}","merges_url":"https://api.github.com/repos/urfu-2015/webdev-tasks-1/merges","archive_url":"https://api.github.com/repos/urfu-2015/webdev-tasks-1/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/urfu-2015/webdev-tasks-1/downloads","issues_url":"https://api.github.com/repos/urfu-2015/webdev-tasks-1/issues{/number}","pulls_url":"https://api.github.com/repos/urfu-2015/webdev-tasks-1/pulls{/number}","milestones_url":"https://api.github.com/repos/urfu-2015/webdev-tasks-1/milestones{/number}","notifications_url":"https://api.github.com/repos/urfu-2015/webdev-tasks-1/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/urfu-2015/webdev-tasks-1/labels{/name}","releases_url":"https://api.github.com/repos/urfu-2015/webdev-tasks-1/releases{/id}","deployments_url":"https://api.github.com/repos/urfu-2015/webdev-tasks-1/deployments","created_at":"2016-02-18T11:54:14Z","updated_at":"2016-02-18T11:54:14Z","pushed_at":"2016-02-29T13:26:13Z","git_url":"git://github.com/urfu-2015/webdev-tasks-1.git","ssh_url":"git@github.com:urfu-2015/webdev-tasks-1.git","clone_url":"https://github.com/urfu-2015/webdev-tasks-1.git","svn_url":"https://github.com/urfu-2015/webdev-tasks-1","homepage":null,"size":5,"stargazers_count":0,"watchers_count":0,"language":null,"has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":34,"mirror_url":null,"open_issues_count":20,"forks":34,"open_issues":20,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/urfu-2015/webdev-tasks-1/pulls/15"},"html":{"href":"https://github.com/urfu-2015/webdev-tasks-1/pull/15"},"issue":{"href":"https://api.github.com/repos/urfu-2015/webdev-tasks-1/issues/15"},"comments":{"href":"https://api.github.com/repos/urfu-2015/webdev-tasks-1/issues/15/comments"},"review_comments":{"href":"https://api.github.com/repos/urfu-2015/webdev-tasks-1/pulls/15/comments"},"review_comment":{"href":"https://api.github.com/repos/urfu-2015/webdev-tasks-1/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/urfu-2015/webdev-tasks-1/pulls/15/commits"},"statuses":{"href":"https://api.github.com/repos/urfu-2015/webdev-tasks-1/statuses/e74a5ae08733f5c02b3547a5a31699c09e023ee4"}}}}