{"action":"created","comment":{"url":"https://api.github.com/repos/iiitv/algos/pulls/comments/111692389","pull_request_review_id":32951739,"id":111692389,"diff_hunk":"@@ -52,17 +36,20 @@ def merge_sort(array, left, right):\n     :param right: right limit for merge sort\n     :return: no returns, sorts array\n     \"\"\"\n-    if(left < right):\n-        mid = int((left + right) / 2)\n+    if left < right:\n+        mid = (left + right) // 2\n         merge_sort(array, left, mid)\n         merge_sort(array, mid + 1, right)\n         merge(array, left, right)\n \n \n def main():\n-    a = [15, 19, 18, 26, 456, 87, 45]\n+    a = [15, 19, 18, 26, 456, 87, 45, -1, 558897984]\n     merge_sort(a, 0, len(a) - 1)\n     print(a)\n-\n+ ","path":"merge_sort/merge_sort.py","position":73,"original_position":73,"commit_id":"9ff27c4f11b47a9eb8dbe0e24ac6299676fa521e","original_commit_id":"9ff27c4f11b47a9eb8dbe0e24ac6299676fa521e","user":{"login":"codacy-bot","id":19940114,"avatar_url":"https://avatars2.githubusercontent.com/u/19940114?v=3","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](https://www.codacy.com/assets/images/favicon.png) Issue found: [Trailing whitespace](https://www.codacy.com/app/aviaryan/algos/pullRequest?prid=610146)","created_at":"2017-04-16T21:23:11Z","updated_at":"2017-04-16T21:23:11Z","html_url":"https://github.com/iiitv/algos/pull/142#discussion_r111692389","pull_request_url":"https://api.github.com/repos/iiitv/algos/pulls/142","_links":{"self":{"href":"https://api.github.com/repos/iiitv/algos/pulls/comments/111692389"},"html":{"href":"https://github.com/iiitv/algos/pull/142#discussion_r111692389"},"pull_request":{"href":"https://api.github.com/repos/iiitv/algos/pulls/142"}}},"pull_request":{"url":"https://api.github.com/repos/iiitv/algos/pulls/142","id":116068767,"html_url":"https://github.com/iiitv/algos/pull/142","diff_url":"https://github.com/iiitv/algos/pull/142.diff","patch_url":"https://github.com/iiitv/algos/pull/142.patch","issue_url":"https://api.github.com/repos/iiitv/algos/issues/142","number":142,"state":"open","locked":false,"title":"Added Merge Sort [Python] Closes #139","user":{"login":"aashutoshrathi","id":21199234,"avatar_url":"https://avatars1.githubusercontent.com/u/21199234?v=3","gravatar_id":"","url":"https://api.github.com/users/aashutoshrathi","html_url":"https://github.com/aashutoshrathi","followers_url":"https://api.github.com/users/aashutoshrathi/followers","following_url":"https://api.github.com/users/aashutoshrathi/following{/other_user}","gists_url":"https://api.github.com/users/aashutoshrathi/gists{/gist_id}","starred_url":"https://api.github.com/users/aashutoshrathi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/aashutoshrathi/subscriptions","organizations_url":"https://api.github.com/users/aashutoshrathi/orgs","repos_url":"https://api.github.com/users/aashutoshrathi/repos","events_url":"https://api.github.com/users/aashutoshrathi/events{/privacy}","received_events_url":"https://api.github.com/users/aashutoshrathi/received_events","type":"User","site_admin":false},"body":"Fixes #137 \r\nCloses #139 \r\n<!--\r\nHi!\r\nThanks for considering contributing to this ever-growing list of algorithm and data structure implementations.\r\nYour contribution is valuable.\r\nIn order to help us evaluate PRs better, we ask you to have a look at the following declaration and check the points you agree with. ( [x] )\r\nPRs which don't agree to all the points mentioned below will be rejected. \r\n-->\r\n\r\n\r\n#### By submitting this pull request I confirm I've read and complied with the below declarations.\r\n\r\n- [x] I have read the [Contribution guidelines](https://github.com/iiitv/algos/blob/master/CONTRIBUTING.md) and I am confident that my PR reflects them.\r\n- [x] I have followed the [coding guidelines](https://github.com/iiitv/algos/blob/master/CONTRIBUTING.md#cs) for this project.\r\n- [x] My code follows the [skeleton code structure](https://github.com/iiitv/algos/blob/master/CONTRIBUTING.md#sample).\r\n- [x] This pull request has a descriptive title. For example, `Added {Algorithm/DS name} [{Language}]`, not `Update README.md` or `Added new code`.\r\n- [x] This pull request will be closed if I fail to update it even once in a continuous timespan of 7 days.\r\n","created_at":"2017-04-16T19:41:41Z","updated_at":"2017-04-16T21:23:11Z","closed_at":null,"merged_at":null,"merge_commit_sha":"4e2d9317669e1f813d124dc0364c11a2404ca059","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/iiitv/algos/pulls/142/commits","review_comments_url":"https://api.github.com/repos/iiitv/algos/pulls/142/comments","review_comment_url":"https://api.github.com/repos/iiitv/algos/pulls/comments{/number}","comments_url":"https://api.github.com/repos/iiitv/algos/issues/142/comments","statuses_url":"https://api.github.com/repos/iiitv/algos/statuses/9ff27c4f11b47a9eb8dbe0e24ac6299676fa521e","head":{"label":"aashutoshrathi:merge_sort","ref":"merge_sort","sha":"9ff27c4f11b47a9eb8dbe0e24ac6299676fa521e","user":{"login":"aashutoshrathi","id":21199234,"avatar_url":"https://avatars1.githubusercontent.com/u/21199234?v=3","gravatar_id":"","url":"https://api.github.com/users/aashutoshrathi","html_url":"https://github.com/aashutoshrathi","followers_url":"https://api.github.com/users/aashutoshrathi/followers","following_url":"https://api.github.com/users/aashutoshrathi/following{/other_user}","gists_url":"https://api.github.com/users/aashutoshrathi/gists{/gist_id}","starred_url":"https://api.github.com/users/aashutoshrathi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/aashutoshrathi/subscriptions","organizations_url":"https://api.github.com/users/aashutoshrathi/orgs","repos_url":"https://api.github.com/users/aashutoshrathi/repos","events_url":"https://api.github.com/users/aashutoshrathi/events{/privacy}","received_events_url":"https://api.github.com/users/aashutoshrathi/received_events","type":"User","site_admin":false},"repo":{"id":88381631,"name":"algos","full_name":"aashutoshrathi/algos","owner":{"login":"aashutoshrathi","id":21199234,"avatar_url":"https://avatars1.githubusercontent.com/u/21199234?v=3","gravatar_id":"","url":"https://api.github.com/users/aashutoshrathi","html_url":"https://github.com/aashutoshrathi","followers_url":"https://api.github.com/users/aashutoshrathi/followers","following_url":"https://api.github.com/users/aashutoshrathi/following{/other_user}","gists_url":"https://api.github.com/users/aashutoshrathi/gists{/gist_id}","starred_url":"https://api.github.com/users/aashutoshrathi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/aashutoshrathi/subscriptions","organizations_url":"https://api.github.com/users/aashutoshrathi/orgs","repos_url":"https://api.github.com/users/aashutoshrathi/repos","events_url":"https://api.github.com/users/aashutoshrathi/events{/privacy}","received_events_url":"https://api.github.com/users/aashutoshrathi/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/aashutoshrathi/algos","description":"Popular Algorithms and Data Structures implemented in popular languages","fork":true,"url":"https://api.github.com/repos/aashutoshrathi/algos","forks_url":"https://api.github.com/repos/aashutoshrathi/algos/forks","keys_url":"https://api.github.com/repos/aashutoshrathi/algos/keys{/key_id}","collaborators_url":"https://api.github.com/repos/aashutoshrathi/algos/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/aashutoshrathi/algos/teams","hooks_url":"https://api.github.com/repos/aashutoshrathi/algos/hooks","issue_events_url":"https://api.github.com/repos/aashutoshrathi/algos/issues/events{/number}","events_url":"https://api.github.com/repos/aashutoshrathi/algos/events","assignees_url":"https://api.github.com/repos/aashutoshrathi/algos/assignees{/user}","branches_url":"https://api.github.com/repos/aashutoshrathi/algos/branches{/branch}","tags_url":"https://api.github.com/repos/aashutoshrathi/algos/tags","blobs_url":"https://api.github.com/repos/aashutoshrathi/algos/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/aashutoshrathi/algos/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/aashutoshrathi/algos/git/refs{/sha}","trees_url":"https://api.github.com/repos/aashutoshrathi/algos/git/trees{/sha}","statuses_url":"https://api.github.com/repos/aashutoshrathi/algos/statuses/{sha}","languages_url":"https://api.github.com/repos/aashutoshrathi/algos/languages","stargazers_url":"https://api.github.com/repos/aashutoshrathi/algos/stargazers","contributors_url":"https://api.github.com/repos/aashutoshrathi/algos/contributors","subscribers_url":"https://api.github.com/repos/aashutoshrathi/algos/subscribers","subscription_url":"https://api.github.com/repos/aashutoshrathi/algos/subscription","commits_url":"https://api.github.com/repos/aashutoshrathi/algos/commits{/sha}","git_commits_url":"https://api.github.com/repos/aashutoshrathi/algos/git/commits{/sha}","comments_url":"https://api.github.com/repos/aashutoshrathi/algos/comments{/number}","issue_comment_url":"https://api.github.com/repos/aashutoshrathi/algos/issues/comments{/number}","contents_url":"https://api.github.com/repos/aashutoshrathi/algos/contents/{+path}","compare_url":"https://api.github.com/repos/aashutoshrathi/algos/compare/{base}...{head}","merges_url":"https://api.github.com/repos/aashutoshrathi/algos/merges","archive_url":"https://api.github.com/repos/aashutoshrathi/algos/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/aashutoshrathi/algos/downloads","issues_url":"https://api.github.com/repos/aashutoshrathi/algos/issues{/number}","pulls_url":"https://api.github.com/repos/aashutoshrathi/algos/pulls{/number}","milestones_url":"https://api.github.com/repos/aashutoshrathi/algos/milestones{/number}","notifications_url":"https://api.github.com/repos/aashutoshrathi/algos/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/aashutoshrathi/algos/labels{/name}","releases_url":"https://api.github.com/repos/aashutoshrathi/algos/releases{/id}","deployments_url":"https://api.github.com/repos/aashutoshrathi/algos/deployments","created_at":"2017-04-16T00:22:44Z","updated_at":"2017-04-16T10:19:30Z","pushed_at":"2017-04-16T21:21:25Z","git_url":"git://github.com/aashutoshrathi/algos.git","ssh_url":"git@github.com:aashutoshrathi/algos.git","clone_url":"https://github.com/aashutoshrathi/algos.git","svn_url":"https://github.com/aashutoshrathi/algos","homepage":"","size":78,"stargazers_count":1,"watchers_count":1,"language":"Java","has_issues":false,"has_projects":true,"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":1,"default_branch":"master"}},"base":{"label":"iiitv:master","ref":"master","sha":"1bfc6360a85753ba54af84f879b3319da3763094","user":{"login":"iiitv","id":9347727,"avatar_url":"https://avatars2.githubusercontent.com/u/9347727?v=3","gravatar_id":"","url":"https://api.github.com/users/iiitv","html_url":"https://github.com/iiitv","followers_url":"https://api.github.com/users/iiitv/followers","following_url":"https://api.github.com/users/iiitv/following{/other_user}","gists_url":"https://api.github.com/users/iiitv/gists{/gist_id}","starred_url":"https://api.github.com/users/iiitv/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/iiitv/subscriptions","organizations_url":"https://api.github.com/users/iiitv/orgs","repos_url":"https://api.github.com/users/iiitv/repos","events_url":"https://api.github.com/users/iiitv/events{/privacy}","received_events_url":"https://api.github.com/users/iiitv/received_events","type":"Organization","site_admin":false},"repo":{"id":84344298,"name":"algos","full_name":"iiitv/algos","owner":{"login":"iiitv","id":9347727,"avatar_url":"https://avatars2.githubusercontent.com/u/9347727?v=3","gravatar_id":"","url":"https://api.github.com/users/iiitv","html_url":"https://github.com/iiitv","followers_url":"https://api.github.com/users/iiitv/followers","following_url":"https://api.github.com/users/iiitv/following{/other_user}","gists_url":"https://api.github.com/users/iiitv/gists{/gist_id}","starred_url":"https://api.github.com/users/iiitv/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/iiitv/subscriptions","organizations_url":"https://api.github.com/users/iiitv/orgs","repos_url":"https://api.github.com/users/iiitv/repos","events_url":"https://api.github.com/users/iiitv/events{/privacy}","received_events_url":"https://api.github.com/users/iiitv/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/iiitv/algos","description":"Popular Algorithms and Data Structures implemented in popular languages","fork":false,"url":"https://api.github.com/repos/iiitv/algos","forks_url":"https://api.github.com/repos/iiitv/algos/forks","keys_url":"https://api.github.com/repos/iiitv/algos/keys{/key_id}","collaborators_url":"https://api.github.com/repos/iiitv/algos/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/iiitv/algos/teams","hooks_url":"https://api.github.com/repos/iiitv/algos/hooks","issue_events_url":"https://api.github.com/repos/iiitv/algos/issues/events{/number}","events_url":"https://api.github.com/repos/iiitv/algos/events","assignees_url":"https://api.github.com/repos/iiitv/algos/assignees{/user}","branches_url":"https://api.github.com/repos/iiitv/algos/branches{/branch}","tags_url":"https://api.github.com/repos/iiitv/algos/tags","blobs_url":"https://api.github.com/repos/iiitv/algos/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/iiitv/algos/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/iiitv/algos/git/refs{/sha}","trees_url":"https://api.github.com/repos/iiitv/algos/git/trees{/sha}","statuses_url":"https://api.github.com/repos/iiitv/algos/statuses/{sha}","languages_url":"https://api.github.com/repos/iiitv/algos/languages","stargazers_url":"https://api.github.com/repos/iiitv/algos/stargazers","contributors_url":"https://api.github.com/repos/iiitv/algos/contributors","subscribers_url":"https://api.github.com/repos/iiitv/algos/subscribers","subscription_url":"https://api.github.com/repos/iiitv/algos/subscription","commits_url":"https://api.github.com/repos/iiitv/algos/commits{/sha}","git_commits_url":"https://api.github.com/repos/iiitv/algos/git/commits{/sha}","comments_url":"https://api.github.com/repos/iiitv/algos/comments{/number}","issue_comment_url":"https://api.github.com/repos/iiitv/algos/issues/comments{/number}","contents_url":"https://api.github.com/repos/iiitv/algos/contents/{+path}","compare_url":"https://api.github.com/repos/iiitv/algos/compare/{base}...{head}","merges_url":"https://api.github.com/repos/iiitv/algos/merges","archive_url":"https://api.github.com/repos/iiitv/algos/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/iiitv/algos/downloads","issues_url":"https://api.github.com/repos/iiitv/algos/issues{/number}","pulls_url":"https://api.github.com/repos/iiitv/algos/pulls{/number}","milestones_url":"https://api.github.com/repos/iiitv/algos/milestones{/number}","notifications_url":"https://api.github.com/repos/iiitv/algos/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/iiitv/algos/labels{/name}","releases_url":"https://api.github.com/repos/iiitv/algos/releases{/id}","deployments_url":"https://api.github.com/repos/iiitv/algos/deployments","created_at":"2017-03-08T16:49:57Z","updated_at":"2017-04-07T11:31:05Z","pushed_at":"2017-04-16T21:21:26Z","git_url":"git://github.com/iiitv/algos.git","ssh_url":"git@github.com:iiitv/algos.git","clone_url":"https://github.com/iiitv/algos.git","svn_url":"https://github.com/iiitv/algos","homepage":"","size":74,"stargazers_count":31,"watchers_count":31,"language":"Java","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":21,"mirror_url":null,"open_issues_count":16,"forks":21,"open_issues":16,"watchers":31,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/iiitv/algos/pulls/142"},"html":{"href":"https://github.com/iiitv/algos/pull/142"},"issue":{"href":"https://api.github.com/repos/iiitv/algos/issues/142"},"comments":{"href":"https://api.github.com/repos/iiitv/algos/issues/142/comments"},"review_comments":{"href":"https://api.github.com/repos/iiitv/algos/pulls/142/comments"},"review_comment":{"href":"https://api.github.com/repos/iiitv/algos/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/iiitv/algos/pulls/142/commits"},"statuses":{"href":"https://api.github.com/repos/iiitv/algos/statuses/9ff27c4f11b47a9eb8dbe0e24ac6299676fa521e"}}}}
{"actor":{"display_login":"codacy-bot"}}