{"action":"created","comment":{"url":"https://api.github.com/repos/qamine-test/complexity-score/pulls/comments/169418443","pull_request_review_id":97941883,"id":169418443,"diff_hunk":"@@ -1,5 +1,23 @@\n function eratosthenes(limit) {\n     var primes = [];\n+    if (limit >= 2) {\n+        var sqrtlmt = Math.sqrt(limit) - 2;\n+        var nums = new Array(); // start with an empty Array...\n+        for (var i = 2; i <= limit; i++) // and\n+            nums.push(i); // only initialize the Array once...\n+        for (var i = 0; i <= sqrtlmt; i++) {\n+            var p = nums[i]\n+            if (p)\n+                for (var j = p * p - 2; j < nums.length; j += p)\n+                    nums[j] = 0;\n+        }\n+        for (var i = 0; i < nums.length; i++) {\n+            var p = nums[i];","path":"sieve-of-eratosthenes/sieve.js","position":15,"original_position":15,"commit_id":"21a3860e8a3e13441a7f775f296184dfc6f83c21","original_commit_id":"21a3860e8a3e13441a7f775f296184dfc6f83c21","user":{"login":"codacy-bot","id":19940114,"avatar_url":"https://avatars1.githubusercontent.com/u/19940114?v=4","gravatar_id":"","url":"https://api.github.com/users/codacy-bot","html_url":"https://github.com/codacy-bot","followers_url":"https://api.github.com/users/codacy-bot/followers","following_url":"https://api.github.com/users/codacy-bot/following{/other_user}","gists_url":"https://api.github.com/users/codacy-bot/gists{/gist_id}","starred_url":"https://api.github.com/users/codacy-bot/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/codacy-bot/subscriptions","organizations_url":"https://api.github.com/users/codacy-bot/orgs","repos_url":"https://api.github.com/users/codacy-bot/repos","events_url":"https://api.github.com/users/codacy-bot/events{/privacy}","received_events_url":"https://api.github.com/users/codacy-bot/received_events","type":"User","site_admin":false},"body":"![Codacy](http://enterprise.rodrigo.codacy.org/assets/images/favicon.png) Issue found: [Variable Assigned to Object Injection Sink (security/detect-object-injection)](http://enterprise.rodrigo.codacy.org/app/rodrigo/complexity-score/pullRequest?prid=2)","created_at":"2018-02-20T18:42:09Z","updated_at":"2018-02-20T18:42:09Z","html_url":"https://github.com/qamine-test/complexity-score/pull/6#discussion_r169418443","pull_request_url":"https://api.github.com/repos/qamine-test/complexity-score/pulls/6","author_association":"NONE","_links":{"self":{"href":"https://api.github.com/repos/qamine-test/complexity-score/pulls/comments/169418443"},"html":{"href":"https://github.com/qamine-test/complexity-score/pull/6#discussion_r169418443"},"pull_request":{"href":"https://api.github.com/repos/qamine-test/complexity-score/pulls/6"}}},"pull_request":{"url":"https://api.github.com/repos/qamine-test/complexity-score/pulls/6","id":97960577,"html_url":"https://github.com/qamine-test/complexity-score/pull/6","diff_url":"https://github.com/qamine-test/complexity-score/pull/6.diff","patch_url":"https://github.com/qamine-test/complexity-score/pull/6.patch","issue_url":"https://api.github.com/repos/qamine-test/complexity-score/issues/6","number":6,"state":"open","locked":false,"title":"Ignores","user":{"login":"rtfpessoa","id":902384,"avatar_url":"https://avatars0.githubusercontent.com/u/902384?v=4","gravatar_id":"","url":"https://api.github.com/users/rtfpessoa","html_url":"https://github.com/rtfpessoa","followers_url":"https://api.github.com/users/rtfpessoa/followers","following_url":"https://api.github.com/users/rtfpessoa/following{/other_user}","gists_url":"https://api.github.com/users/rtfpessoa/gists{/gist_id}","starred_url":"https://api.github.com/users/rtfpessoa/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rtfpessoa/subscriptions","organizations_url":"https://api.github.com/users/rtfpessoa/orgs","repos_url":"https://api.github.com/users/rtfpessoa/repos","events_url":"https://api.github.com/users/rtfpessoa/events{/privacy}","received_events_url":"https://api.github.com/users/rtfpessoa/received_events","type":"User","site_admin":false},"body":"","created_at":"2016-12-14T14:20:07Z","updated_at":"2018-02-20T18:42:09Z","closed_at":null,"merged_at":null,"merge_commit_sha":"323060b4679ad6fc6a738b20e6363ec40a320a41","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/qamine-test/complexity-score/pulls/6/commits","review_comments_url":"https://api.github.com/repos/qamine-test/complexity-score/pulls/6/comments","review_comment_url":"https://api.github.com/repos/qamine-test/complexity-score/pulls/comments{/number}","comments_url":"https://api.github.com/repos/qamine-test/complexity-score/issues/6/comments","statuses_url":"https://api.github.com/repos/qamine-test/complexity-score/statuses/21a3860e8a3e13441a7f775f296184dfc6f83c21","head":{"label":"qamine-test:ignores","ref":"ignores","sha":"21a3860e8a3e13441a7f775f296184dfc6f83c21","user":{"login":"qamine-test","id":15941583,"avatar_url":"https://avatars3.githubusercontent.com/u/15941583?v=4","gravatar_id":"","url":"https://api.github.com/users/qamine-test","html_url":"https://github.com/qamine-test","followers_url":"https://api.github.com/users/qamine-test/followers","following_url":"https://api.github.com/users/qamine-test/following{/other_user}","gists_url":"https://api.github.com/users/qamine-test/gists{/gist_id}","starred_url":"https://api.github.com/users/qamine-test/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/qamine-test/subscriptions","organizations_url":"https://api.github.com/users/qamine-test/orgs","repos_url":"https://api.github.com/users/qamine-test/repos","events_url":"https://api.github.com/users/qamine-test/events{/privacy}","received_events_url":"https://api.github.com/users/qamine-test/received_events","type":"Organization","site_admin":false},"repo":{"id":55414014,"name":"complexity-score","full_name":"qamine-test/complexity-score","owner":{"login":"qamine-test","id":15941583,"avatar_url":"https://avatars3.githubusercontent.com/u/15941583?v=4","gravatar_id":"","url":"https://api.github.com/users/qamine-test","html_url":"https://github.com/qamine-test","followers_url":"https://api.github.com/users/qamine-test/followers","following_url":"https://api.github.com/users/qamine-test/following{/other_user}","gists_url":"https://api.github.com/users/qamine-test/gists{/gist_id}","starred_url":"https://api.github.com/users/qamine-test/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/qamine-test/subscriptions","organizations_url":"https://api.github.com/users/qamine-test/orgs","repos_url":"https://api.github.com/users/qamine-test/repos","events_url":"https://api.github.com/users/qamine-test/events{/privacy}","received_events_url":"https://api.github.com/users/qamine-test/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/qamine-test/complexity-score","description":null,"fork":true,"url":"https://api.github.com/repos/qamine-test/complexity-score","forks_url":"https://api.github.com/repos/qamine-test/complexity-score/forks","keys_url":"https://api.github.com/repos/qamine-test/complexity-score/keys{/key_id}","collaborators_url":"https://api.github.com/repos/qamine-test/complexity-score/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/qamine-test/complexity-score/teams","hooks_url":"https://api.github.com/repos/qamine-test/complexity-score/hooks","issue_events_url":"https://api.github.com/repos/qamine-test/complexity-score/issues/events{/number}","events_url":"https://api.github.com/repos/qamine-test/complexity-score/events","assignees_url":"https://api.github.com/repos/qamine-test/complexity-score/assignees{/user}","branches_url":"https://api.github.com/repos/qamine-test/complexity-score/branches{/branch}","tags_url":"https://api.github.com/repos/qamine-test/complexity-score/tags","blobs_url":"https://api.github.com/repos/qamine-test/complexity-score/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/qamine-test/complexity-score/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/qamine-test/complexity-score/git/refs{/sha}","trees_url":"https://api.github.com/repos/qamine-test/complexity-score/git/trees{/sha}","statuses_url":"https://api.github.com/repos/qamine-test/complexity-score/statuses/{sha}","languages_url":"https://api.github.com/repos/qamine-test/complexity-score/languages","stargazers_url":"https://api.github.com/repos/qamine-test/complexity-score/stargazers","contributors_url":"https://api.github.com/repos/qamine-test/complexity-score/contributors","subscribers_url":"https://api.github.com/repos/qamine-test/complexity-score/subscribers","subscription_url":"https://api.github.com/repos/qamine-test/complexity-score/subscription","commits_url":"https://api.github.com/repos/qamine-test/complexity-score/commits{/sha}","git_commits_url":"https://api.github.com/repos/qamine-test/complexity-score/git/commits{/sha}","comments_url":"https://api.github.com/repos/qamine-test/complexity-score/comments{/number}","issue_comment_url":"https://api.github.com/repos/qamine-test/complexity-score/issues/comments{/number}","contents_url":"https://api.github.com/repos/qamine-test/complexity-score/contents/{+path}","compare_url":"https://api.github.com/repos/qamine-test/complexity-score/compare/{base}...{head}","merges_url":"https://api.github.com/repos/qamine-test/complexity-score/merges","archive_url":"https://api.github.com/repos/qamine-test/complexity-score/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/qamine-test/complexity-score/downloads","issues_url":"https://api.github.com/repos/qamine-test/complexity-score/issues{/number}","pulls_url":"https://api.github.com/repos/qamine-test/complexity-score/pulls{/number}","milestones_url":"https://api.github.com/repos/qamine-test/complexity-score/milestones{/number}","notifications_url":"https://api.github.com/repos/qamine-test/complexity-score/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/qamine-test/complexity-score/labels{/name}","releases_url":"https://api.github.com/repos/qamine-test/complexity-score/releases{/id}","deployments_url":"https://api.github.com/repos/qamine-test/complexity-score/deployments","created_at":"2016-04-04T13:37:07Z","updated_at":"2016-04-04T13:37:08Z","pushed_at":"2017-04-07T13:21:46Z","git_url":"git://github.com/qamine-test/complexity-score.git","ssh_url":"git@github.com:qamine-test/complexity-score.git","clone_url":"https://github.com/qamine-test/complexity-score.git","svn_url":"https://github.com/qamine-test/complexity-score","homepage":null,"size":13,"stargazers_count":0,"watchers_count":0,"language":"Java","has_issues":false,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":1,"mirror_url":null,"archived":false,"open_issues_count":3,"license":null,"forks":1,"open_issues":3,"watchers":0,"default_branch":"master"}},"base":{"label":"qamine-test:master","ref":"master","sha":"cff41e16490823b36fa8662fd4415324aac18e1e","user":{"login":"qamine-test","id":15941583,"avatar_url":"https://avatars3.githubusercontent.com/u/15941583?v=4","gravatar_id":"","url":"https://api.github.com/users/qamine-test","html_url":"https://github.com/qamine-test","followers_url":"https://api.github.com/users/qamine-test/followers","following_url":"https://api.github.com/users/qamine-test/following{/other_user}","gists_url":"https://api.github.com/users/qamine-test/gists{/gist_id}","starred_url":"https://api.github.com/users/qamine-test/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/qamine-test/subscriptions","organizations_url":"https://api.github.com/users/qamine-test/orgs","repos_url":"https://api.github.com/users/qamine-test/repos","events_url":"https://api.github.com/users/qamine-test/events{/privacy}","received_events_url":"https://api.github.com/users/qamine-test/received_events","type":"Organization","site_admin":false},"repo":{"id":55414014,"name":"complexity-score","full_name":"qamine-test/complexity-score","owner":{"login":"qamine-test","id":15941583,"avatar_url":"https://avatars3.githubusercontent.com/u/15941583?v=4","gravatar_id":"","url":"https://api.github.com/users/qamine-test","html_url":"https://github.com/qamine-test","followers_url":"https://api.github.com/users/qamine-test/followers","following_url":"https://api.github.com/users/qamine-test/following{/other_user}","gists_url":"https://api.github.com/users/qamine-test/gists{/gist_id}","starred_url":"https://api.github.com/users/qamine-test/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/qamine-test/subscriptions","organizations_url":"https://api.github.com/users/qamine-test/orgs","repos_url":"https://api.github.com/users/qamine-test/repos","events_url":"https://api.github.com/users/qamine-test/events{/privacy}","received_events_url":"https://api.github.com/users/qamine-test/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/qamine-test/complexity-score","description":null,"fork":true,"url":"https://api.github.com/repos/qamine-test/complexity-score","forks_url":"https://api.github.com/repos/qamine-test/complexity-score/forks","keys_url":"https://api.github.com/repos/qamine-test/complexity-score/keys{/key_id}","collaborators_url":"https://api.github.com/repos/qamine-test/complexity-score/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/qamine-test/complexity-score/teams","hooks_url":"https://api.github.com/repos/qamine-test/complexity-score/hooks","issue_events_url":"https://api.github.com/repos/qamine-test/complexity-score/issues/events{/number}","events_url":"https://api.github.com/repos/qamine-test/complexity-score/events","assignees_url":"https://api.github.com/repos/qamine-test/complexity-score/assignees{/user}","branches_url":"https://api.github.com/repos/qamine-test/complexity-score/branches{/branch}","tags_url":"https://api.github.com/repos/qamine-test/complexity-score/tags","blobs_url":"https://api.github.com/repos/qamine-test/complexity-score/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/qamine-test/complexity-score/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/qamine-test/complexity-score/git/refs{/sha}","trees_url":"https://api.github.com/repos/qamine-test/complexity-score/git/trees{/sha}","statuses_url":"https://api.github.com/repos/qamine-test/complexity-score/statuses/{sha}","languages_url":"https://api.github.com/repos/qamine-test/complexity-score/languages","stargazers_url":"https://api.github.com/repos/qamine-test/complexity-score/stargazers","contributors_url":"https://api.github.com/repos/qamine-test/complexity-score/contributors","subscribers_url":"https://api.github.com/repos/qamine-test/complexity-score/subscribers","subscription_url":"https://api.github.com/repos/qamine-test/complexity-score/subscription","commits_url":"https://api.github.com/repos/qamine-test/complexity-score/commits{/sha}","git_commits_url":"https://api.github.com/repos/qamine-test/complexity-score/git/commits{/sha}","comments_url":"https://api.github.com/repos/qamine-test/complexity-score/comments{/number}","issue_comment_url":"https://api.github.com/repos/qamine-test/complexity-score/issues/comments{/number}","contents_url":"https://api.github.com/repos/qamine-test/complexity-score/contents/{+path}","compare_url":"https://api.github.com/repos/qamine-test/complexity-score/compare/{base}...{head}","merges_url":"https://api.github.com/repos/qamine-test/complexity-score/merges","archive_url":"https://api.github.com/repos/qamine-test/complexity-score/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/qamine-test/complexity-score/downloads","issues_url":"https://api.github.com/repos/qamine-test/complexity-score/issues{/number}","pulls_url":"https://api.github.com/repos/qamine-test/complexity-score/pulls{/number}","milestones_url":"https://api.github.com/repos/qamine-test/complexity-score/milestones{/number}","notifications_url":"https://api.github.com/repos/qamine-test/complexity-score/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/qamine-test/complexity-score/labels{/name}","releases_url":"https://api.github.com/repos/qamine-test/complexity-score/releases{/id}","deployments_url":"https://api.github.com/repos/qamine-test/complexity-score/deployments","created_at":"2016-04-04T13:37:07Z","updated_at":"2016-04-04T13:37:08Z","pushed_at":"2017-04-07T13:21:46Z","git_url":"git://github.com/qamine-test/complexity-score.git","ssh_url":"git@github.com:qamine-test/complexity-score.git","clone_url":"https://github.com/qamine-test/complexity-score.git","svn_url":"https://github.com/qamine-test/complexity-score","homepage":null,"size":13,"stargazers_count":0,"watchers_count":0,"language":"Java","has_issues":false,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":1,"mirror_url":null,"archived":false,"open_issues_count":3,"license":null,"forks":1,"open_issues":3,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/qamine-test/complexity-score/pulls/6"},"html":{"href":"https://github.com/qamine-test/complexity-score/pull/6"},"issue":{"href":"https://api.github.com/repos/qamine-test/complexity-score/issues/6"},"comments":{"href":"https://api.github.com/repos/qamine-test/complexity-score/issues/6/comments"},"review_comments":{"href":"https://api.github.com/repos/qamine-test/complexity-score/pulls/6/comments"},"review_comment":{"href":"https://api.github.com/repos/qamine-test/complexity-score/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/qamine-test/complexity-score/pulls/6/commits"},"statuses":{"href":"https://api.github.com/repos/qamine-test/complexity-score/statuses/21a3860e8a3e13441a7f775f296184dfc6f83c21"}},"author_association":"NONE"}}
{"actor":{"display_login":"codacy-bot"}}