{"action":"closed","number":31,"pull_request":{"url":"https://api.github.com/repos/buruzaemon/frequent-algorithm/pulls/31","id":31684960,"html_url":"https://github.com/buruzaemon/frequent-algorithm/pull/31","diff_url":"https://github.com/buruzaemon/frequent-algorithm/pull/31.diff","patch_url":"https://github.com/buruzaemon/frequent-algorithm/pull/31.patch","issue_url":"https://api.github.com/repos/buruzaemon/frequent-algorithm/issues/31","number":31,"state":"closed","locked":false,"title":"Enhancements for Issue #24","user":{"login":"sytong","id":4518025,"avatar_url":"https://avatars.githubusercontent.com/u/4518025?v=3","gravatar_id":"","url":"https://api.github.com/users/sytong","html_url":"https://github.com/sytong","followers_url":"https://api.github.com/users/sytong/followers","following_url":"https://api.github.com/users/sytong/following{/other_user}","gists_url":"https://api.github.com/users/sytong/gists{/gist_id}","starred_url":"https://api.github.com/users/sytong/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sytong/subscriptions","organizations_url":"https://api.github.com/users/sytong/orgs","repos_url":"https://api.github.com/users/sytong/repos","events_url":"https://api.github.com/users/sytong/events{/privacy}","received_events_url":"https://api.github.com/users/sytong/received_events","type":"User","site_admin":false},"body":"Use `kth_largest` method and got rid of the `[[][]]` data structure.\r\n\r\nI had to make some changes in `kth_largest` to handle the case when the list size is smaller than k (when there are fewer unique items among the b numbers of data in a window).","created_at":"2015-03-22T08:40:42Z","updated_at":"2015-03-22T09:29:46Z","closed_at":"2015-03-22T09:29:46Z","merged_at":"2015-03-22T09:29:46Z","merge_commit_sha":"df7f79aa7eca8c3ed1a222726754ef2244139121","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/buruzaemon/frequent-algorithm/pulls/31/commits","review_comments_url":"https://api.github.com/repos/buruzaemon/frequent-algorithm/pulls/31/comments","review_comment_url":"https://api.github.com/repos/buruzaemon/frequent-algorithm/pulls/comments{/number}","comments_url":"https://api.github.com/repos/buruzaemon/frequent-algorithm/issues/31/comments","statuses_url":"https://api.github.com/repos/buruzaemon/frequent-algorithm/statuses/027939486ecc56061953781458ffd8e40a03f99f","head":{"label":"sytong:dev-branch","ref":"dev-branch","sha":"027939486ecc56061953781458ffd8e40a03f99f","user":{"login":"sytong","id":4518025,"avatar_url":"https://avatars.githubusercontent.com/u/4518025?v=3","gravatar_id":"","url":"https://api.github.com/users/sytong","html_url":"https://github.com/sytong","followers_url":"https://api.github.com/users/sytong/followers","following_url":"https://api.github.com/users/sytong/following{/other_user}","gists_url":"https://api.github.com/users/sytong/gists{/gist_id}","starred_url":"https://api.github.com/users/sytong/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sytong/subscriptions","organizations_url":"https://api.github.com/users/sytong/orgs","repos_url":"https://api.github.com/users/sytong/repos","events_url":"https://api.github.com/users/sytong/events{/privacy}","received_events_url":"https://api.github.com/users/sytong/received_events","type":"User","site_admin":false},"repo":{"id":32134464,"name":"frequent-algorithm","full_name":"sytong/frequent-algorithm","owner":{"login":"sytong","id":4518025,"avatar_url":"https://avatars.githubusercontent.com/u/4518025?v=3","gravatar_id":"","url":"https://api.github.com/users/sytong","html_url":"https://github.com/sytong","followers_url":"https://api.github.com/users/sytong/followers","following_url":"https://api.github.com/users/sytong/following{/other_user}","gists_url":"https://api.github.com/users/sytong/gists{/gist_id}","starred_url":"https://api.github.com/users/sytong/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sytong/subscriptions","organizations_url":"https://api.github.com/users/sytong/orgs","repos_url":"https://api.github.com/users/sytong/repos","events_url":"https://api.github.com/users/sytong/events{/privacy}","received_events_url":"https://api.github.com/users/sytong/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/sytong/frequent-algorithm","description":"","fork":true,"url":"https://api.github.com/repos/sytong/frequent-algorithm","forks_url":"https://api.github.com/repos/sytong/frequent-algorithm/forks","keys_url":"https://api.github.com/repos/sytong/frequent-algorithm/keys{/key_id}","collaborators_url":"https://api.github.com/repos/sytong/frequent-algorithm/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/sytong/frequent-algorithm/teams","hooks_url":"https://api.github.com/repos/sytong/frequent-algorithm/hooks","issue_events_url":"https://api.github.com/repos/sytong/frequent-algorithm/issues/events{/number}","events_url":"https://api.github.com/repos/sytong/frequent-algorithm/events","assignees_url":"https://api.github.com/repos/sytong/frequent-algorithm/assignees{/user}","branches_url":"https://api.github.com/repos/sytong/frequent-algorithm/branches{/branch}","tags_url":"https://api.github.com/repos/sytong/frequent-algorithm/tags","blobs_url":"https://api.github.com/repos/sytong/frequent-algorithm/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/sytong/frequent-algorithm/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/sytong/frequent-algorithm/git/refs{/sha}","trees_url":"https://api.github.com/repos/sytong/frequent-algorithm/git/trees{/sha}","statuses_url":"https://api.github.com/repos/sytong/frequent-algorithm/statuses/{sha}","languages_url":"https://api.github.com/repos/sytong/frequent-algorithm/languages","stargazers_url":"https://api.github.com/repos/sytong/frequent-algorithm/stargazers","contributors_url":"https://api.github.com/repos/sytong/frequent-algorithm/contributors","subscribers_url":"https://api.github.com/repos/sytong/frequent-algorithm/subscribers","subscription_url":"https://api.github.com/repos/sytong/frequent-algorithm/subscription","commits_url":"https://api.github.com/repos/sytong/frequent-algorithm/commits{/sha}","git_commits_url":"https://api.github.com/repos/sytong/frequent-algorithm/git/commits{/sha}","comments_url":"https://api.github.com/repos/sytong/frequent-algorithm/comments{/number}","issue_comment_url":"https://api.github.com/repos/sytong/frequent-algorithm/issues/comments{/number}","contents_url":"https://api.github.com/repos/sytong/frequent-algorithm/contents/{+path}","compare_url":"https://api.github.com/repos/sytong/frequent-algorithm/compare/{base}...{head}","merges_url":"https://api.github.com/repos/sytong/frequent-algorithm/merges","archive_url":"https://api.github.com/repos/sytong/frequent-algorithm/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/sytong/frequent-algorithm/downloads","issues_url":"https://api.github.com/repos/sytong/frequent-algorithm/issues{/number}","pulls_url":"https://api.github.com/repos/sytong/frequent-algorithm/pulls{/number}","milestones_url":"https://api.github.com/repos/sytong/frequent-algorithm/milestones{/number}","notifications_url":"https://api.github.com/repos/sytong/frequent-algorithm/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/sytong/frequent-algorithm/labels{/name}","releases_url":"https://api.github.com/repos/sytong/frequent-algorithm/releases{/id}","created_at":"2015-03-13T06:23:56Z","updated_at":"2015-03-22T06:03:10Z","pushed_at":"2015-03-22T08:31:53Z","git_url":"git://github.com/sytong/frequent-algorithm.git","ssh_url":"git@github.com:sytong/frequent-algorithm.git","clone_url":"https://github.com/sytong/frequent-algorithm.git","svn_url":"https://github.com/sytong/frequent-algorithm","homepage":null,"size":208,"stargazers_count":0,"watchers_count":0,"language":"Ruby","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":"buruzaemon:dev-branch","ref":"dev-branch","sha":"c090f719dd14d65b22c963a0c7b9cd3815598818","user":{"login":"buruzaemon","id":498577,"avatar_url":"https://avatars.githubusercontent.com/u/498577?v=3","gravatar_id":"","url":"https://api.github.com/users/buruzaemon","html_url":"https://github.com/buruzaemon","followers_url":"https://api.github.com/users/buruzaemon/followers","following_url":"https://api.github.com/users/buruzaemon/following{/other_user}","gists_url":"https://api.github.com/users/buruzaemon/gists{/gist_id}","starred_url":"https://api.github.com/users/buruzaemon/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/buruzaemon/subscriptions","organizations_url":"https://api.github.com/users/buruzaemon/orgs","repos_url":"https://api.github.com/users/buruzaemon/repos","events_url":"https://api.github.com/users/buruzaemon/events{/privacy}","received_events_url":"https://api.github.com/users/buruzaemon/received_events","type":"User","site_admin":false},"repo":{"id":32015356,"name":"frequent-algorithm","full_name":"buruzaemon/frequent-algorithm","owner":{"login":"buruzaemon","id":498577,"avatar_url":"https://avatars.githubusercontent.com/u/498577?v=3","gravatar_id":"","url":"https://api.github.com/users/buruzaemon","html_url":"https://github.com/buruzaemon","followers_url":"https://api.github.com/users/buruzaemon/followers","following_url":"https://api.github.com/users/buruzaemon/following{/other_user}","gists_url":"https://api.github.com/users/buruzaemon/gists{/gist_id}","starred_url":"https://api.github.com/users/buruzaemon/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/buruzaemon/subscriptions","organizations_url":"https://api.github.com/users/buruzaemon/orgs","repos_url":"https://api.github.com/users/buruzaemon/repos","events_url":"https://api.github.com/users/buruzaemon/events{/privacy}","received_events_url":"https://api.github.com/users/buruzaemon/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/buruzaemon/frequent-algorithm","description":"","fork":false,"url":"https://api.github.com/repos/buruzaemon/frequent-algorithm","forks_url":"https://api.github.com/repos/buruzaemon/frequent-algorithm/forks","keys_url":"https://api.github.com/repos/buruzaemon/frequent-algorithm/keys{/key_id}","collaborators_url":"https://api.github.com/repos/buruzaemon/frequent-algorithm/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/buruzaemon/frequent-algorithm/teams","hooks_url":"https://api.github.com/repos/buruzaemon/frequent-algorithm/hooks","issue_events_url":"https://api.github.com/repos/buruzaemon/frequent-algorithm/issues/events{/number}","events_url":"https://api.github.com/repos/buruzaemon/frequent-algorithm/events","assignees_url":"https://api.github.com/repos/buruzaemon/frequent-algorithm/assignees{/user}","branches_url":"https://api.github.com/repos/buruzaemon/frequent-algorithm/branches{/branch}","tags_url":"https://api.github.com/repos/buruzaemon/frequent-algorithm/tags","blobs_url":"https://api.github.com/repos/buruzaemon/frequent-algorithm/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/buruzaemon/frequent-algorithm/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/buruzaemon/frequent-algorithm/git/refs{/sha}","trees_url":"https://api.github.com/repos/buruzaemon/frequent-algorithm/git/trees{/sha}","statuses_url":"https://api.github.com/repos/buruzaemon/frequent-algorithm/statuses/{sha}","languages_url":"https://api.github.com/repos/buruzaemon/frequent-algorithm/languages","stargazers_url":"https://api.github.com/repos/buruzaemon/frequent-algorithm/stargazers","contributors_url":"https://api.github.com/repos/buruzaemon/frequent-algorithm/contributors","subscribers_url":"https://api.github.com/repos/buruzaemon/frequent-algorithm/subscribers","subscription_url":"https://api.github.com/repos/buruzaemon/frequent-algorithm/subscription","commits_url":"https://api.github.com/repos/buruzaemon/frequent-algorithm/commits{/sha}","git_commits_url":"https://api.github.com/repos/buruzaemon/frequent-algorithm/git/commits{/sha}","comments_url":"https://api.github.com/repos/buruzaemon/frequent-algorithm/comments{/number}","issue_comment_url":"https://api.github.com/repos/buruzaemon/frequent-algorithm/issues/comments{/number}","contents_url":"https://api.github.com/repos/buruzaemon/frequent-algorithm/contents/{+path}","compare_url":"https://api.github.com/repos/buruzaemon/frequent-algorithm/compare/{base}...{head}","merges_url":"https://api.github.com/repos/buruzaemon/frequent-algorithm/merges","archive_url":"https://api.github.com/repos/buruzaemon/frequent-algorithm/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/buruzaemon/frequent-algorithm/downloads","issues_url":"https://api.github.com/repos/buruzaemon/frequent-algorithm/issues{/number}","pulls_url":"https://api.github.com/repos/buruzaemon/frequent-algorithm/pulls{/number}","milestones_url":"https://api.github.com/repos/buruzaemon/frequent-algorithm/milestones{/number}","notifications_url":"https://api.github.com/repos/buruzaemon/frequent-algorithm/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/buruzaemon/frequent-algorithm/labels{/name}","releases_url":"https://api.github.com/repos/buruzaemon/frequent-algorithm/releases{/id}","created_at":"2015-03-11T12:02:53Z","updated_at":"2015-03-21T11:54:43Z","pushed_at":"2015-03-22T09:29:46Z","git_url":"git://github.com/buruzaemon/frequent-algorithm.git","ssh_url":"git@github.com:buruzaemon/frequent-algorithm.git","clone_url":"https://github.com/buruzaemon/frequent-algorithm.git","svn_url":"https://github.com/buruzaemon/frequent-algorithm","homepage":null,"size":403,"stargazers_count":2,"watchers_count":2,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":2,"mirror_url":null,"open_issues_count":5,"forks":2,"open_issues":5,"watchers":2,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/buruzaemon/frequent-algorithm/pulls/31"},"html":{"href":"https://github.com/buruzaemon/frequent-algorithm/pull/31"},"issue":{"href":"https://api.github.com/repos/buruzaemon/frequent-algorithm/issues/31"},"comments":{"href":"https://api.github.com/repos/buruzaemon/frequent-algorithm/issues/31/comments"},"review_comments":{"href":"https://api.github.com/repos/buruzaemon/frequent-algorithm/pulls/31/comments"},"review_comment":{"href":"https://api.github.com/repos/buruzaemon/frequent-algorithm/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/buruzaemon/frequent-algorithm/pulls/31/commits"},"statuses":{"href":"https://api.github.com/repos/buruzaemon/frequent-algorithm/statuses/027939486ecc56061953781458ffd8e40a03f99f"}},"merged":true,"mergeable":null,"mergeable_state":"unknown","merged_by":{"login":"buruzaemon","id":498577,"avatar_url":"https://avatars.githubusercontent.com/u/498577?v=3","gravatar_id":"","url":"https://api.github.com/users/buruzaemon","html_url":"https://github.com/buruzaemon","followers_url":"https://api.github.com/users/buruzaemon/followers","following_url":"https://api.github.com/users/buruzaemon/following{/other_user}","gists_url":"https://api.github.com/users/buruzaemon/gists{/gist_id}","starred_url":"https://api.github.com/users/buruzaemon/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/buruzaemon/subscriptions","organizations_url":"https://api.github.com/users/buruzaemon/orgs","repos_url":"https://api.github.com/users/buruzaemon/repos","events_url":"https://api.github.com/users/buruzaemon/events{/privacy}","received_events_url":"https://api.github.com/users/buruzaemon/received_events","type":"User","site_admin":false},"comments":0,"review_comments":0,"commits":4,"additions":24,"deletions":40,"changed_files":2}}