{"action":"created","comment":{"url":"https://api.github.com/repos/urfu-2015/javascript-tasks-1/pulls/comments/41185654","id":41185654,"diff_hunk":"@@ -1,4 +1,123 @@\n var hours = process.argv[2];\n var minutes = process.argv[3];\n+var myDozensDict = {\n+    \tarabic: ['0', '1', '2', '3', '4', '5'],\n+    \troman: ['-', 'X', 'XX', 'XXX', 'XL', 'L']\n+\t};\n+var myUnitsDict = {\n+    \tarabic: ['0', '1', '2', '3', '4', '5', '6', '7', '8', '9'],\n+    \troman: ['-', 'I', 'II', 'III', 'IV', 'V', 'VI', 'VII', 'VIII', 'IX']\n+\t};\n+var romanToASCIIDict = {\n+\troman: ['-', 'I', 'V', 'X', 'L', ':'],\n+\tASCII: [\n+\t[[' ', ' ', ' ', ' ', ' ', ' '],\n+\t[' ', ' ', ' ', ' ', ' ', ' '],\n+\t[' ', ' ', '@', '@', '@', ' '],\n+\t[' ', ' ', '@', '@', '@', ' '],\n+\t[' ', ' ', ' ', ' ', ' ', ' '],\n+\t[' ', ' ', ' ', ' ', ' ', ' ']],\n \n-// Немного замечательного кода и магии\n+\t[[' ', '@', '@', '@', '@', '@'], \n+\t[' ', ' ', ' ', '@', ' ', ' '], \n+\t[' ', ' ', ' ', '@', ' ', ' '], \n+\t[' ', ' ', ' ', '@', ' ', ' '], \n+\t[' ', ' ', ' ', '@', ' ', ' '], \n+\t[' ', '@', '@', '@', '@', '@']],\n+\n+\t[[' ', '@', ' ', ' ', ' ', '@'],\n+\t[' ', '@', ' ', ' ', ' ', '@'],\n+\t[' ', '@', ' ', ' ', ' ', '@'],\n+\t[' ', '@', ' ', ' ', ' ', '@'],\n+\t[' ', ' ', '@', ' ', '@', ' '],\n+\t[' ', ' ', ' ', '@', ' ', ' ']],\n+\n+\t[[' ', '@', ' ', ' ', ' ', '@'],\n+\t[' ', '@', ' ', ' ', ' ', '@'],\n+\t[' ', ' ', '@', ' ', '@', ' '],\n+\t[' ', ' ', '@', '@', '@', ' '],\n+\t[' ', '@', ' ', ' ', ' ', '@'],\n+\t[' ', '@', ' ', ' ', ' ', '@']], \n+\n+\t[[' ', '@', ' ', ' ', ' ', ' '],\n+\t[' ', '@', ' ', ' ', ' ', ' '],\n+\t[' ', '@', ' ', ' ', ' ', ' '],\n+\t[' ', '@', ' ', ' ', ' ', ' '],\n+\t[' ', '@', ' ', ' ', ' ', ' '],\n+\t[' ', '@', '@', '@', '@', '@']],\n+\n+\t[[' ', ' ', ' ', ' ', ' ', ' '],\n+\t[' ', ' ', ' ', ' ', ' ', ' '],\n+\t[' ', ' ', ' ', '@', ' ', ' '],\n+\t[' ', ' ', ' ', ' ', ' ', ' '],\n+\t[' ', ' ', ' ', '@', ' ', ' '],\n+\t[' ', ' ', ' ', ' ', ' ', ' ']]\n+\t]\n+};\n+\n+function arabicToRomanNumber (dictionary, number) {\n+\tif (number in dictionary.arabic){\n+\t\tvar index = dictionary.arabic.indexOf(number);\n+\t\treturn dictionary.roman[index];\n+\t}\t\n+\telse{\n+\t\tconsole.log('Время указано не верно');\n+\t\tprocess.exit();\n+\t}\n+}\n+\n+function getRomanNumber(number) {\n+\tif (process.argv.length != 4|| 0 > number.length || number.length > 2 ){\n+\t\tconsole.log('Время указано не верно');\n+\t\tprocess.exit();","path":"roman-time.js","position":73,"original_position":73,"commit_id":"78cd24da64cd809c1f000618b9a23afdfa9a86ba","original_commit_id":"78cd24da64cd809c1f000618b9a23afdfa9a86ba","user":{"login":"dzlk","id":894822,"avatar_url":"https://avatars.githubusercontent.com/u/894822?v=3","gravatar_id":"","url":"https://api.github.com/users/dzlk","html_url":"https://github.com/dzlk","followers_url":"https://api.github.com/users/dzlk/followers","following_url":"https://api.github.com/users/dzlk/following{/other_user}","gists_url":"https://api.github.com/users/dzlk/gists{/gist_id}","starred_url":"https://api.github.com/users/dzlk/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dzlk/subscriptions","organizations_url":"https://api.github.com/users/dzlk/orgs","repos_url":"https://api.github.com/users/dzlk/repos","events_url":"https://api.github.com/users/dzlk/events{/privacy}","received_events_url":"https://api.github.com/users/dzlk/received_events","type":"User","site_admin":false},"body":"process.exit(1)","created_at":"2015-10-05T19:24:26Z","updated_at":"2015-10-05T19:24:26Z","html_url":"https://github.com/urfu-2015/javascript-tasks-1/pull/83#discussion_r41185654","pull_request_url":"https://api.github.com/repos/urfu-2015/javascript-tasks-1/pulls/83","_links":{"self":{"href":"https://api.github.com/repos/urfu-2015/javascript-tasks-1/pulls/comments/41185654"},"html":{"href":"https://github.com/urfu-2015/javascript-tasks-1/pull/83#discussion_r41185654"},"pull_request":{"href":"https://api.github.com/repos/urfu-2015/javascript-tasks-1/pulls/83"}}},"pull_request":{"url":"https://api.github.com/repos/urfu-2015/javascript-tasks-1/pulls/83","id":46818753,"html_url":"https://github.com/urfu-2015/javascript-tasks-1/pull/83","diff_url":"https://github.com/urfu-2015/javascript-tasks-1/pull/83.diff","patch_url":"https://github.com/urfu-2015/javascript-tasks-1/pull/83.patch","issue_url":"https://api.github.com/repos/urfu-2015/javascript-tasks-1/issues/83","number":83,"state":"open","locked":false,"title":"Ветошко Дарья","user":{"login":"vetoshko","id":5564166,"avatar_url":"https://avatars.githubusercontent.com/u/5564166?v=3","gravatar_id":"","url":"https://api.github.com/users/vetoshko","html_url":"https://github.com/vetoshko","followers_url":"https://api.github.com/users/vetoshko/followers","following_url":"https://api.github.com/users/vetoshko/following{/other_user}","gists_url":"https://api.github.com/users/vetoshko/gists{/gist_id}","starred_url":"https://api.github.com/users/vetoshko/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vetoshko/subscriptions","organizations_url":"https://api.github.com/users/vetoshko/orgs","repos_url":"https://api.github.com/users/vetoshko/repos","events_url":"https://api.github.com/users/vetoshko/events{/privacy}","received_events_url":"https://api.github.com/users/vetoshko/received_events","type":"User","site_admin":false},"body":null,"created_at":"2015-10-05T18:54:12Z","updated_at":"2015-10-05T19:24:26Z","closed_at":null,"merged_at":null,"merge_commit_sha":"1a07a3575e93384ef0a53f795830fae5da6d2a2f","assignee":{"login":"dzlk","id":894822,"avatar_url":"https://avatars.githubusercontent.com/u/894822?v=3","gravatar_id":"","url":"https://api.github.com/users/dzlk","html_url":"https://github.com/dzlk","followers_url":"https://api.github.com/users/dzlk/followers","following_url":"https://api.github.com/users/dzlk/following{/other_user}","gists_url":"https://api.github.com/users/dzlk/gists{/gist_id}","starred_url":"https://api.github.com/users/dzlk/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dzlk/subscriptions","organizations_url":"https://api.github.com/users/dzlk/orgs","repos_url":"https://api.github.com/users/dzlk/repos","events_url":"https://api.github.com/users/dzlk/events{/privacy}","received_events_url":"https://api.github.com/users/dzlk/received_events","type":"User","site_admin":false},"milestone":null,"commits_url":"https://api.github.com/repos/urfu-2015/javascript-tasks-1/pulls/83/commits","review_comments_url":"https://api.github.com/repos/urfu-2015/javascript-tasks-1/pulls/83/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/83/comments","statuses_url":"https://api.github.com/repos/urfu-2015/javascript-tasks-1/statuses/78cd24da64cd809c1f000618b9a23afdfa9a86ba","head":{"label":"vetoshko:master","ref":"master","sha":"78cd24da64cd809c1f000618b9a23afdfa9a86ba","user":{"login":"vetoshko","id":5564166,"avatar_url":"https://avatars.githubusercontent.com/u/5564166?v=3","gravatar_id":"","url":"https://api.github.com/users/vetoshko","html_url":"https://github.com/vetoshko","followers_url":"https://api.github.com/users/vetoshko/followers","following_url":"https://api.github.com/users/vetoshko/following{/other_user}","gists_url":"https://api.github.com/users/vetoshko/gists{/gist_id}","starred_url":"https://api.github.com/users/vetoshko/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vetoshko/subscriptions","organizations_url":"https://api.github.com/users/vetoshko/orgs","repos_url":"https://api.github.com/users/vetoshko/repos","events_url":"https://api.github.com/users/vetoshko/events{/privacy}","received_events_url":"https://api.github.com/users/vetoshko/received_events","type":"User","site_admin":false},"repo":{"id":43630528,"name":"javascript-tasks-1","full_name":"vetoshko/javascript-tasks-1","owner":{"login":"vetoshko","id":5564166,"avatar_url":"https://avatars.githubusercontent.com/u/5564166?v=3","gravatar_id":"","url":"https://api.github.com/users/vetoshko","html_url":"https://github.com/vetoshko","followers_url":"https://api.github.com/users/vetoshko/followers","following_url":"https://api.github.com/users/vetoshko/following{/other_user}","gists_url":"https://api.github.com/users/vetoshko/gists{/gist_id}","starred_url":"https://api.github.com/users/vetoshko/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vetoshko/subscriptions","organizations_url":"https://api.github.com/users/vetoshko/orgs","repos_url":"https://api.github.com/users/vetoshko/repos","events_url":"https://api.github.com/users/vetoshko/events{/privacy}","received_events_url":"https://api.github.com/users/vetoshko/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/vetoshko/javascript-tasks-1","description":"Задача к лекции «Введение в Javascript»","fork":true,"url":"https://api.github.com/repos/vetoshko/javascript-tasks-1","forks_url":"https://api.github.com/repos/vetoshko/javascript-tasks-1/forks","keys_url":"https://api.github.com/repos/vetoshko/javascript-tasks-1/keys{/key_id}","collaborators_url":"https://api.github.com/repos/vetoshko/javascript-tasks-1/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/vetoshko/javascript-tasks-1/teams","hooks_url":"https://api.github.com/repos/vetoshko/javascript-tasks-1/hooks","issue_events_url":"https://api.github.com/repos/vetoshko/javascript-tasks-1/issues/events{/number}","events_url":"https://api.github.com/repos/vetoshko/javascript-tasks-1/events","assignees_url":"https://api.github.com/repos/vetoshko/javascript-tasks-1/assignees{/user}","branches_url":"https://api.github.com/repos/vetoshko/javascript-tasks-1/branches{/branch}","tags_url":"https://api.github.com/repos/vetoshko/javascript-tasks-1/tags","blobs_url":"https://api.github.com/repos/vetoshko/javascript-tasks-1/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/vetoshko/javascript-tasks-1/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/vetoshko/javascript-tasks-1/git/refs{/sha}","trees_url":"https://api.github.com/repos/vetoshko/javascript-tasks-1/git/trees{/sha}","statuses_url":"https://api.github.com/repos/vetoshko/javascript-tasks-1/statuses/{sha}","languages_url":"https://api.github.com/repos/vetoshko/javascript-tasks-1/languages","stargazers_url":"https://api.github.com/repos/vetoshko/javascript-tasks-1/stargazers","contributors_url":"https://api.github.com/repos/vetoshko/javascript-tasks-1/contributors","subscribers_url":"https://api.github.com/repos/vetoshko/javascript-tasks-1/subscribers","subscription_url":"https://api.github.com/repos/vetoshko/javascript-tasks-1/subscription","commits_url":"https://api.github.com/repos/vetoshko/javascript-tasks-1/commits{/sha}","git_commits_url":"https://api.github.com/repos/vetoshko/javascript-tasks-1/git/commits{/sha}","comments_url":"https://api.github.com/repos/vetoshko/javascript-tasks-1/comments{/number}","issue_comment_url":"https://api.github.com/repos/vetoshko/javascript-tasks-1/issues/comments{/number}","contents_url":"https://api.github.com/repos/vetoshko/javascript-tasks-1/contents/{+path}","compare_url":"https://api.github.com/repos/vetoshko/javascript-tasks-1/compare/{base}...{head}","merges_url":"https://api.github.com/repos/vetoshko/javascript-tasks-1/merges","archive_url":"https://api.github.com/repos/vetoshko/javascript-tasks-1/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/vetoshko/javascript-tasks-1/downloads","issues_url":"https://api.github.com/repos/vetoshko/javascript-tasks-1/issues{/number}","pulls_url":"https://api.github.com/repos/vetoshko/javascript-tasks-1/pulls{/number}","milestones_url":"https://api.github.com/repos/vetoshko/javascript-tasks-1/milestones{/number}","notifications_url":"https://api.github.com/repos/vetoshko/javascript-tasks-1/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/vetoshko/javascript-tasks-1/labels{/name}","releases_url":"https://api.github.com/repos/vetoshko/javascript-tasks-1/releases{/id}","created_at":"2015-10-04T08:56:22Z","updated_at":"2015-10-04T08:56:23Z","pushed_at":"2015-10-05T18:54:11Z","git_url":"git://github.com/vetoshko/javascript-tasks-1.git","ssh_url":"git@github.com:vetoshko/javascript-tasks-1.git","clone_url":"https://github.com/vetoshko/javascript-tasks-1.git","svn_url":"https://github.com/vetoshko/javascript-tasks-1","homepage":null,"size":88,"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-05T19:24:17Z","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":1727,"stargazers_count":3,"watchers_count":3,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":104,"mirror_url":null,"open_issues_count":73,"forks":104,"open_issues":73,"watchers":3,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/urfu-2015/javascript-tasks-1/pulls/83"},"html":{"href":"https://github.com/urfu-2015/javascript-tasks-1/pull/83"},"issue":{"href":"https://api.github.com/repos/urfu-2015/javascript-tasks-1/issues/83"},"comments":{"href":"https://api.github.com/repos/urfu-2015/javascript-tasks-1/issues/83/comments"},"review_comments":{"href":"https://api.github.com/repos/urfu-2015/javascript-tasks-1/pulls/83/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/83/commits"},"statuses":{"href":"https://api.github.com/repos/urfu-2015/javascript-tasks-1/statuses/78cd24da64cd809c1f000618b9a23afdfa9a86ba"}}}}