{"action":"created","comment":{"url":"https://api.github.com/repos/Smiranin/game-sapper/pulls/comments/56553184","id":56553184,"diff_hunk":"@@ -0,0 +1,60 @@\n+\"use strict\";\n+var status;\n+var container = document.getElementById('container');\n+\n+function junior(){\n+    status = 0;\n+    changeTab();\n+    var rows = 10, cols = 10, bombs = 10;\n+    newField();\n+    initGame(rows, cols, bombs);\n+};\n+\n+function middle(){\n+    status = 1;\n+    changeTab();\n+    var rows = 16, cols = 16, bombs = 40;\n+    newField();\n+    initGame(rows, cols, bombs);\n+};\n+\n+function senior(){\n+    status = 2;\n+    changeTab();\n+    var rows = 30, cols = 16, bombs = 99;\n+    newField();\n+    initGame(rows, cols, bombs);\n+};","path":"view.js","position":27,"original_position":27,"commit_id":"c8bb803dd8fde2773c244030d6c0a3af7ce154ae","original_commit_id":"c8bb803dd8fde2773c244030d6c0a3af7ce154ae","user":{"login":"oleksandrstarov","id":16467053,"avatar_url":"https://avatars.githubusercontent.com/u/16467053?v=3","gravatar_id":"","url":"https://api.github.com/users/oleksandrstarov","html_url":"https://github.com/oleksandrstarov","followers_url":"https://api.github.com/users/oleksandrstarov/followers","following_url":"https://api.github.com/users/oleksandrstarov/following{/other_user}","gists_url":"https://api.github.com/users/oleksandrstarov/gists{/gist_id}","starred_url":"https://api.github.com/users/oleksandrstarov/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/oleksandrstarov/subscriptions","organizations_url":"https://api.github.com/users/oleksandrstarov/orgs","repos_url":"https://api.github.com/users/oleksandrstarov/repos","events_url":"https://api.github.com/users/oleksandrstarov/events{/privacy}","received_events_url":"https://api.github.com/users/oleksandrstarov/received_events","type":"User","site_admin":false},"body":"the last two rows repeat three times - usually it is better to move it out to the new function","created_at":"2016-03-17T18:19:32Z","updated_at":"2016-03-17T18:19:32Z","html_url":"https://github.com/Smiranin/game-sapper/pull/1#discussion_r56553184","pull_request_url":"https://api.github.com/repos/Smiranin/game-sapper/pulls/1","_links":{"self":{"href":"https://api.github.com/repos/Smiranin/game-sapper/pulls/comments/56553184"},"html":{"href":"https://github.com/Smiranin/game-sapper/pull/1#discussion_r56553184"},"pull_request":{"href":"https://api.github.com/repos/Smiranin/game-sapper/pulls/1"}}},"pull_request":{"url":"https://api.github.com/repos/Smiranin/game-sapper/pulls/1","id":63117274,"html_url":"https://github.com/Smiranin/game-sapper/pull/1","diff_url":"https://github.com/Smiranin/game-sapper/pull/1.diff","patch_url":"https://github.com/Smiranin/game-sapper/pull/1.patch","issue_url":"https://api.github.com/repos/Smiranin/game-sapper/issues/1","number":1,"state":"open","locked":false,"title":"pull Request commit","user":{"login":"Smiranin","id":14183958,"avatar_url":"https://avatars.githubusercontent.com/u/14183958?v=3","gravatar_id":"","url":"https://api.github.com/users/Smiranin","html_url":"https://github.com/Smiranin","followers_url":"https://api.github.com/users/Smiranin/followers","following_url":"https://api.github.com/users/Smiranin/following{/other_user}","gists_url":"https://api.github.com/users/Smiranin/gists{/gist_id}","starred_url":"https://api.github.com/users/Smiranin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Smiranin/subscriptions","organizations_url":"https://api.github.com/users/Smiranin/orgs","repos_url":"https://api.github.com/users/Smiranin/repos","events_url":"https://api.github.com/users/Smiranin/events{/privacy}","received_events_url":"https://api.github.com/users/Smiranin/received_events","type":"User","site_admin":false},"body":"","created_at":"2016-03-16T18:54:58Z","updated_at":"2016-03-17T18:19:32Z","closed_at":null,"merged_at":null,"merge_commit_sha":"5cd78da7b313f04e2ce89db80a350afd06562585","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/Smiranin/game-sapper/pulls/1/commits","review_comments_url":"https://api.github.com/repos/Smiranin/game-sapper/pulls/1/comments","review_comment_url":"https://api.github.com/repos/Smiranin/game-sapper/pulls/comments{/number}","comments_url":"https://api.github.com/repos/Smiranin/game-sapper/issues/1/comments","statuses_url":"https://api.github.com/repos/Smiranin/game-sapper/statuses/c8bb803dd8fde2773c244030d6c0a3af7ce154ae","head":{"label":"Smiranin:new_branch","ref":"new_branch","sha":"c8bb803dd8fde2773c244030d6c0a3af7ce154ae","user":{"login":"Smiranin","id":14183958,"avatar_url":"https://avatars.githubusercontent.com/u/14183958?v=3","gravatar_id":"","url":"https://api.github.com/users/Smiranin","html_url":"https://github.com/Smiranin","followers_url":"https://api.github.com/users/Smiranin/followers","following_url":"https://api.github.com/users/Smiranin/following{/other_user}","gists_url":"https://api.github.com/users/Smiranin/gists{/gist_id}","starred_url":"https://api.github.com/users/Smiranin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Smiranin/subscriptions","organizations_url":"https://api.github.com/users/Smiranin/orgs","repos_url":"https://api.github.com/users/Smiranin/repos","events_url":"https://api.github.com/users/Smiranin/events{/privacy}","received_events_url":"https://api.github.com/users/Smiranin/received_events","type":"User","site_admin":false},"repo":{"id":54058242,"name":"game-sapper","full_name":"Smiranin/game-sapper","owner":{"login":"Smiranin","id":14183958,"avatar_url":"https://avatars.githubusercontent.com/u/14183958?v=3","gravatar_id":"","url":"https://api.github.com/users/Smiranin","html_url":"https://github.com/Smiranin","followers_url":"https://api.github.com/users/Smiranin/followers","following_url":"https://api.github.com/users/Smiranin/following{/other_user}","gists_url":"https://api.github.com/users/Smiranin/gists{/gist_id}","starred_url":"https://api.github.com/users/Smiranin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Smiranin/subscriptions","organizations_url":"https://api.github.com/users/Smiranin/orgs","repos_url":"https://api.github.com/users/Smiranin/repos","events_url":"https://api.github.com/users/Smiranin/events{/privacy}","received_events_url":"https://api.github.com/users/Smiranin/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/Smiranin/game-sapper","description":"","fork":false,"url":"https://api.github.com/repos/Smiranin/game-sapper","forks_url":"https://api.github.com/repos/Smiranin/game-sapper/forks","keys_url":"https://api.github.com/repos/Smiranin/game-sapper/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Smiranin/game-sapper/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Smiranin/game-sapper/teams","hooks_url":"https://api.github.com/repos/Smiranin/game-sapper/hooks","issue_events_url":"https://api.github.com/repos/Smiranin/game-sapper/issues/events{/number}","events_url":"https://api.github.com/repos/Smiranin/game-sapper/events","assignees_url":"https://api.github.com/repos/Smiranin/game-sapper/assignees{/user}","branches_url":"https://api.github.com/repos/Smiranin/game-sapper/branches{/branch}","tags_url":"https://api.github.com/repos/Smiranin/game-sapper/tags","blobs_url":"https://api.github.com/repos/Smiranin/game-sapper/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Smiranin/game-sapper/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Smiranin/game-sapper/git/refs{/sha}","trees_url":"https://api.github.com/repos/Smiranin/game-sapper/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Smiranin/game-sapper/statuses/{sha}","languages_url":"https://api.github.com/repos/Smiranin/game-sapper/languages","stargazers_url":"https://api.github.com/repos/Smiranin/game-sapper/stargazers","contributors_url":"https://api.github.com/repos/Smiranin/game-sapper/contributors","subscribers_url":"https://api.github.com/repos/Smiranin/game-sapper/subscribers","subscription_url":"https://api.github.com/repos/Smiranin/game-sapper/subscription","commits_url":"https://api.github.com/repos/Smiranin/game-sapper/commits{/sha}","git_commits_url":"https://api.github.com/repos/Smiranin/game-sapper/git/commits{/sha}","comments_url":"https://api.github.com/repos/Smiranin/game-sapper/comments{/number}","issue_comment_url":"https://api.github.com/repos/Smiranin/game-sapper/issues/comments{/number}","contents_url":"https://api.github.com/repos/Smiranin/game-sapper/contents/{+path}","compare_url":"https://api.github.com/repos/Smiranin/game-sapper/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Smiranin/game-sapper/merges","archive_url":"https://api.github.com/repos/Smiranin/game-sapper/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Smiranin/game-sapper/downloads","issues_url":"https://api.github.com/repos/Smiranin/game-sapper/issues{/number}","pulls_url":"https://api.github.com/repos/Smiranin/game-sapper/pulls{/number}","milestones_url":"https://api.github.com/repos/Smiranin/game-sapper/milestones{/number}","notifications_url":"https://api.github.com/repos/Smiranin/game-sapper/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Smiranin/game-sapper/labels{/name}","releases_url":"https://api.github.com/repos/Smiranin/game-sapper/releases{/id}","deployments_url":"https://api.github.com/repos/Smiranin/game-sapper/deployments","created_at":"2016-03-16T18:51:32Z","updated_at":"2016-03-16T22:03:40Z","pushed_at":"2016-03-16T18:54:58Z","git_url":"git://github.com/Smiranin/game-sapper.git","ssh_url":"git@github.com:Smiranin/game-sapper.git","clone_url":"https://github.com/Smiranin/game-sapper.git","svn_url":"https://github.com/Smiranin/game-sapper","homepage":null,"size":11,"stargazers_count":0,"watchers_count":0,"language":null,"has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":1,"forks":0,"open_issues":1,"watchers":0,"default_branch":"master"}},"base":{"label":"Smiranin:master","ref":"master","sha":"97dca7e36f5062aa26e7ae13c82c17dcac992fee","user":{"login":"Smiranin","id":14183958,"avatar_url":"https://avatars.githubusercontent.com/u/14183958?v=3","gravatar_id":"","url":"https://api.github.com/users/Smiranin","html_url":"https://github.com/Smiranin","followers_url":"https://api.github.com/users/Smiranin/followers","following_url":"https://api.github.com/users/Smiranin/following{/other_user}","gists_url":"https://api.github.com/users/Smiranin/gists{/gist_id}","starred_url":"https://api.github.com/users/Smiranin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Smiranin/subscriptions","organizations_url":"https://api.github.com/users/Smiranin/orgs","repos_url":"https://api.github.com/users/Smiranin/repos","events_url":"https://api.github.com/users/Smiranin/events{/privacy}","received_events_url":"https://api.github.com/users/Smiranin/received_events","type":"User","site_admin":false},"repo":{"id":54058242,"name":"game-sapper","full_name":"Smiranin/game-sapper","owner":{"login":"Smiranin","id":14183958,"avatar_url":"https://avatars.githubusercontent.com/u/14183958?v=3","gravatar_id":"","url":"https://api.github.com/users/Smiranin","html_url":"https://github.com/Smiranin","followers_url":"https://api.github.com/users/Smiranin/followers","following_url":"https://api.github.com/users/Smiranin/following{/other_user}","gists_url":"https://api.github.com/users/Smiranin/gists{/gist_id}","starred_url":"https://api.github.com/users/Smiranin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Smiranin/subscriptions","organizations_url":"https://api.github.com/users/Smiranin/orgs","repos_url":"https://api.github.com/users/Smiranin/repos","events_url":"https://api.github.com/users/Smiranin/events{/privacy}","received_events_url":"https://api.github.com/users/Smiranin/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/Smiranin/game-sapper","description":"","fork":false,"url":"https://api.github.com/repos/Smiranin/game-sapper","forks_url":"https://api.github.com/repos/Smiranin/game-sapper/forks","keys_url":"https://api.github.com/repos/Smiranin/game-sapper/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Smiranin/game-sapper/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Smiranin/game-sapper/teams","hooks_url":"https://api.github.com/repos/Smiranin/game-sapper/hooks","issue_events_url":"https://api.github.com/repos/Smiranin/game-sapper/issues/events{/number}","events_url":"https://api.github.com/repos/Smiranin/game-sapper/events","assignees_url":"https://api.github.com/repos/Smiranin/game-sapper/assignees{/user}","branches_url":"https://api.github.com/repos/Smiranin/game-sapper/branches{/branch}","tags_url":"https://api.github.com/repos/Smiranin/game-sapper/tags","blobs_url":"https://api.github.com/repos/Smiranin/game-sapper/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Smiranin/game-sapper/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Smiranin/game-sapper/git/refs{/sha}","trees_url":"https://api.github.com/repos/Smiranin/game-sapper/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Smiranin/game-sapper/statuses/{sha}","languages_url":"https://api.github.com/repos/Smiranin/game-sapper/languages","stargazers_url":"https://api.github.com/repos/Smiranin/game-sapper/stargazers","contributors_url":"https://api.github.com/repos/Smiranin/game-sapper/contributors","subscribers_url":"https://api.github.com/repos/Smiranin/game-sapper/subscribers","subscription_url":"https://api.github.com/repos/Smiranin/game-sapper/subscription","commits_url":"https://api.github.com/repos/Smiranin/game-sapper/commits{/sha}","git_commits_url":"https://api.github.com/repos/Smiranin/game-sapper/git/commits{/sha}","comments_url":"https://api.github.com/repos/Smiranin/game-sapper/comments{/number}","issue_comment_url":"https://api.github.com/repos/Smiranin/game-sapper/issues/comments{/number}","contents_url":"https://api.github.com/repos/Smiranin/game-sapper/contents/{+path}","compare_url":"https://api.github.com/repos/Smiranin/game-sapper/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Smiranin/game-sapper/merges","archive_url":"https://api.github.com/repos/Smiranin/game-sapper/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Smiranin/game-sapper/downloads","issues_url":"https://api.github.com/repos/Smiranin/game-sapper/issues{/number}","pulls_url":"https://api.github.com/repos/Smiranin/game-sapper/pulls{/number}","milestones_url":"https://api.github.com/repos/Smiranin/game-sapper/milestones{/number}","notifications_url":"https://api.github.com/repos/Smiranin/game-sapper/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Smiranin/game-sapper/labels{/name}","releases_url":"https://api.github.com/repos/Smiranin/game-sapper/releases{/id}","deployments_url":"https://api.github.com/repos/Smiranin/game-sapper/deployments","created_at":"2016-03-16T18:51:32Z","updated_at":"2016-03-16T22:03:40Z","pushed_at":"2016-03-16T18:54:58Z","git_url":"git://github.com/Smiranin/game-sapper.git","ssh_url":"git@github.com:Smiranin/game-sapper.git","clone_url":"https://github.com/Smiranin/game-sapper.git","svn_url":"https://github.com/Smiranin/game-sapper","homepage":null,"size":11,"stargazers_count":0,"watchers_count":0,"language":null,"has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":1,"forks":0,"open_issues":1,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/Smiranin/game-sapper/pulls/1"},"html":{"href":"https://github.com/Smiranin/game-sapper/pull/1"},"issue":{"href":"https://api.github.com/repos/Smiranin/game-sapper/issues/1"},"comments":{"href":"https://api.github.com/repos/Smiranin/game-sapper/issues/1/comments"},"review_comments":{"href":"https://api.github.com/repos/Smiranin/game-sapper/pulls/1/comments"},"review_comment":{"href":"https://api.github.com/repos/Smiranin/game-sapper/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/Smiranin/game-sapper/pulls/1/commits"},"statuses":{"href":"https://api.github.com/repos/Smiranin/game-sapper/statuses/c8bb803dd8fde2773c244030d6c0a3af7ce154ae"}}}}