{"action":"created","comment":{"url":"https://api.github.com/repos/urfu-2016/javascript-task-3/pulls/comments/85984025","pull_request_review_id":6666252,"id":85984025,"diff_hunk":"@@ -6,6 +6,123 @@\n  */\n exports.isStar = true;\n \n+\n+function RobberySchedule(schedule, duration, workingHours) {\n+    var self = this;\n+    self.weekdays = ['ПН', 'ВТ', 'СР'];\n+    self.tableMoments = [];\n+    self.thieves = [];\n+    self.allSuitableMoments = [];\n+\n+    function parseTime(timeStr) {\n+        var splitTime = timeStr.split(/[ :+]+/);\n+\n+        return {\n+            day: self.weekdays.indexOf(splitTime[0]) + 1,\n+            hour: Number(splitTime[1]),\n+            minutes: Number(splitTime[2]),\n+            timezone: Number(splitTime[3])\n+        };\n+    }\n+\n+    function getNode(time, who, available, shiftTimezone) {\n+        shiftTimezone = shiftTimezone || 0;\n+\n+        return {\n+            time: new Date(2015, 5, time.day, time.hour + shiftTimezone, time.minutes, 0, 0),\n+            event: {\n+                who: who,","path":"robbery.js","position":29,"original_position":29,"commit_id":"d246bca3da8e5bfb09c2739df9c1fe29f94121e3","original_commit_id":"d246bca3da8e5bfb09c2739df9c1fe29f94121e3","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-11-01T17:49:03Z","updated_at":"2016-11-01T17:49:03Z","html_url":"https://github.com/urfu-2016/javascript-task-3/pull/65#discussion_r85984025","pull_request_url":"https://api.github.com/repos/urfu-2016/javascript-task-3/pulls/65","_links":{"self":{"href":"https://api.github.com/repos/urfu-2016/javascript-task-3/pulls/comments/85984025"},"html":{"href":"https://github.com/urfu-2016/javascript-task-3/pull/65#discussion_r85984025"},"pull_request":{"href":"https://api.github.com/repos/urfu-2016/javascript-task-3/pulls/65"}}},"pull_request":{"url":"https://api.github.com/repos/urfu-2016/javascript-task-3/pulls/65","id":91123365,"html_url":"https://github.com/urfu-2016/javascript-task-3/pull/65","diff_url":"https://github.com/urfu-2016/javascript-task-3/pull/65.diff","patch_url":"https://github.com/urfu-2016/javascript-task-3/pull/65.patch","issue_url":"https://api.github.com/repos/urfu-2016/javascript-task-3/issues/65","number":65,"state":"open","locked":false,"title":"Савенков Илья","user":{"login":"slaeme","id":22623111,"avatar_url":"https://avatars.githubusercontent.com/u/22623111?v=3","gravatar_id":"","url":"https://api.github.com/users/slaeme","html_url":"https://github.com/slaeme","followers_url":"https://api.github.com/users/slaeme/followers","following_url":"https://api.github.com/users/slaeme/following{/other_user}","gists_url":"https://api.github.com/users/slaeme/gists{/gist_id}","starred_url":"https://api.github.com/users/slaeme/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/slaeme/subscriptions","organizations_url":"https://api.github.com/users/slaeme/orgs","repos_url":"https://api.github.com/users/slaeme/repos","events_url":"https://api.github.com/users/slaeme/events{/privacy}","received_events_url":"https://api.github.com/users/slaeme/received_events","type":"User","site_admin":false},"body":"","created_at":"2016-10-27T02:33:33Z","updated_at":"2016-11-01T17:49:03Z","closed_at":null,"merged_at":null,"merge_commit_sha":"ef89d61c1ca4e385d85b7507c0678add55849326","assignee":{"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},"assignees":[{"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}],"milestone":null,"commits_url":"https://api.github.com/repos/urfu-2016/javascript-task-3/pulls/65/commits","review_comments_url":"https://api.github.com/repos/urfu-2016/javascript-task-3/pulls/65/comments","review_comment_url":"https://api.github.com/repos/urfu-2016/javascript-task-3/pulls/comments{/number}","comments_url":"https://api.github.com/repos/urfu-2016/javascript-task-3/issues/65/comments","statuses_url":"https://api.github.com/repos/urfu-2016/javascript-task-3/statuses/d246bca3da8e5bfb09c2739df9c1fe29f94121e3","head":{"label":"slaeme:master","ref":"master","sha":"d246bca3da8e5bfb09c2739df9c1fe29f94121e3","user":{"login":"slaeme","id":22623111,"avatar_url":"https://avatars.githubusercontent.com/u/22623111?v=3","gravatar_id":"","url":"https://api.github.com/users/slaeme","html_url":"https://github.com/slaeme","followers_url":"https://api.github.com/users/slaeme/followers","following_url":"https://api.github.com/users/slaeme/following{/other_user}","gists_url":"https://api.github.com/users/slaeme/gists{/gist_id}","starred_url":"https://api.github.com/users/slaeme/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/slaeme/subscriptions","organizations_url":"https://api.github.com/users/slaeme/orgs","repos_url":"https://api.github.com/users/slaeme/repos","events_url":"https://api.github.com/users/slaeme/events{/privacy}","received_events_url":"https://api.github.com/users/slaeme/received_events","type":"User","site_admin":false},"repo":{"id":72001610,"name":"javascript-task-3","full_name":"slaeme/javascript-task-3","owner":{"login":"slaeme","id":22623111,"avatar_url":"https://avatars.githubusercontent.com/u/22623111?v=3","gravatar_id":"","url":"https://api.github.com/users/slaeme","html_url":"https://github.com/slaeme","followers_url":"https://api.github.com/users/slaeme/followers","following_url":"https://api.github.com/users/slaeme/following{/other_user}","gists_url":"https://api.github.com/users/slaeme/gists{/gist_id}","starred_url":"https://api.github.com/users/slaeme/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/slaeme/subscriptions","organizations_url":"https://api.github.com/users/slaeme/orgs","repos_url":"https://api.github.com/users/slaeme/repos","events_url":"https://api.github.com/users/slaeme/events{/privacy}","received_events_url":"https://api.github.com/users/slaeme/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/slaeme/javascript-task-3","description":"Задача «0b11 друзей Оушена»","fork":true,"url":"https://api.github.com/repos/slaeme/javascript-task-3","forks_url":"https://api.github.com/repos/slaeme/javascript-task-3/forks","keys_url":"https://api.github.com/repos/slaeme/javascript-task-3/keys{/key_id}","collaborators_url":"https://api.github.com/repos/slaeme/javascript-task-3/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/slaeme/javascript-task-3/teams","hooks_url":"https://api.github.com/repos/slaeme/javascript-task-3/hooks","issue_events_url":"https://api.github.com/repos/slaeme/javascript-task-3/issues/events{/number}","events_url":"https://api.github.com/repos/slaeme/javascript-task-3/events","assignees_url":"https://api.github.com/repos/slaeme/javascript-task-3/assignees{/user}","branches_url":"https://api.github.com/repos/slaeme/javascript-task-3/branches{/branch}","tags_url":"https://api.github.com/repos/slaeme/javascript-task-3/tags","blobs_url":"https://api.github.com/repos/slaeme/javascript-task-3/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/slaeme/javascript-task-3/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/slaeme/javascript-task-3/git/refs{/sha}","trees_url":"https://api.github.com/repos/slaeme/javascript-task-3/git/trees{/sha}","statuses_url":"https://api.github.com/repos/slaeme/javascript-task-3/statuses/{sha}","languages_url":"https://api.github.com/repos/slaeme/javascript-task-3/languages","stargazers_url":"https://api.github.com/repos/slaeme/javascript-task-3/stargazers","contributors_url":"https://api.github.com/repos/slaeme/javascript-task-3/contributors","subscribers_url":"https://api.github.com/repos/slaeme/javascript-task-3/subscribers","subscription_url":"https://api.github.com/repos/slaeme/javascript-task-3/subscription","commits_url":"https://api.github.com/repos/slaeme/javascript-task-3/commits{/sha}","git_commits_url":"https://api.github.com/repos/slaeme/javascript-task-3/git/commits{/sha}","comments_url":"https://api.github.com/repos/slaeme/javascript-task-3/comments{/number}","issue_comment_url":"https://api.github.com/repos/slaeme/javascript-task-3/issues/comments{/number}","contents_url":"https://api.github.com/repos/slaeme/javascript-task-3/contents/{+path}","compare_url":"https://api.github.com/repos/slaeme/javascript-task-3/compare/{base}...{head}","merges_url":"https://api.github.com/repos/slaeme/javascript-task-3/merges","archive_url":"https://api.github.com/repos/slaeme/javascript-task-3/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/slaeme/javascript-task-3/downloads","issues_url":"https://api.github.com/repos/slaeme/javascript-task-3/issues{/number}","pulls_url":"https://api.github.com/repos/slaeme/javascript-task-3/pulls{/number}","milestones_url":"https://api.github.com/repos/slaeme/javascript-task-3/milestones{/number}","notifications_url":"https://api.github.com/repos/slaeme/javascript-task-3/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/slaeme/javascript-task-3/labels{/name}","releases_url":"https://api.github.com/repos/slaeme/javascript-task-3/releases{/id}","deployments_url":"https://api.github.com/repos/slaeme/javascript-task-3/deployments","created_at":"2016-10-26T12:37:59Z","updated_at":"2016-10-26T12:38:00Z","pushed_at":"2016-10-30T23:50:47Z","git_url":"git://github.com/slaeme/javascript-task-3.git","ssh_url":"git@github.com:slaeme/javascript-task-3.git","clone_url":"https://github.com/slaeme/javascript-task-3.git","svn_url":"https://github.com/slaeme/javascript-task-3","homepage":"","size":16,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","has_issues":false,"has_downloads":true,"has_wiki":false,"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-2016:master","ref":"master","sha":"bbdd8da0f05059541027bd2efc6038893eaaf2ae","user":{"login":"urfu-2016","id":22170529,"avatar_url":"https://avatars.githubusercontent.com/u/22170529?v=3","gravatar_id":"","url":"https://api.github.com/users/urfu-2016","html_url":"https://github.com/urfu-2016","followers_url":"https://api.github.com/users/urfu-2016/followers","following_url":"https://api.github.com/users/urfu-2016/following{/other_user}","gists_url":"https://api.github.com/users/urfu-2016/gists{/gist_id}","starred_url":"https://api.github.com/users/urfu-2016/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/urfu-2016/subscriptions","organizations_url":"https://api.github.com/users/urfu-2016/orgs","repos_url":"https://api.github.com/users/urfu-2016/repos","events_url":"https://api.github.com/users/urfu-2016/events{/privacy}","received_events_url":"https://api.github.com/users/urfu-2016/received_events","type":"Organization","site_admin":false},"repo":{"id":71448848,"name":"javascript-task-3","full_name":"urfu-2016/javascript-task-3","owner":{"login":"urfu-2016","id":22170529,"avatar_url":"https://avatars.githubusercontent.com/u/22170529?v=3","gravatar_id":"","url":"https://api.github.com/users/urfu-2016","html_url":"https://github.com/urfu-2016","followers_url":"https://api.github.com/users/urfu-2016/followers","following_url":"https://api.github.com/users/urfu-2016/following{/other_user}","gists_url":"https://api.github.com/users/urfu-2016/gists{/gist_id}","starred_url":"https://api.github.com/users/urfu-2016/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/urfu-2016/subscriptions","organizations_url":"https://api.github.com/users/urfu-2016/orgs","repos_url":"https://api.github.com/users/urfu-2016/repos","events_url":"https://api.github.com/users/urfu-2016/events{/privacy}","received_events_url":"https://api.github.com/users/urfu-2016/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/urfu-2016/javascript-task-3","description":"Задача «0b11 друзей Оушена»","fork":false,"url":"https://api.github.com/repos/urfu-2016/javascript-task-3","forks_url":"https://api.github.com/repos/urfu-2016/javascript-task-3/forks","keys_url":"https://api.github.com/repos/urfu-2016/javascript-task-3/keys{/key_id}","collaborators_url":"https://api.github.com/repos/urfu-2016/javascript-task-3/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/urfu-2016/javascript-task-3/teams","hooks_url":"https://api.github.com/repos/urfu-2016/javascript-task-3/hooks","issue_events_url":"https://api.github.com/repos/urfu-2016/javascript-task-3/issues/events{/number}","events_url":"https://api.github.com/repos/urfu-2016/javascript-task-3/events","assignees_url":"https://api.github.com/repos/urfu-2016/javascript-task-3/assignees{/user}","branches_url":"https://api.github.com/repos/urfu-2016/javascript-task-3/branches{/branch}","tags_url":"https://api.github.com/repos/urfu-2016/javascript-task-3/tags","blobs_url":"https://api.github.com/repos/urfu-2016/javascript-task-3/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/urfu-2016/javascript-task-3/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/urfu-2016/javascript-task-3/git/refs{/sha}","trees_url":"https://api.github.com/repos/urfu-2016/javascript-task-3/git/trees{/sha}","statuses_url":"https://api.github.com/repos/urfu-2016/javascript-task-3/statuses/{sha}","languages_url":"https://api.github.com/repos/urfu-2016/javascript-task-3/languages","stargazers_url":"https://api.github.com/repos/urfu-2016/javascript-task-3/stargazers","contributors_url":"https://api.github.com/repos/urfu-2016/javascript-task-3/contributors","subscribers_url":"https://api.github.com/repos/urfu-2016/javascript-task-3/subscribers","subscription_url":"https://api.github.com/repos/urfu-2016/javascript-task-3/subscription","commits_url":"https://api.github.com/repos/urfu-2016/javascript-task-3/commits{/sha}","git_commits_url":"https://api.github.com/repos/urfu-2016/javascript-task-3/git/commits{/sha}","comments_url":"https://api.github.com/repos/urfu-2016/javascript-task-3/comments{/number}","issue_comment_url":"https://api.github.com/repos/urfu-2016/javascript-task-3/issues/comments{/number}","contents_url":"https://api.github.com/repos/urfu-2016/javascript-task-3/contents/{+path}","compare_url":"https://api.github.com/repos/urfu-2016/javascript-task-3/compare/{base}...{head}","merges_url":"https://api.github.com/repos/urfu-2016/javascript-task-3/merges","archive_url":"https://api.github.com/repos/urfu-2016/javascript-task-3/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/urfu-2016/javascript-task-3/downloads","issues_url":"https://api.github.com/repos/urfu-2016/javascript-task-3/issues{/number}","pulls_url":"https://api.github.com/repos/urfu-2016/javascript-task-3/pulls{/number}","milestones_url":"https://api.github.com/repos/urfu-2016/javascript-task-3/milestones{/number}","notifications_url":"https://api.github.com/repos/urfu-2016/javascript-task-3/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/urfu-2016/javascript-task-3/labels{/name}","releases_url":"https://api.github.com/repos/urfu-2016/javascript-task-3/releases{/id}","deployments_url":"https://api.github.com/repos/urfu-2016/javascript-task-3/deployments","created_at":"2016-10-20T09:49:39Z","updated_at":"2016-10-23T04:31:46Z","pushed_at":"2016-11-01T17:44:44Z","git_url":"git://github.com/urfu-2016/javascript-task-3.git","ssh_url":"git@github.com:urfu-2016/javascript-task-3.git","clone_url":"https://github.com/urfu-2016/javascript-task-3.git","svn_url":"https://github.com/urfu-2016/javascript-task-3","homepage":"","size":111,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":95,"mirror_url":null,"open_issues_count":43,"forks":95,"open_issues":43,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/urfu-2016/javascript-task-3/pulls/65"},"html":{"href":"https://github.com/urfu-2016/javascript-task-3/pull/65"},"issue":{"href":"https://api.github.com/repos/urfu-2016/javascript-task-3/issues/65"},"comments":{"href":"https://api.github.com/repos/urfu-2016/javascript-task-3/issues/65/comments"},"review_comments":{"href":"https://api.github.com/repos/urfu-2016/javascript-task-3/pulls/65/comments"},"review_comment":{"href":"https://api.github.com/repos/urfu-2016/javascript-task-3/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/urfu-2016/javascript-task-3/pulls/65/commits"},"statuses":{"href":"https://api.github.com/repos/urfu-2016/javascript-task-3/statuses/d246bca3da8e5bfb09c2739df9c1fe29f94121e3"}}}}
{"actor":{"display_login":"VasiliiKuznecov"}}