{"action":"created","comment":{"url":"https://api.github.com/repos/urfu-2015/javascript-tasks-1/pulls/comments/41252583","id":41252583,"diff_hunk":"@@ -1,4 +1,25 @@\n+function translate(n){\n+\tfor (var i = a.length - 1; i >= 0; i--) {\n+        while (n >= b[i]) {\n+            str += a[i];\n+            n -= b[i];\n+        }\n+    }\n+}\n+\n var hours = process.argv[2];\n var minutes = process.argv[3];\n \n-// Немного замечательного кода и магии\n+var a = new Array(\"I\",\"IV\",\"V\",\"IX\",\"X\",\"XL\",\"L\",\"XC\",\"C\",\"CD\",\"D\",\"CM\",\"M\");","path":"roman-time.js","position":14,"original_position":14,"commit_id":"fe74e72d07ac61caeaaf2400e416b237ef1ab643","original_commit_id":"fe74e72d07ac61caeaaf2400e416b237ef1ab643","user":{"login":"i4got10","id":1151154,"avatar_url":"https://avatars.githubusercontent.com/u/1151154?v=3","gravatar_id":"","url":"https://api.github.com/users/i4got10","html_url":"https://github.com/i4got10","followers_url":"https://api.github.com/users/i4got10/followers","following_url":"https://api.github.com/users/i4got10/following{/other_user}","gists_url":"https://api.github.com/users/i4got10/gists{/gist_id}","starred_url":"https://api.github.com/users/i4got10/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/i4got10/subscriptions","organizations_url":"https://api.github.com/users/i4got10/orgs","repos_url":"https://api.github.com/users/i4got10/repos","events_url":"https://api.github.com/users/i4got10/events{/privacy}","received_events_url":"https://api.github.com/users/i4got10/received_events","type":"User","site_admin":false},"body":"Непонятное имя переменной","created_at":"2015-10-06T11:29:24Z","updated_at":"2015-10-06T11:29:24Z","html_url":"https://github.com/urfu-2015/javascript-tasks-1/pull/51#discussion_r41252583","pull_request_url":"https://api.github.com/repos/urfu-2015/javascript-tasks-1/pulls/51","_links":{"self":{"href":"https://api.github.com/repos/urfu-2015/javascript-tasks-1/pulls/comments/41252583"},"html":{"href":"https://github.com/urfu-2015/javascript-tasks-1/pull/51#discussion_r41252583"},"pull_request":{"href":"https://api.github.com/repos/urfu-2015/javascript-tasks-1/pulls/51"}}},"pull_request":{"url":"https://api.github.com/repos/urfu-2015/javascript-tasks-1/pulls/51","id":46789216,"html_url":"https://github.com/urfu-2015/javascript-tasks-1/pull/51","diff_url":"https://github.com/urfu-2015/javascript-tasks-1/pull/51.diff","patch_url":"https://github.com/urfu-2015/javascript-tasks-1/pull/51.patch","issue_url":"https://api.github.com/repos/urfu-2015/javascript-tasks-1/issues/51","number":51,"state":"open","locked":false,"title":"Хапов Кирилл (Khapov Kirill)","user":{"login":"Khapov-Kirill","id":14923472,"avatar_url":"https://avatars.githubusercontent.com/u/14923472?v=3","gravatar_id":"","url":"https://api.github.com/users/Khapov-Kirill","html_url":"https://github.com/Khapov-Kirill","followers_url":"https://api.github.com/users/Khapov-Kirill/followers","following_url":"https://api.github.com/users/Khapov-Kirill/following{/other_user}","gists_url":"https://api.github.com/users/Khapov-Kirill/gists{/gist_id}","starred_url":"https://api.github.com/users/Khapov-Kirill/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Khapov-Kirill/subscriptions","organizations_url":"https://api.github.com/users/Khapov-Kirill/orgs","repos_url":"https://api.github.com/users/Khapov-Kirill/repos","events_url":"https://api.github.com/users/Khapov-Kirill/events{/privacy}","received_events_url":"https://api.github.com/users/Khapov-Kirill/received_events","type":"User","site_admin":false},"body":".","created_at":"2015-10-05T14:43:39Z","updated_at":"2015-10-06T11:29:24Z","closed_at":null,"merged_at":null,"merge_commit_sha":"a3df19603a31b4eedca8a6bff90ae4483ecdac7b","assignee":{"login":"i4got10","id":1151154,"avatar_url":"https://avatars.githubusercontent.com/u/1151154?v=3","gravatar_id":"","url":"https://api.github.com/users/i4got10","html_url":"https://github.com/i4got10","followers_url":"https://api.github.com/users/i4got10/followers","following_url":"https://api.github.com/users/i4got10/following{/other_user}","gists_url":"https://api.github.com/users/i4got10/gists{/gist_id}","starred_url":"https://api.github.com/users/i4got10/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/i4got10/subscriptions","organizations_url":"https://api.github.com/users/i4got10/orgs","repos_url":"https://api.github.com/users/i4got10/repos","events_url":"https://api.github.com/users/i4got10/events{/privacy}","received_events_url":"https://api.github.com/users/i4got10/received_events","type":"User","site_admin":false},"milestone":null,"commits_url":"https://api.github.com/repos/urfu-2015/javascript-tasks-1/pulls/51/commits","review_comments_url":"https://api.github.com/repos/urfu-2015/javascript-tasks-1/pulls/51/comments","review_comment_url":"https://api.github.com/repos/urfu-2015/javascript-tasks-1/pulls/comments{/number}","comments_url":"https://api.github.com/repos/urfu-2015/javascript-tasks-1/issues/51/comments","statuses_url":"https://api.github.com/repos/urfu-2015/javascript-tasks-1/statuses/fe74e72d07ac61caeaaf2400e416b237ef1ab643","head":{"label":"Khapov-Kirill:master","ref":"master","sha":"fe74e72d07ac61caeaaf2400e416b237ef1ab643","user":{"login":"Khapov-Kirill","id":14923472,"avatar_url":"https://avatars.githubusercontent.com/u/14923472?v=3","gravatar_id":"","url":"https://api.github.com/users/Khapov-Kirill","html_url":"https://github.com/Khapov-Kirill","followers_url":"https://api.github.com/users/Khapov-Kirill/followers","following_url":"https://api.github.com/users/Khapov-Kirill/following{/other_user}","gists_url":"https://api.github.com/users/Khapov-Kirill/gists{/gist_id}","starred_url":"https://api.github.com/users/Khapov-Kirill/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Khapov-Kirill/subscriptions","organizations_url":"https://api.github.com/users/Khapov-Kirill/orgs","repos_url":"https://api.github.com/users/Khapov-Kirill/repos","events_url":"https://api.github.com/users/Khapov-Kirill/events{/privacy}","received_events_url":"https://api.github.com/users/Khapov-Kirill/received_events","type":"User","site_admin":false},"repo":{"id":43689914,"name":"javascript-tasks-1","full_name":"Khapov-Kirill/javascript-tasks-1","owner":{"login":"Khapov-Kirill","id":14923472,"avatar_url":"https://avatars.githubusercontent.com/u/14923472?v=3","gravatar_id":"","url":"https://api.github.com/users/Khapov-Kirill","html_url":"https://github.com/Khapov-Kirill","followers_url":"https://api.github.com/users/Khapov-Kirill/followers","following_url":"https://api.github.com/users/Khapov-Kirill/following{/other_user}","gists_url":"https://api.github.com/users/Khapov-Kirill/gists{/gist_id}","starred_url":"https://api.github.com/users/Khapov-Kirill/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Khapov-Kirill/subscriptions","organizations_url":"https://api.github.com/users/Khapov-Kirill/orgs","repos_url":"https://api.github.com/users/Khapov-Kirill/repos","events_url":"https://api.github.com/users/Khapov-Kirill/events{/privacy}","received_events_url":"https://api.github.com/users/Khapov-Kirill/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/Khapov-Kirill/javascript-tasks-1","description":"Задача к лекции «Введение в Javascript»","fork":true,"url":"https://api.github.com/repos/Khapov-Kirill/javascript-tasks-1","forks_url":"https://api.github.com/repos/Khapov-Kirill/javascript-tasks-1/forks","keys_url":"https://api.github.com/repos/Khapov-Kirill/javascript-tasks-1/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Khapov-Kirill/javascript-tasks-1/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Khapov-Kirill/javascript-tasks-1/teams","hooks_url":"https://api.github.com/repos/Khapov-Kirill/javascript-tasks-1/hooks","issue_events_url":"https://api.github.com/repos/Khapov-Kirill/javascript-tasks-1/issues/events{/number}","events_url":"https://api.github.com/repos/Khapov-Kirill/javascript-tasks-1/events","assignees_url":"https://api.github.com/repos/Khapov-Kirill/javascript-tasks-1/assignees{/user}","branches_url":"https://api.github.com/repos/Khapov-Kirill/javascript-tasks-1/branches{/branch}","tags_url":"https://api.github.com/repos/Khapov-Kirill/javascript-tasks-1/tags","blobs_url":"https://api.github.com/repos/Khapov-Kirill/javascript-tasks-1/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Khapov-Kirill/javascript-tasks-1/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Khapov-Kirill/javascript-tasks-1/git/refs{/sha}","trees_url":"https://api.github.com/repos/Khapov-Kirill/javascript-tasks-1/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Khapov-Kirill/javascript-tasks-1/statuses/{sha}","languages_url":"https://api.github.com/repos/Khapov-Kirill/javascript-tasks-1/languages","stargazers_url":"https://api.github.com/repos/Khapov-Kirill/javascript-tasks-1/stargazers","contributors_url":"https://api.github.com/repos/Khapov-Kirill/javascript-tasks-1/contributors","subscribers_url":"https://api.github.com/repos/Khapov-Kirill/javascript-tasks-1/subscribers","subscription_url":"https://api.github.com/repos/Khapov-Kirill/javascript-tasks-1/subscription","commits_url":"https://api.github.com/repos/Khapov-Kirill/javascript-tasks-1/commits{/sha}","git_commits_url":"https://api.github.com/repos/Khapov-Kirill/javascript-tasks-1/git/commits{/sha}","comments_url":"https://api.github.com/repos/Khapov-Kirill/javascript-tasks-1/comments{/number}","issue_comment_url":"https://api.github.com/repos/Khapov-Kirill/javascript-tasks-1/issues/comments{/number}","contents_url":"https://api.github.com/repos/Khapov-Kirill/javascript-tasks-1/contents/{+path}","compare_url":"https://api.github.com/repos/Khapov-Kirill/javascript-tasks-1/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Khapov-Kirill/javascript-tasks-1/merges","archive_url":"https://api.github.com/repos/Khapov-Kirill/javascript-tasks-1/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Khapov-Kirill/javascript-tasks-1/downloads","issues_url":"https://api.github.com/repos/Khapov-Kirill/javascript-tasks-1/issues{/number}","pulls_url":"https://api.github.com/repos/Khapov-Kirill/javascript-tasks-1/pulls{/number}","milestones_url":"https://api.github.com/repos/Khapov-Kirill/javascript-tasks-1/milestones{/number}","notifications_url":"https://api.github.com/repos/Khapov-Kirill/javascript-tasks-1/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Khapov-Kirill/javascript-tasks-1/labels{/name}","releases_url":"https://api.github.com/repos/Khapov-Kirill/javascript-tasks-1/releases{/id}","created_at":"2015-10-05T14:37:38Z","updated_at":"2015-10-05T14:37:39Z","pushed_at":"2015-10-05T16:33:35Z","git_url":"git://github.com/Khapov-Kirill/javascript-tasks-1.git","ssh_url":"git@github.com:Khapov-Kirill/javascript-tasks-1.git","clone_url":"https://github.com/Khapov-Kirill/javascript-tasks-1.git","svn_url":"https://github.com/Khapov-Kirill/javascript-tasks-1","homepage":null,"size":108,"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":"9f95181b7277c6920aac2370301d07fc7cbc4080","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":43342589,"name":"javascript-tasks-1","full_name":"urfu-2015/javascript-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/javascript-tasks-1","description":"Задача к лекции «Введение в Javascript»","fork":false,"url":"https://api.github.com/repos/urfu-2015/javascript-tasks-1","forks_url":"https://api.github.com/repos/urfu-2015/javascript-tasks-1/forks","keys_url":"https://api.github.com/repos/urfu-2015/javascript-tasks-1/keys{/key_id}","collaborators_url":"https://api.github.com/repos/urfu-2015/javascript-tasks-1/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/urfu-2015/javascript-tasks-1/teams","hooks_url":"https://api.github.com/repos/urfu-2015/javascript-tasks-1/hooks","issue_events_url":"https://api.github.com/repos/urfu-2015/javascript-tasks-1/issues/events{/number}","events_url":"https://api.github.com/repos/urfu-2015/javascript-tasks-1/events","assignees_url":"https://api.github.com/repos/urfu-2015/javascript-tasks-1/assignees{/user}","branches_url":"https://api.github.com/repos/urfu-2015/javascript-tasks-1/branches{/branch}","tags_url":"https://api.github.com/repos/urfu-2015/javascript-tasks-1/tags","blobs_url":"https://api.github.com/repos/urfu-2015/javascript-tasks-1/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/urfu-2015/javascript-tasks-1/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/urfu-2015/javascript-tasks-1/git/refs{/sha}","trees_url":"https://api.github.com/repos/urfu-2015/javascript-tasks-1/git/trees{/sha}","statuses_url":"https://api.github.com/repos/urfu-2015/javascript-tasks-1/statuses/{sha}","languages_url":"https://api.github.com/repos/urfu-2015/javascript-tasks-1/languages","stargazers_url":"https://api.github.com/repos/urfu-2015/javascript-tasks-1/stargazers","contributors_url":"https://api.github.com/repos/urfu-2015/javascript-tasks-1/contributors","subscribers_url":"https://api.github.com/repos/urfu-2015/javascript-tasks-1/subscribers","subscription_url":"https://api.github.com/repos/urfu-2015/javascript-tasks-1/subscription","commits_url":"https://api.github.com/repos/urfu-2015/javascript-tasks-1/commits{/sha}","git_commits_url":"https://api.github.com/repos/urfu-2015/javascript-tasks-1/git/commits{/sha}","comments_url":"https://api.github.com/repos/urfu-2015/javascript-tasks-1/comments{/number}","issue_comment_url":"https://api.github.com/repos/urfu-2015/javascript-tasks-1/issues/comments{/number}","contents_url":"https://api.github.com/repos/urfu-2015/javascript-tasks-1/contents/{+path}","compare_url":"https://api.github.com/repos/urfu-2015/javascript-tasks-1/compare/{base}...{head}","merges_url":"https://api.github.com/repos/urfu-2015/javascript-tasks-1/merges","archive_url":"https://api.github.com/repos/urfu-2015/javascript-tasks-1/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/urfu-2015/javascript-tasks-1/downloads","issues_url":"https://api.github.com/repos/urfu-2015/javascript-tasks-1/issues{/number}","pulls_url":"https://api.github.com/repos/urfu-2015/javascript-tasks-1/pulls{/number}","milestones_url":"https://api.github.com/repos/urfu-2015/javascript-tasks-1/milestones{/number}","notifications_url":"https://api.github.com/repos/urfu-2015/javascript-tasks-1/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/urfu-2015/javascript-tasks-1/labels{/name}","releases_url":"https://api.github.com/repos/urfu-2015/javascript-tasks-1/releases{/id}","created_at":"2015-09-29T03:28:09Z","updated_at":"2015-10-05T13:34:00Z","pushed_at":"2015-10-06T10:42:20Z","git_url":"git://github.com/urfu-2015/javascript-tasks-1.git","ssh_url":"git@github.com:urfu-2015/javascript-tasks-1.git","clone_url":"https://github.com/urfu-2015/javascript-tasks-1.git","svn_url":"https://github.com/urfu-2015/javascript-tasks-1","homepage":null,"size":1719,"stargazers_count":3,"watchers_count":3,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":108,"mirror_url":null,"open_issues_count":70,"forks":108,"open_issues":70,"watchers":3,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/urfu-2015/javascript-tasks-1/pulls/51"},"html":{"href":"https://github.com/urfu-2015/javascript-tasks-1/pull/51"},"issue":{"href":"https://api.github.com/repos/urfu-2015/javascript-tasks-1/issues/51"},"comments":{"href":"https://api.github.com/repos/urfu-2015/javascript-tasks-1/issues/51/comments"},"review_comments":{"href":"https://api.github.com/repos/urfu-2015/javascript-tasks-1/pulls/51/comments"},"review_comment":{"href":"https://api.github.com/repos/urfu-2015/javascript-tasks-1/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/urfu-2015/javascript-tasks-1/pulls/51/commits"},"statuses":{"href":"https://api.github.com/repos/urfu-2015/javascript-tasks-1/statuses/fe74e72d07ac61caeaaf2400e416b237ef1ab643"}}}}