{"action":"closed","number":51,"pull_request":{"url":"https://api.github.com/repos/hollance/swift-algorithm-club/pulls/51","id":60799160,"html_url":"https://github.com/hollance/swift-algorithm-club/pull/51","diff_url":"https://github.com/hollance/swift-algorithm-club/pull/51.diff","patch_url":"https://github.com/hollance/swift-algorithm-club/pull/51.patch","issue_url":"https://api.github.com/repos/hollance/swift-algorithm-club/issues/51","number":51,"state":"closed","locked":false,"title":"Implement K-Means algorithm","user":{"login":"johnsgill3","id":8923546,"avatar_url":"https://avatars.githubusercontent.com/u/8923546?v=3","gravatar_id":"","url":"https://api.github.com/users/johnsgill3","html_url":"https://github.com/johnsgill3","followers_url":"https://api.github.com/users/johnsgill3/followers","following_url":"https://api.github.com/users/johnsgill3/following{/other_user}","gists_url":"https://api.github.com/users/johnsgill3/gists{/gist_id}","starred_url":"https://api.github.com/users/johnsgill3/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/johnsgill3/subscriptions","organizations_url":"https://api.github.com/users/johnsgill3/orgs","repos_url":"https://api.github.com/users/johnsgill3/repos","events_url":"https://api.github.com/users/johnsgill3/events{/privacy}","received_events_url":"https://api.github.com/users/johnsgill3/received_events","type":"User","site_admin":false},"body":"An Unsupervised classification machine learning algorithm.\r\n\r\nTotally blanked on kNN vs kMeans and implemented the wrong one. So rather than waste code, moved it over to a new branch and made a few of the comments from PR #48.\r\n\r\nOpening pull request to get feedback on code.\r\n\r\nTodos:\r\n- [x] Write README.md","created_at":"2016-02-26T06:32:52Z","updated_at":"2016-03-01T09:02:56Z","closed_at":"2016-03-01T09:02:56Z","merged_at":"2016-03-01T09:02:56Z","merge_commit_sha":"2aaf8d97b39726405e82d89b894ad883961a26d3","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/hollance/swift-algorithm-club/pulls/51/commits","review_comments_url":"https://api.github.com/repos/hollance/swift-algorithm-club/pulls/51/comments","review_comment_url":"https://api.github.com/repos/hollance/swift-algorithm-club/pulls/comments{/number}","comments_url":"https://api.github.com/repos/hollance/swift-algorithm-club/issues/51/comments","statuses_url":"https://api.github.com/repos/hollance/swift-algorithm-club/statuses/90aa71c0feb8a4fd049f6440c78d5e374719764a","head":{"label":"johnsgill3:k-means","ref":"k-means","sha":"90aa71c0feb8a4fd049f6440c78d5e374719764a","user":{"login":"johnsgill3","id":8923546,"avatar_url":"https://avatars.githubusercontent.com/u/8923546?v=3","gravatar_id":"","url":"https://api.github.com/users/johnsgill3","html_url":"https://github.com/johnsgill3","followers_url":"https://api.github.com/users/johnsgill3/followers","following_url":"https://api.github.com/users/johnsgill3/following{/other_user}","gists_url":"https://api.github.com/users/johnsgill3/gists{/gist_id}","starred_url":"https://api.github.com/users/johnsgill3/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/johnsgill3/subscriptions","organizations_url":"https://api.github.com/users/johnsgill3/orgs","repos_url":"https://api.github.com/users/johnsgill3/repos","events_url":"https://api.github.com/users/johnsgill3/events{/privacy}","received_events_url":"https://api.github.com/users/johnsgill3/received_events","type":"User","site_admin":false},"repo":{"id":52417809,"name":"swift-algorithm-club","full_name":"johnsgill3/swift-algorithm-club","owner":{"login":"johnsgill3","id":8923546,"avatar_url":"https://avatars.githubusercontent.com/u/8923546?v=3","gravatar_id":"","url":"https://api.github.com/users/johnsgill3","html_url":"https://github.com/johnsgill3","followers_url":"https://api.github.com/users/johnsgill3/followers","following_url":"https://api.github.com/users/johnsgill3/following{/other_user}","gists_url":"https://api.github.com/users/johnsgill3/gists{/gist_id}","starred_url":"https://api.github.com/users/johnsgill3/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/johnsgill3/subscriptions","organizations_url":"https://api.github.com/users/johnsgill3/orgs","repos_url":"https://api.github.com/users/johnsgill3/repos","events_url":"https://api.github.com/users/johnsgill3/events{/privacy}","received_events_url":"https://api.github.com/users/johnsgill3/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/johnsgill3/swift-algorithm-club","description":"Algorithms and data structures in Swift, with explanations!","fork":true,"url":"https://api.github.com/repos/johnsgill3/swift-algorithm-club","forks_url":"https://api.github.com/repos/johnsgill3/swift-algorithm-club/forks","keys_url":"https://api.github.com/repos/johnsgill3/swift-algorithm-club/keys{/key_id}","collaborators_url":"https://api.github.com/repos/johnsgill3/swift-algorithm-club/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/johnsgill3/swift-algorithm-club/teams","hooks_url":"https://api.github.com/repos/johnsgill3/swift-algorithm-club/hooks","issue_events_url":"https://api.github.com/repos/johnsgill3/swift-algorithm-club/issues/events{/number}","events_url":"https://api.github.com/repos/johnsgill3/swift-algorithm-club/events","assignees_url":"https://api.github.com/repos/johnsgill3/swift-algorithm-club/assignees{/user}","branches_url":"https://api.github.com/repos/johnsgill3/swift-algorithm-club/branches{/branch}","tags_url":"https://api.github.com/repos/johnsgill3/swift-algorithm-club/tags","blobs_url":"https://api.github.com/repos/johnsgill3/swift-algorithm-club/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/johnsgill3/swift-algorithm-club/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/johnsgill3/swift-algorithm-club/git/refs{/sha}","trees_url":"https://api.github.com/repos/johnsgill3/swift-algorithm-club/git/trees{/sha}","statuses_url":"https://api.github.com/repos/johnsgill3/swift-algorithm-club/statuses/{sha}","languages_url":"https://api.github.com/repos/johnsgill3/swift-algorithm-club/languages","stargazers_url":"https://api.github.com/repos/johnsgill3/swift-algorithm-club/stargazers","contributors_url":"https://api.github.com/repos/johnsgill3/swift-algorithm-club/contributors","subscribers_url":"https://api.github.com/repos/johnsgill3/swift-algorithm-club/subscribers","subscription_url":"https://api.github.com/repos/johnsgill3/swift-algorithm-club/subscription","commits_url":"https://api.github.com/repos/johnsgill3/swift-algorithm-club/commits{/sha}","git_commits_url":"https://api.github.com/repos/johnsgill3/swift-algorithm-club/git/commits{/sha}","comments_url":"https://api.github.com/repos/johnsgill3/swift-algorithm-club/comments{/number}","issue_comment_url":"https://api.github.com/repos/johnsgill3/swift-algorithm-club/issues/comments{/number}","contents_url":"https://api.github.com/repos/johnsgill3/swift-algorithm-club/contents/{+path}","compare_url":"https://api.github.com/repos/johnsgill3/swift-algorithm-club/compare/{base}...{head}","merges_url":"https://api.github.com/repos/johnsgill3/swift-algorithm-club/merges","archive_url":"https://api.github.com/repos/johnsgill3/swift-algorithm-club/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/johnsgill3/swift-algorithm-club/downloads","issues_url":"https://api.github.com/repos/johnsgill3/swift-algorithm-club/issues{/number}","pulls_url":"https://api.github.com/repos/johnsgill3/swift-algorithm-club/pulls{/number}","milestones_url":"https://api.github.com/repos/johnsgill3/swift-algorithm-club/milestones{/number}","notifications_url":"https://api.github.com/repos/johnsgill3/swift-algorithm-club/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/johnsgill3/swift-algorithm-club/labels{/name}","releases_url":"https://api.github.com/repos/johnsgill3/swift-algorithm-club/releases{/id}","deployments_url":"https://api.github.com/repos/johnsgill3/swift-algorithm-club/deployments","created_at":"2016-02-24T05:47:58Z","updated_at":"2016-02-24T05:47:58Z","pushed_at":"2016-03-01T03:20:40Z","git_url":"git://github.com/johnsgill3/swift-algorithm-club.git","ssh_url":"git@github.com:johnsgill3/swift-algorithm-club.git","clone_url":"https://github.com/johnsgill3/swift-algorithm-club.git","svn_url":"https://github.com/johnsgill3/swift-algorithm-club","homepage":null,"size":2330,"stargazers_count":0,"watchers_count":0,"language":"Swift","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":"hollance:master","ref":"master","sha":"b791185c165f2f6a12f0b44f744e316fe6d35b8f","user":{"login":"hollance","id":346853,"avatar_url":"https://avatars.githubusercontent.com/u/346853?v=3","gravatar_id":"","url":"https://api.github.com/users/hollance","html_url":"https://github.com/hollance","followers_url":"https://api.github.com/users/hollance/followers","following_url":"https://api.github.com/users/hollance/following{/other_user}","gists_url":"https://api.github.com/users/hollance/gists{/gist_id}","starred_url":"https://api.github.com/users/hollance/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hollance/subscriptions","organizations_url":"https://api.github.com/users/hollance/orgs","repos_url":"https://api.github.com/users/hollance/repos","events_url":"https://api.github.com/users/hollance/events{/privacy}","received_events_url":"https://api.github.com/users/hollance/received_events","type":"User","site_admin":false},"repo":{"id":50447720,"name":"swift-algorithm-club","full_name":"hollance/swift-algorithm-club","owner":{"login":"hollance","id":346853,"avatar_url":"https://avatars.githubusercontent.com/u/346853?v=3","gravatar_id":"","url":"https://api.github.com/users/hollance","html_url":"https://github.com/hollance","followers_url":"https://api.github.com/users/hollance/followers","following_url":"https://api.github.com/users/hollance/following{/other_user}","gists_url":"https://api.github.com/users/hollance/gists{/gist_id}","starred_url":"https://api.github.com/users/hollance/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hollance/subscriptions","organizations_url":"https://api.github.com/users/hollance/orgs","repos_url":"https://api.github.com/users/hollance/repos","events_url":"https://api.github.com/users/hollance/events{/privacy}","received_events_url":"https://api.github.com/users/hollance/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/hollance/swift-algorithm-club","description":"Algorithms and data structures in Swift, with explanations!","fork":false,"url":"https://api.github.com/repos/hollance/swift-algorithm-club","forks_url":"https://api.github.com/repos/hollance/swift-algorithm-club/forks","keys_url":"https://api.github.com/repos/hollance/swift-algorithm-club/keys{/key_id}","collaborators_url":"https://api.github.com/repos/hollance/swift-algorithm-club/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/hollance/swift-algorithm-club/teams","hooks_url":"https://api.github.com/repos/hollance/swift-algorithm-club/hooks","issue_events_url":"https://api.github.com/repos/hollance/swift-algorithm-club/issues/events{/number}","events_url":"https://api.github.com/repos/hollance/swift-algorithm-club/events","assignees_url":"https://api.github.com/repos/hollance/swift-algorithm-club/assignees{/user}","branches_url":"https://api.github.com/repos/hollance/swift-algorithm-club/branches{/branch}","tags_url":"https://api.github.com/repos/hollance/swift-algorithm-club/tags","blobs_url":"https://api.github.com/repos/hollance/swift-algorithm-club/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/hollance/swift-algorithm-club/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/hollance/swift-algorithm-club/git/refs{/sha}","trees_url":"https://api.github.com/repos/hollance/swift-algorithm-club/git/trees{/sha}","statuses_url":"https://api.github.com/repos/hollance/swift-algorithm-club/statuses/{sha}","languages_url":"https://api.github.com/repos/hollance/swift-algorithm-club/languages","stargazers_url":"https://api.github.com/repos/hollance/swift-algorithm-club/stargazers","contributors_url":"https://api.github.com/repos/hollance/swift-algorithm-club/contributors","subscribers_url":"https://api.github.com/repos/hollance/swift-algorithm-club/subscribers","subscription_url":"https://api.github.com/repos/hollance/swift-algorithm-club/subscription","commits_url":"https://api.github.com/repos/hollance/swift-algorithm-club/commits{/sha}","git_commits_url":"https://api.github.com/repos/hollance/swift-algorithm-club/git/commits{/sha}","comments_url":"https://api.github.com/repos/hollance/swift-algorithm-club/comments{/number}","issue_comment_url":"https://api.github.com/repos/hollance/swift-algorithm-club/issues/comments{/number}","contents_url":"https://api.github.com/repos/hollance/swift-algorithm-club/contents/{+path}","compare_url":"https://api.github.com/repos/hollance/swift-algorithm-club/compare/{base}...{head}","merges_url":"https://api.github.com/repos/hollance/swift-algorithm-club/merges","archive_url":"https://api.github.com/repos/hollance/swift-algorithm-club/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/hollance/swift-algorithm-club/downloads","issues_url":"https://api.github.com/repos/hollance/swift-algorithm-club/issues{/number}","pulls_url":"https://api.github.com/repos/hollance/swift-algorithm-club/pulls{/number}","milestones_url":"https://api.github.com/repos/hollance/swift-algorithm-club/milestones{/number}","notifications_url":"https://api.github.com/repos/hollance/swift-algorithm-club/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/hollance/swift-algorithm-club/labels{/name}","releases_url":"https://api.github.com/repos/hollance/swift-algorithm-club/releases{/id}","deployments_url":"https://api.github.com/repos/hollance/swift-algorithm-club/deployments","created_at":"2016-01-26T17:56:12Z","updated_at":"2016-03-01T09:02:41Z","pushed_at":"2016-03-01T09:02:56Z","git_url":"git://github.com/hollance/swift-algorithm-club.git","ssh_url":"git@github.com:hollance/swift-algorithm-club.git","clone_url":"https://github.com/hollance/swift-algorithm-club.git","svn_url":"https://github.com/hollance/swift-algorithm-club","homepage":null,"size":2346,"stargazers_count":3531,"watchers_count":3531,"language":"Swift","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":286,"mirror_url":null,"open_issues_count":12,"forks":286,"open_issues":12,"watchers":3531,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/hollance/swift-algorithm-club/pulls/51"},"html":{"href":"https://github.com/hollance/swift-algorithm-club/pull/51"},"issue":{"href":"https://api.github.com/repos/hollance/swift-algorithm-club/issues/51"},"comments":{"href":"https://api.github.com/repos/hollance/swift-algorithm-club/issues/51/comments"},"review_comments":{"href":"https://api.github.com/repos/hollance/swift-algorithm-club/pulls/51/comments"},"review_comment":{"href":"https://api.github.com/repos/hollance/swift-algorithm-club/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/hollance/swift-algorithm-club/pulls/51/commits"},"statuses":{"href":"https://api.github.com/repos/hollance/swift-algorithm-club/statuses/90aa71c0feb8a4fd049f6440c78d5e374719764a"}},"merged":true,"mergeable":null,"mergeable_state":"unknown","merged_by":{"login":"hollance","id":346853,"avatar_url":"https://avatars.githubusercontent.com/u/346853?v=3","gravatar_id":"","url":"https://api.github.com/users/hollance","html_url":"https://github.com/hollance","followers_url":"https://api.github.com/users/hollance/followers","following_url":"https://api.github.com/users/hollance/following{/other_user}","gists_url":"https://api.github.com/users/hollance/gists{/gist_id}","starred_url":"https://api.github.com/users/hollance/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hollance/subscriptions","organizations_url":"https://api.github.com/users/hollance/orgs","repos_url":"https://api.github.com/users/hollance/repos","events_url":"https://api.github.com/users/hollance/events{/privacy}","received_events_url":"https://api.github.com/users/hollance/received_events","type":"User","site_admin":false},"comments":5,"review_comments":0,"commits":59,"additions":3324,"deletions":48,"changed_files":57}}