{"action":"created","comment":{"url":"https://api.github.com/repos/ErmiyaEskandary/Slither.io-bot/pulls/comments/62651760","id":62651760,"diff_hunk":"@@ -511,18 +566,29 @@ var bot = (function() {\n                 if (bot.tickCounter > 15) {\n                     bot.tickCounter = 0;\n \n-                    window.sortedFood = bot.getSortedFood();\n-                    window.currentFood = window.sortedFood[0];\n+                    var accelerationClusterSize;\n+                    if (bot.foodClusteringMode == 1) {\n+                        bot.computeFoodGoal();\n+                        accelerationClusterSize = 120;\n+                    } else {\n+                        var food_clusters = bot.getFood().map(bot.foodClusters);","path":"bot.user.js","position":112,"original_position":112,"commit_id":"be2592731ab86e41d2294bdea08167c171a10fdd","original_commit_id":"be2592731ab86e41d2294bdea08167c171a10fdd","user":{"login":"houndci-bot","id":6697940,"avatar_url":"https://avatars.githubusercontent.com/u/6697940?v=3","gravatar_id":"","url":"https://api.github.com/users/houndci-bot","html_url":"https://github.com/houndci-bot","followers_url":"https://api.github.com/users/houndci-bot/followers","following_url":"https://api.github.com/users/houndci-bot/following{/other_user}","gists_url":"https://api.github.com/users/houndci-bot/gists{/gist_id}","starred_url":"https://api.github.com/users/houndci-bot/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/houndci-bot/subscriptions","organizations_url":"https://api.github.com/users/houndci-bot/orgs","repos_url":"https://api.github.com/users/houndci-bot/repos","events_url":"https://api.github.com/users/houndci-bot/events{/privacy}","received_events_url":"https://api.github.com/users/houndci-bot/received_events","type":"User","site_admin":false},"body":"Identifier 'food_clusters' is not in camel case.<br>Too many errors. (58% scanned).","created_at":"2016-05-10T11:02:53Z","updated_at":"2016-05-10T11:02:53Z","html_url":"https://github.com/ErmiyaEskandary/Slither.io-bot/pull/124#discussion_r62651760","pull_request_url":"https://api.github.com/repos/ErmiyaEskandary/Slither.io-bot/pulls/124","_links":{"self":{"href":"https://api.github.com/repos/ErmiyaEskandary/Slither.io-bot/pulls/comments/62651760"},"html":{"href":"https://github.com/ErmiyaEskandary/Slither.io-bot/pull/124#discussion_r62651760"},"pull_request":{"href":"https://api.github.com/repos/ErmiyaEskandary/Slither.io-bot/pulls/124"}}},"pull_request":{"url":"https://api.github.com/repos/ErmiyaEskandary/Slither.io-bot/pulls/124","id":69485500,"html_url":"https://github.com/ErmiyaEskandary/Slither.io-bot/pull/124","diff_url":"https://github.com/ErmiyaEskandary/Slither.io-bot/pull/124.diff","patch_url":"https://github.com/ErmiyaEskandary/Slither.io-bot/pull/124.patch","issue_url":"https://api.github.com/repos/ErmiyaEskandary/Slither.io-bot/issues/124","number":124,"state":"open","locked":false,"title":"Switching between clustering algorithms","user":{"login":"ksofiyuk","id":5459767,"avatar_url":"https://avatars.githubusercontent.com/u/5459767?v=3","gravatar_id":"","url":"https://api.github.com/users/ksofiyuk","html_url":"https://github.com/ksofiyuk","followers_url":"https://api.github.com/users/ksofiyuk/followers","following_url":"https://api.github.com/users/ksofiyuk/following{/other_user}","gists_url":"https://api.github.com/users/ksofiyuk/gists{/gist_id}","starred_url":"https://api.github.com/users/ksofiyuk/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ksofiyuk/subscriptions","organizations_url":"https://api.github.com/users/ksofiyuk/orgs","repos_url":"https://api.github.com/users/ksofiyuk/repos","events_url":"https://api.github.com/users/ksofiyuk/events{/privacy}","received_events_url":"https://api.github.com/users/ksofiyuk/received_events","type":"User","site_admin":false},"body":"<!--- Provide a general summary of your changes in the Title above -->\r\n\r\n\r\n## Description\r\n<!--- Describe your changes in detail -->\r\nI implement possibility to switch between two clustering approaches (chancity and ksofiyuk) by press key 'F'.\r\n \r\n## Motivation and Context\r\nIn order to compare different approaches. Experiments have shown that clustering algorithm does not cause the lags (nor mine, nor chancity) in most cases. \r\n\r\n## Screenshots (if appropriate):\r\n\r\n## Types of changes\r\n<!--- What types of changes does your code introduce? Put an `x` in all the boxes that apply: -->\r\n- [ ] Bug fix (non-breaking change which fixes an issue)\r\n- [x] New feature (non-breaking change which adds functionality)\r\n- [ ] Breaking change (fix or feature that would cause existing functionality to change)\r\n\r\n## Checklist:\r\n<!--- Go over all the following points, and put an `x` in all the boxes that apply. -->\r\n<!--- If you're unsure about any of these, don't hesitate to ask. We're here to help! -->\r\n- [x] My code follows the code style of this project.\r\n- [x] My change requires a change to the documentation.\r\n- [ ] I have updated the documentation accordingly.\r\n\r\n","created_at":"2016-05-10T10:51:22Z","updated_at":"2016-05-10T11:02:53Z","closed_at":null,"merged_at":null,"merge_commit_sha":"2c5b70e48ba1bc727f9efaed185a09657307c838","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/ErmiyaEskandary/Slither.io-bot/pulls/124/commits","review_comments_url":"https://api.github.com/repos/ErmiyaEskandary/Slither.io-bot/pulls/124/comments","review_comment_url":"https://api.github.com/repos/ErmiyaEskandary/Slither.io-bot/pulls/comments{/number}","comments_url":"https://api.github.com/repos/ErmiyaEskandary/Slither.io-bot/issues/124/comments","statuses_url":"https://api.github.com/repos/ErmiyaEskandary/Slither.io-bot/statuses/be2592731ab86e41d2294bdea08167c171a10fdd","head":{"label":"ksofiyuk:master","ref":"master","sha":"be2592731ab86e41d2294bdea08167c171a10fdd","user":{"login":"ksofiyuk","id":5459767,"avatar_url":"https://avatars.githubusercontent.com/u/5459767?v=3","gravatar_id":"","url":"https://api.github.com/users/ksofiyuk","html_url":"https://github.com/ksofiyuk","followers_url":"https://api.github.com/users/ksofiyuk/followers","following_url":"https://api.github.com/users/ksofiyuk/following{/other_user}","gists_url":"https://api.github.com/users/ksofiyuk/gists{/gist_id}","starred_url":"https://api.github.com/users/ksofiyuk/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ksofiyuk/subscriptions","organizations_url":"https://api.github.com/users/ksofiyuk/orgs","repos_url":"https://api.github.com/users/ksofiyuk/repos","events_url":"https://api.github.com/users/ksofiyuk/events{/privacy}","received_events_url":"https://api.github.com/users/ksofiyuk/received_events","type":"User","site_admin":false},"repo":{"id":58239397,"name":"Slither.io-bot","full_name":"ksofiyuk/Slither.io-bot","owner":{"login":"ksofiyuk","id":5459767,"avatar_url":"https://avatars.githubusercontent.com/u/5459767?v=3","gravatar_id":"","url":"https://api.github.com/users/ksofiyuk","html_url":"https://github.com/ksofiyuk","followers_url":"https://api.github.com/users/ksofiyuk/followers","following_url":"https://api.github.com/users/ksofiyuk/following{/other_user}","gists_url":"https://api.github.com/users/ksofiyuk/gists{/gist_id}","starred_url":"https://api.github.com/users/ksofiyuk/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ksofiyuk/subscriptions","organizations_url":"https://api.github.com/users/ksofiyuk/orgs","repos_url":"https://api.github.com/users/ksofiyuk/repos","events_url":"https://api.github.com/users/ksofiyuk/events{/privacy}","received_events_url":"https://api.github.com/users/ksofiyuk/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/ksofiyuk/Slither.io-bot","description":"Goal : create a bot that can play slither.io","fork":true,"url":"https://api.github.com/repos/ksofiyuk/Slither.io-bot","forks_url":"https://api.github.com/repos/ksofiyuk/Slither.io-bot/forks","keys_url":"https://api.github.com/repos/ksofiyuk/Slither.io-bot/keys{/key_id}","collaborators_url":"https://api.github.com/repos/ksofiyuk/Slither.io-bot/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/ksofiyuk/Slither.io-bot/teams","hooks_url":"https://api.github.com/repos/ksofiyuk/Slither.io-bot/hooks","issue_events_url":"https://api.github.com/repos/ksofiyuk/Slither.io-bot/issues/events{/number}","events_url":"https://api.github.com/repos/ksofiyuk/Slither.io-bot/events","assignees_url":"https://api.github.com/repos/ksofiyuk/Slither.io-bot/assignees{/user}","branches_url":"https://api.github.com/repos/ksofiyuk/Slither.io-bot/branches{/branch}","tags_url":"https://api.github.com/repos/ksofiyuk/Slither.io-bot/tags","blobs_url":"https://api.github.com/repos/ksofiyuk/Slither.io-bot/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/ksofiyuk/Slither.io-bot/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/ksofiyuk/Slither.io-bot/git/refs{/sha}","trees_url":"https://api.github.com/repos/ksofiyuk/Slither.io-bot/git/trees{/sha}","statuses_url":"https://api.github.com/repos/ksofiyuk/Slither.io-bot/statuses/{sha}","languages_url":"https://api.github.com/repos/ksofiyuk/Slither.io-bot/languages","stargazers_url":"https://api.github.com/repos/ksofiyuk/Slither.io-bot/stargazers","contributors_url":"https://api.github.com/repos/ksofiyuk/Slither.io-bot/contributors","subscribers_url":"https://api.github.com/repos/ksofiyuk/Slither.io-bot/subscribers","subscription_url":"https://api.github.com/repos/ksofiyuk/Slither.io-bot/subscription","commits_url":"https://api.github.com/repos/ksofiyuk/Slither.io-bot/commits{/sha}","git_commits_url":"https://api.github.com/repos/ksofiyuk/Slither.io-bot/git/commits{/sha}","comments_url":"https://api.github.com/repos/ksofiyuk/Slither.io-bot/comments{/number}","issue_comment_url":"https://api.github.com/repos/ksofiyuk/Slither.io-bot/issues/comments{/number}","contents_url":"https://api.github.com/repos/ksofiyuk/Slither.io-bot/contents/{+path}","compare_url":"https://api.github.com/repos/ksofiyuk/Slither.io-bot/compare/{base}...{head}","merges_url":"https://api.github.com/repos/ksofiyuk/Slither.io-bot/merges","archive_url":"https://api.github.com/repos/ksofiyuk/Slither.io-bot/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/ksofiyuk/Slither.io-bot/downloads","issues_url":"https://api.github.com/repos/ksofiyuk/Slither.io-bot/issues{/number}","pulls_url":"https://api.github.com/repos/ksofiyuk/Slither.io-bot/pulls{/number}","milestones_url":"https://api.github.com/repos/ksofiyuk/Slither.io-bot/milestones{/number}","notifications_url":"https://api.github.com/repos/ksofiyuk/Slither.io-bot/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/ksofiyuk/Slither.io-bot/labels{/name}","releases_url":"https://api.github.com/repos/ksofiyuk/Slither.io-bot/releases{/id}","deployments_url":"https://api.github.com/repos/ksofiyuk/Slither.io-bot/deployments","created_at":"2016-05-06T23:06:02Z","updated_at":"2016-05-06T23:06:03Z","pushed_at":"2016-05-10T11:02:39Z","git_url":"git://github.com/ksofiyuk/Slither.io-bot.git","ssh_url":"git@github.com:ksofiyuk/Slither.io-bot.git","clone_url":"https://github.com/ksofiyuk/Slither.io-bot.git","svn_url":"https://github.com/ksofiyuk/Slither.io-bot","homepage":"","size":368,"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":"ErmiyaEskandary:master","ref":"master","sha":"d293ca6aa65d71edfb50ff257ac9437def8422d1","user":{"login":"ErmiyaEskandary","id":18369104,"avatar_url":"https://avatars.githubusercontent.com/u/18369104?v=3","gravatar_id":"","url":"https://api.github.com/users/ErmiyaEskandary","html_url":"https://github.com/ErmiyaEskandary","followers_url":"https://api.github.com/users/ErmiyaEskandary/followers","following_url":"https://api.github.com/users/ErmiyaEskandary/following{/other_user}","gists_url":"https://api.github.com/users/ErmiyaEskandary/gists{/gist_id}","starred_url":"https://api.github.com/users/ErmiyaEskandary/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ErmiyaEskandary/subscriptions","organizations_url":"https://api.github.com/users/ErmiyaEskandary/orgs","repos_url":"https://api.github.com/users/ErmiyaEskandary/repos","events_url":"https://api.github.com/users/ErmiyaEskandary/events{/privacy}","received_events_url":"https://api.github.com/users/ErmiyaEskandary/received_events","type":"User","site_admin":false},"repo":{"id":56799884,"name":"Slither.io-bot","full_name":"ErmiyaEskandary/Slither.io-bot","owner":{"login":"ErmiyaEskandary","id":18369104,"avatar_url":"https://avatars.githubusercontent.com/u/18369104?v=3","gravatar_id":"","url":"https://api.github.com/users/ErmiyaEskandary","html_url":"https://github.com/ErmiyaEskandary","followers_url":"https://api.github.com/users/ErmiyaEskandary/followers","following_url":"https://api.github.com/users/ErmiyaEskandary/following{/other_user}","gists_url":"https://api.github.com/users/ErmiyaEskandary/gists{/gist_id}","starred_url":"https://api.github.com/users/ErmiyaEskandary/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ErmiyaEskandary/subscriptions","organizations_url":"https://api.github.com/users/ErmiyaEskandary/orgs","repos_url":"https://api.github.com/users/ErmiyaEskandary/repos","events_url":"https://api.github.com/users/ErmiyaEskandary/events{/privacy}","received_events_url":"https://api.github.com/users/ErmiyaEskandary/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/ErmiyaEskandary/Slither.io-bot","description":"Goal : create a bot that can play slither.io","fork":false,"url":"https://api.github.com/repos/ErmiyaEskandary/Slither.io-bot","forks_url":"https://api.github.com/repos/ErmiyaEskandary/Slither.io-bot/forks","keys_url":"https://api.github.com/repos/ErmiyaEskandary/Slither.io-bot/keys{/key_id}","collaborators_url":"https://api.github.com/repos/ErmiyaEskandary/Slither.io-bot/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/ErmiyaEskandary/Slither.io-bot/teams","hooks_url":"https://api.github.com/repos/ErmiyaEskandary/Slither.io-bot/hooks","issue_events_url":"https://api.github.com/repos/ErmiyaEskandary/Slither.io-bot/issues/events{/number}","events_url":"https://api.github.com/repos/ErmiyaEskandary/Slither.io-bot/events","assignees_url":"https://api.github.com/repos/ErmiyaEskandary/Slither.io-bot/assignees{/user}","branches_url":"https://api.github.com/repos/ErmiyaEskandary/Slither.io-bot/branches{/branch}","tags_url":"https://api.github.com/repos/ErmiyaEskandary/Slither.io-bot/tags","blobs_url":"https://api.github.com/repos/ErmiyaEskandary/Slither.io-bot/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/ErmiyaEskandary/Slither.io-bot/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/ErmiyaEskandary/Slither.io-bot/git/refs{/sha}","trees_url":"https://api.github.com/repos/ErmiyaEskandary/Slither.io-bot/git/trees{/sha}","statuses_url":"https://api.github.com/repos/ErmiyaEskandary/Slither.io-bot/statuses/{sha}","languages_url":"https://api.github.com/repos/ErmiyaEskandary/Slither.io-bot/languages","stargazers_url":"https://api.github.com/repos/ErmiyaEskandary/Slither.io-bot/stargazers","contributors_url":"https://api.github.com/repos/ErmiyaEskandary/Slither.io-bot/contributors","subscribers_url":"https://api.github.com/repos/ErmiyaEskandary/Slither.io-bot/subscribers","subscription_url":"https://api.github.com/repos/ErmiyaEskandary/Slither.io-bot/subscription","commits_url":"https://api.github.com/repos/ErmiyaEskandary/Slither.io-bot/commits{/sha}","git_commits_url":"https://api.github.com/repos/ErmiyaEskandary/Slither.io-bot/git/commits{/sha}","comments_url":"https://api.github.com/repos/ErmiyaEskandary/Slither.io-bot/comments{/number}","issue_comment_url":"https://api.github.com/repos/ErmiyaEskandary/Slither.io-bot/issues/comments{/number}","contents_url":"https://api.github.com/repos/ErmiyaEskandary/Slither.io-bot/contents/{+path}","compare_url":"https://api.github.com/repos/ErmiyaEskandary/Slither.io-bot/compare/{base}...{head}","merges_url":"https://api.github.com/repos/ErmiyaEskandary/Slither.io-bot/merges","archive_url":"https://api.github.com/repos/ErmiyaEskandary/Slither.io-bot/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/ErmiyaEskandary/Slither.io-bot/downloads","issues_url":"https://api.github.com/repos/ErmiyaEskandary/Slither.io-bot/issues{/number}","pulls_url":"https://api.github.com/repos/ErmiyaEskandary/Slither.io-bot/pulls{/number}","milestones_url":"https://api.github.com/repos/ErmiyaEskandary/Slither.io-bot/milestones{/number}","notifications_url":"https://api.github.com/repos/ErmiyaEskandary/Slither.io-bot/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/ErmiyaEskandary/Slither.io-bot/labels{/name}","releases_url":"https://api.github.com/repos/ErmiyaEskandary/Slither.io-bot/releases{/id}","deployments_url":"https://api.github.com/repos/ErmiyaEskandary/Slither.io-bot/deployments","created_at":"2016-04-21T19:21:23Z","updated_at":"2016-05-09T15:08:34Z","pushed_at":"2016-05-10T11:02:39Z","git_url":"git://github.com/ErmiyaEskandary/Slither.io-bot.git","ssh_url":"git@github.com:ErmiyaEskandary/Slither.io-bot.git","clone_url":"https://github.com/ErmiyaEskandary/Slither.io-bot.git","svn_url":"https://github.com/ErmiyaEskandary/Slither.io-bot","homepage":"","size":458,"stargazers_count":22,"watchers_count":22,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":18,"mirror_url":null,"open_issues_count":26,"forks":18,"open_issues":26,"watchers":22,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/ErmiyaEskandary/Slither.io-bot/pulls/124"},"html":{"href":"https://github.com/ErmiyaEskandary/Slither.io-bot/pull/124"},"issue":{"href":"https://api.github.com/repos/ErmiyaEskandary/Slither.io-bot/issues/124"},"comments":{"href":"https://api.github.com/repos/ErmiyaEskandary/Slither.io-bot/issues/124/comments"},"review_comments":{"href":"https://api.github.com/repos/ErmiyaEskandary/Slither.io-bot/pulls/124/comments"},"review_comment":{"href":"https://api.github.com/repos/ErmiyaEskandary/Slither.io-bot/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/ErmiyaEskandary/Slither.io-bot/pulls/124/commits"},"statuses":{"href":"https://api.github.com/repos/ErmiyaEskandary/Slither.io-bot/statuses/be2592731ab86e41d2294bdea08167c171a10fdd"}}}}