{"action":"created","comment":{"url":"https://api.github.com/repos/keon/algorithms/pulls/comments/190184045","pull_request_review_id":122506326,"id":190184045,"diff_hunk":"@@ -2,28 +2,29 @@ def max_heap_sort(arr):\n     \"\"\" Heap Sort that uses a max heap to sort an array in ascending order\n         Complexity: O(n log(n))\n     \"\"\"\n-    for i in range(len(arr)-1,0,-1):\n+    for i in range(len(arr) - 1, 0, -1):\n         max_heapify(arr, i)\n \n         temp = arr[0]\n         arr[0] = arr[i]\n         arr[i] = temp\n     return arr\n \n+\n def max_heapify(arr, end):\n     \"\"\" Max heapify helper for max_heap_sort\n     \"\"\"\n-    last_parent = int((end-1)/2)\n+    last_parent = int((end - 1) / 2)","path":"sort/heap_sort.py","position":18,"original_position":18,"commit_id":"1e9a57262be0f82c249d06a35add948f0ef39f70","original_commit_id":"1e9a57262be0f82c249d06a35add948f0ef39f70","user":{"login":"goswami-rahul","id":30523092,"avatar_url":"https://avatars1.githubusercontent.com/u/30523092?v=4","gravatar_id":"","url":"https://api.github.com/users/goswami-rahul","html_url":"https://github.com/goswami-rahul","followers_url":"https://api.github.com/users/goswami-rahul/followers","following_url":"https://api.github.com/users/goswami-rahul/following{/other_user}","gists_url":"https://api.github.com/users/goswami-rahul/gists{/gist_id}","starred_url":"https://api.github.com/users/goswami-rahul/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/goswami-rahul/subscriptions","organizations_url":"https://api.github.com/users/goswami-rahul/orgs","repos_url":"https://api.github.com/users/goswami-rahul/repos","events_url":"https://api.github.com/users/goswami-rahul/events{/privacy}","received_events_url":"https://api.github.com/users/goswami-rahul/received_events","type":"User","site_admin":false},"body":"`(end - 1) // 2`","created_at":"2018-05-23T09:40:21Z","updated_at":"2018-05-23T09:40:21Z","html_url":"https://github.com/keon/algorithms/pull/285#discussion_r190184045","pull_request_url":"https://api.github.com/repos/keon/algorithms/pulls/285","author_association":"COLLABORATOR","_links":{"self":{"href":"https://api.github.com/repos/keon/algorithms/pulls/comments/190184045"},"html":{"href":"https://github.com/keon/algorithms/pull/285#discussion_r190184045"},"pull_request":{"href":"https://api.github.com/repos/keon/algorithms/pulls/285"}}},"pull_request":{"url":"https://api.github.com/repos/keon/algorithms/pulls/285","id":189908954,"html_url":"https://github.com/keon/algorithms/pull/285","diff_url":"https://github.com/keon/algorithms/pull/285.diff","patch_url":"https://github.com/keon/algorithms/pull/285.patch","issue_url":"https://api.github.com/repos/keon/algorithms/issues/285","number":285,"state":"open","locked":false,"title":"Fix sort","user":{"login":"techkang","id":22956582,"avatar_url":"https://avatars2.githubusercontent.com/u/22956582?v=4","gravatar_id":"","url":"https://api.github.com/users/techkang","html_url":"https://github.com/techkang","followers_url":"https://api.github.com/users/techkang/followers","following_url":"https://api.github.com/users/techkang/following{/other_user}","gists_url":"https://api.github.com/users/techkang/gists{/gist_id}","starred_url":"https://api.github.com/users/techkang/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/techkang/subscriptions","organizations_url":"https://api.github.com/users/techkang/orgs","repos_url":"https://api.github.com/users/techkang/repos","events_url":"https://api.github.com/users/techkang/events{/privacy}","received_events_url":"https://api.github.com/users/techkang/received_events","type":"User","site_admin":false},"body":"I added doc sting to wiggle_sort.py, modified counting_sort.py and merge_sort.py so that the type of returned array is also numpy.ndarray when the type of input array is numpy.ndarray (the other sort method already achieved this). I alos wrap function in quick_sort.py, so we can use quick sort just like other sort method. And I also modified all the files according to pep8 specification.","created_at":"2018-05-23T09:23:39Z","updated_at":"2018-05-23T09:40:21Z","closed_at":null,"merged_at":null,"merge_commit_sha":"0cae262f77e57278658ae66c41c6485e2a9eae11","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/keon/algorithms/pulls/285/commits","review_comments_url":"https://api.github.com/repos/keon/algorithms/pulls/285/comments","review_comment_url":"https://api.github.com/repos/keon/algorithms/pulls/comments{/number}","comments_url":"https://api.github.com/repos/keon/algorithms/issues/285/comments","statuses_url":"https://api.github.com/repos/keon/algorithms/statuses/1e9a57262be0f82c249d06a35add948f0ef39f70","head":{"label":"techkang:fix_sort","ref":"fix_sort","sha":"1e9a57262be0f82c249d06a35add948f0ef39f70","user":{"login":"techkang","id":22956582,"avatar_url":"https://avatars2.githubusercontent.com/u/22956582?v=4","gravatar_id":"","url":"https://api.github.com/users/techkang","html_url":"https://github.com/techkang","followers_url":"https://api.github.com/users/techkang/followers","following_url":"https://api.github.com/users/techkang/following{/other_user}","gists_url":"https://api.github.com/users/techkang/gists{/gist_id}","starred_url":"https://api.github.com/users/techkang/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/techkang/subscriptions","organizations_url":"https://api.github.com/users/techkang/orgs","repos_url":"https://api.github.com/users/techkang/repos","events_url":"https://api.github.com/users/techkang/events{/privacy}","received_events_url":"https://api.github.com/users/techkang/received_events","type":"User","site_admin":false},"repo":{"id":134531524,"name":"algorithms","full_name":"techkang/algorithms","owner":{"login":"techkang","id":22956582,"avatar_url":"https://avatars2.githubusercontent.com/u/22956582?v=4","gravatar_id":"","url":"https://api.github.com/users/techkang","html_url":"https://github.com/techkang","followers_url":"https://api.github.com/users/techkang/followers","following_url":"https://api.github.com/users/techkang/following{/other_user}","gists_url":"https://api.github.com/users/techkang/gists{/gist_id}","starred_url":"https://api.github.com/users/techkang/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/techkang/subscriptions","organizations_url":"https://api.github.com/users/techkang/orgs","repos_url":"https://api.github.com/users/techkang/repos","events_url":"https://api.github.com/users/techkang/events{/privacy}","received_events_url":"https://api.github.com/users/techkang/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/techkang/algorithms","description":"Minimal examples of data structures and algorithms in Python","fork":true,"url":"https://api.github.com/repos/techkang/algorithms","forks_url":"https://api.github.com/repos/techkang/algorithms/forks","keys_url":"https://api.github.com/repos/techkang/algorithms/keys{/key_id}","collaborators_url":"https://api.github.com/repos/techkang/algorithms/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/techkang/algorithms/teams","hooks_url":"https://api.github.com/repos/techkang/algorithms/hooks","issue_events_url":"https://api.github.com/repos/techkang/algorithms/issues/events{/number}","events_url":"https://api.github.com/repos/techkang/algorithms/events","assignees_url":"https://api.github.com/repos/techkang/algorithms/assignees{/user}","branches_url":"https://api.github.com/repos/techkang/algorithms/branches{/branch}","tags_url":"https://api.github.com/repos/techkang/algorithms/tags","blobs_url":"https://api.github.com/repos/techkang/algorithms/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/techkang/algorithms/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/techkang/algorithms/git/refs{/sha}","trees_url":"https://api.github.com/repos/techkang/algorithms/git/trees{/sha}","statuses_url":"https://api.github.com/repos/techkang/algorithms/statuses/{sha}","languages_url":"https://api.github.com/repos/techkang/algorithms/languages","stargazers_url":"https://api.github.com/repos/techkang/algorithms/stargazers","contributors_url":"https://api.github.com/repos/techkang/algorithms/contributors","subscribers_url":"https://api.github.com/repos/techkang/algorithms/subscribers","subscription_url":"https://api.github.com/repos/techkang/algorithms/subscription","commits_url":"https://api.github.com/repos/techkang/algorithms/commits{/sha}","git_commits_url":"https://api.github.com/repos/techkang/algorithms/git/commits{/sha}","comments_url":"https://api.github.com/repos/techkang/algorithms/comments{/number}","issue_comment_url":"https://api.github.com/repos/techkang/algorithms/issues/comments{/number}","contents_url":"https://api.github.com/repos/techkang/algorithms/contents/{+path}","compare_url":"https://api.github.com/repos/techkang/algorithms/compare/{base}...{head}","merges_url":"https://api.github.com/repos/techkang/algorithms/merges","archive_url":"https://api.github.com/repos/techkang/algorithms/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/techkang/algorithms/downloads","issues_url":"https://api.github.com/repos/techkang/algorithms/issues{/number}","pulls_url":"https://api.github.com/repos/techkang/algorithms/pulls{/number}","milestones_url":"https://api.github.com/repos/techkang/algorithms/milestones{/number}","notifications_url":"https://api.github.com/repos/techkang/algorithms/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/techkang/algorithms/labels{/name}","releases_url":"https://api.github.com/repos/techkang/algorithms/releases{/id}","deployments_url":"https://api.github.com/repos/techkang/algorithms/deployments","created_at":"2018-05-23T07:34:14Z","updated_at":"2018-05-23T07:34:16Z","pushed_at":"2018-05-23T09:13:42Z","git_url":"git://github.com/techkang/algorithms.git","ssh_url":"git@github.com:techkang/algorithms.git","clone_url":"https://github.com/techkang/algorithms.git","svn_url":"https://github.com/techkang/algorithms","homepage":"","size":623,"stargazers_count":0,"watchers_count":0,"language":"Python","has_issues":false,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":0,"license":{"key":"mit","name":"MIT License","spdx_id":"MIT","url":"https://api.github.com/licenses/mit"},"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"keon:master","ref":"master","sha":"05e38dcf714b5a50844bf45d4d25e4505ca2a6f4","user":{"login":"keon","id":10793962,"avatar_url":"https://avatars0.githubusercontent.com/u/10793962?v=4","gravatar_id":"","url":"https://api.github.com/users/keon","html_url":"https://github.com/keon","followers_url":"https://api.github.com/users/keon/followers","following_url":"https://api.github.com/users/keon/following{/other_user}","gists_url":"https://api.github.com/users/keon/gists{/gist_id}","starred_url":"https://api.github.com/users/keon/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/keon/subscriptions","organizations_url":"https://api.github.com/users/keon/orgs","repos_url":"https://api.github.com/users/keon/repos","events_url":"https://api.github.com/users/keon/events{/privacy}","received_events_url":"https://api.github.com/users/keon/received_events","type":"User","site_admin":false},"repo":{"id":74073233,"name":"algorithms","full_name":"keon/algorithms","owner":{"login":"keon","id":10793962,"avatar_url":"https://avatars0.githubusercontent.com/u/10793962?v=4","gravatar_id":"","url":"https://api.github.com/users/keon","html_url":"https://github.com/keon","followers_url":"https://api.github.com/users/keon/followers","following_url":"https://api.github.com/users/keon/following{/other_user}","gists_url":"https://api.github.com/users/keon/gists{/gist_id}","starred_url":"https://api.github.com/users/keon/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/keon/subscriptions","organizations_url":"https://api.github.com/users/keon/orgs","repos_url":"https://api.github.com/users/keon/repos","events_url":"https://api.github.com/users/keon/events{/privacy}","received_events_url":"https://api.github.com/users/keon/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/keon/algorithms","description":"Minimal examples of data structures and algorithms in Python","fork":false,"url":"https://api.github.com/repos/keon/algorithms","forks_url":"https://api.github.com/repos/keon/algorithms/forks","keys_url":"https://api.github.com/repos/keon/algorithms/keys{/key_id}","collaborators_url":"https://api.github.com/repos/keon/algorithms/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/keon/algorithms/teams","hooks_url":"https://api.github.com/repos/keon/algorithms/hooks","issue_events_url":"https://api.github.com/repos/keon/algorithms/issues/events{/number}","events_url":"https://api.github.com/repos/keon/algorithms/events","assignees_url":"https://api.github.com/repos/keon/algorithms/assignees{/user}","branches_url":"https://api.github.com/repos/keon/algorithms/branches{/branch}","tags_url":"https://api.github.com/repos/keon/algorithms/tags","blobs_url":"https://api.github.com/repos/keon/algorithms/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/keon/algorithms/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/keon/algorithms/git/refs{/sha}","trees_url":"https://api.github.com/repos/keon/algorithms/git/trees{/sha}","statuses_url":"https://api.github.com/repos/keon/algorithms/statuses/{sha}","languages_url":"https://api.github.com/repos/keon/algorithms/languages","stargazers_url":"https://api.github.com/repos/keon/algorithms/stargazers","contributors_url":"https://api.github.com/repos/keon/algorithms/contributors","subscribers_url":"https://api.github.com/repos/keon/algorithms/subscribers","subscription_url":"https://api.github.com/repos/keon/algorithms/subscription","commits_url":"https://api.github.com/repos/keon/algorithms/commits{/sha}","git_commits_url":"https://api.github.com/repos/keon/algorithms/git/commits{/sha}","comments_url":"https://api.github.com/repos/keon/algorithms/comments{/number}","issue_comment_url":"https://api.github.com/repos/keon/algorithms/issues/comments{/number}","contents_url":"https://api.github.com/repos/keon/algorithms/contents/{+path}","compare_url":"https://api.github.com/repos/keon/algorithms/compare/{base}...{head}","merges_url":"https://api.github.com/repos/keon/algorithms/merges","archive_url":"https://api.github.com/repos/keon/algorithms/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/keon/algorithms/downloads","issues_url":"https://api.github.com/repos/keon/algorithms/issues{/number}","pulls_url":"https://api.github.com/repos/keon/algorithms/pulls{/number}","milestones_url":"https://api.github.com/repos/keon/algorithms/milestones{/number}","notifications_url":"https://api.github.com/repos/keon/algorithms/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/keon/algorithms/labels{/name}","releases_url":"https://api.github.com/repos/keon/algorithms/releases{/id}","deployments_url":"https://api.github.com/repos/keon/algorithms/deployments","created_at":"2016-11-17T22:32:08Z","updated_at":"2018-05-23T09:28:24Z","pushed_at":"2018-05-23T09:23:40Z","git_url":"git://github.com/keon/algorithms.git","ssh_url":"git@github.com:keon/algorithms.git","clone_url":"https://github.com/keon/algorithms.git","svn_url":"https://github.com/keon/algorithms","homepage":"","size":623,"stargazers_count":11618,"watchers_count":11618,"language":"Python","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":1859,"mirror_url":null,"archived":false,"open_issues_count":20,"license":{"key":"mit","name":"MIT License","spdx_id":"MIT","url":"https://api.github.com/licenses/mit"},"forks":1859,"open_issues":20,"watchers":11618,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/keon/algorithms/pulls/285"},"html":{"href":"https://github.com/keon/algorithms/pull/285"},"issue":{"href":"https://api.github.com/repos/keon/algorithms/issues/285"},"comments":{"href":"https://api.github.com/repos/keon/algorithms/issues/285/comments"},"review_comments":{"href":"https://api.github.com/repos/keon/algorithms/pulls/285/comments"},"review_comment":{"href":"https://api.github.com/repos/keon/algorithms/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/keon/algorithms/pulls/285/commits"},"statuses":{"href":"https://api.github.com/repos/keon/algorithms/statuses/1e9a57262be0f82c249d06a35add948f0ef39f70"}},"author_association":"NONE"}}
{"actor":{"display_login":"goswami-rahul"}}