{"action":"opened","number":16,"pull_request":{"url":"https://api.github.com/repos/KristofferC/NearestNeighbors.jl/pulls/16","id":54491013,"html_url":"https://github.com/KristofferC/NearestNeighbors.jl/pull/16","diff_url":"https://github.com/KristofferC/NearestNeighbors.jl/pull/16.diff","patch_url":"https://github.com/KristofferC/NearestNeighbors.jl/pull/16.patch","issue_url":"https://api.github.com/repos/KristofferC/NearestNeighbors.jl/issues/16","number":16,"state":"open","locked":false,"title":"WIP: Allow more types in the tree data","user":{"login":"KristofferC","id":1282691,"avatar_url":"https://avatars.githubusercontent.com/u/1282691?v=3","gravatar_id":"","url":"https://api.github.com/users/KristofferC","html_url":"https://github.com/KristofferC","followers_url":"https://api.github.com/users/KristofferC/followers","following_url":"https://api.github.com/users/KristofferC/following{/other_user}","gists_url":"https://api.github.com/users/KristofferC/gists{/gist_id}","starred_url":"https://api.github.com/users/KristofferC/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/KristofferC/subscriptions","organizations_url":"https://api.github.com/users/KristofferC/orgs","repos_url":"https://api.github.com/users/KristofferC/repos","events_url":"https://api.github.com/users/KristofferC/events{/privacy}","received_events_url":"https://api.github.com/users/KristofferC/received_events","type":"User","site_admin":false},"body":"This is a work in progress to resolve #13 \r\n\r\nTODO:\r\n\r\n- [ ] Check for any performance regressions. Since this mess around with the type system we have to make sure that a type instability got introduced.\r\n- [ ] Add test cases, maybe @tlnagy can help with that.\r\n\r\nCreating the tree works now at least:\r\n\r\n```jl\r\njulia> data = rand(1:4, (10, 10^4));\r\n\r\njulia> balltree = BallTree(data, Hamming())\r\nNearestNeighbors.BallTree{Int64,Float64,Distances.Hamming}\r\n  Number of points: 10000\r\n  Dimensions: 10\r\n  Metric: Distances.Hamming()\r\n  Reordered: true\r\n```\r\n\r\ncc @tlnagy ","created_at":"2015-12-23T17:38:31Z","updated_at":"2015-12-23T17:38:31Z","closed_at":null,"merged_at":null,"merge_commit_sha":null,"assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/KristofferC/NearestNeighbors.jl/pulls/16/commits","review_comments_url":"https://api.github.com/repos/KristofferC/NearestNeighbors.jl/pulls/16/comments","review_comment_url":"https://api.github.com/repos/KristofferC/NearestNeighbors.jl/pulls/comments{/number}","comments_url":"https://api.github.com/repos/KristofferC/NearestNeighbors.jl/issues/16/comments","statuses_url":"https://api.github.com/repos/KristofferC/NearestNeighbors.jl/statuses/d56e68b5ff44d1a1bc838bf21d9432f17b9c4b46","head":{"label":"KristofferC:allow_int","ref":"allow_int","sha":"d56e68b5ff44d1a1bc838bf21d9432f17b9c4b46","user":{"login":"KristofferC","id":1282691,"avatar_url":"https://avatars.githubusercontent.com/u/1282691?v=3","gravatar_id":"","url":"https://api.github.com/users/KristofferC","html_url":"https://github.com/KristofferC","followers_url":"https://api.github.com/users/KristofferC/followers","following_url":"https://api.github.com/users/KristofferC/following{/other_user}","gists_url":"https://api.github.com/users/KristofferC/gists{/gist_id}","starred_url":"https://api.github.com/users/KristofferC/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/KristofferC/subscriptions","organizations_url":"https://api.github.com/users/KristofferC/orgs","repos_url":"https://api.github.com/users/KristofferC/repos","events_url":"https://api.github.com/users/KristofferC/events{/privacy}","received_events_url":"https://api.github.com/users/KristofferC/received_events","type":"User","site_admin":false},"repo":{"id":45321556,"name":"NearestNeighbors.jl","full_name":"KristofferC/NearestNeighbors.jl","owner":{"login":"KristofferC","id":1282691,"avatar_url":"https://avatars.githubusercontent.com/u/1282691?v=3","gravatar_id":"","url":"https://api.github.com/users/KristofferC","html_url":"https://github.com/KristofferC","followers_url":"https://api.github.com/users/KristofferC/followers","following_url":"https://api.github.com/users/KristofferC/following{/other_user}","gists_url":"https://api.github.com/users/KristofferC/gists{/gist_id}","starred_url":"https://api.github.com/users/KristofferC/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/KristofferC/subscriptions","organizations_url":"https://api.github.com/users/KristofferC/orgs","repos_url":"https://api.github.com/users/KristofferC/repos","events_url":"https://api.github.com/users/KristofferC/events{/privacy}","received_events_url":"https://api.github.com/users/KristofferC/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/KristofferC/NearestNeighbors.jl","description":"High performance nearest neighbor data structures and algorithms for Julia.","fork":false,"url":"https://api.github.com/repos/KristofferC/NearestNeighbors.jl","forks_url":"https://api.github.com/repos/KristofferC/NearestNeighbors.jl/forks","keys_url":"https://api.github.com/repos/KristofferC/NearestNeighbors.jl/keys{/key_id}","collaborators_url":"https://api.github.com/repos/KristofferC/NearestNeighbors.jl/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/KristofferC/NearestNeighbors.jl/teams","hooks_url":"https://api.github.com/repos/KristofferC/NearestNeighbors.jl/hooks","issue_events_url":"https://api.github.com/repos/KristofferC/NearestNeighbors.jl/issues/events{/number}","events_url":"https://api.github.com/repos/KristofferC/NearestNeighbors.jl/events","assignees_url":"https://api.github.com/repos/KristofferC/NearestNeighbors.jl/assignees{/user}","branches_url":"https://api.github.com/repos/KristofferC/NearestNeighbors.jl/branches{/branch}","tags_url":"https://api.github.com/repos/KristofferC/NearestNeighbors.jl/tags","blobs_url":"https://api.github.com/repos/KristofferC/NearestNeighbors.jl/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/KristofferC/NearestNeighbors.jl/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/KristofferC/NearestNeighbors.jl/git/refs{/sha}","trees_url":"https://api.github.com/repos/KristofferC/NearestNeighbors.jl/git/trees{/sha}","statuses_url":"https://api.github.com/repos/KristofferC/NearestNeighbors.jl/statuses/{sha}","languages_url":"https://api.github.com/repos/KristofferC/NearestNeighbors.jl/languages","stargazers_url":"https://api.github.com/repos/KristofferC/NearestNeighbors.jl/stargazers","contributors_url":"https://api.github.com/repos/KristofferC/NearestNeighbors.jl/contributors","subscribers_url":"https://api.github.com/repos/KristofferC/NearestNeighbors.jl/subscribers","subscription_url":"https://api.github.com/repos/KristofferC/NearestNeighbors.jl/subscription","commits_url":"https://api.github.com/repos/KristofferC/NearestNeighbors.jl/commits{/sha}","git_commits_url":"https://api.github.com/repos/KristofferC/NearestNeighbors.jl/git/commits{/sha}","comments_url":"https://api.github.com/repos/KristofferC/NearestNeighbors.jl/comments{/number}","issue_comment_url":"https://api.github.com/repos/KristofferC/NearestNeighbors.jl/issues/comments{/number}","contents_url":"https://api.github.com/repos/KristofferC/NearestNeighbors.jl/contents/{+path}","compare_url":"https://api.github.com/repos/KristofferC/NearestNeighbors.jl/compare/{base}...{head}","merges_url":"https://api.github.com/repos/KristofferC/NearestNeighbors.jl/merges","archive_url":"https://api.github.com/repos/KristofferC/NearestNeighbors.jl/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/KristofferC/NearestNeighbors.jl/downloads","issues_url":"https://api.github.com/repos/KristofferC/NearestNeighbors.jl/issues{/number}","pulls_url":"https://api.github.com/repos/KristofferC/NearestNeighbors.jl/pulls{/number}","milestones_url":"https://api.github.com/repos/KristofferC/NearestNeighbors.jl/milestones{/number}","notifications_url":"https://api.github.com/repos/KristofferC/NearestNeighbors.jl/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/KristofferC/NearestNeighbors.jl/labels{/name}","releases_url":"https://api.github.com/repos/KristofferC/NearestNeighbors.jl/releases{/id}","created_at":"2015-10-31T23:16:37Z","updated_at":"2015-12-21T01:48:12Z","pushed_at":"2015-12-23T17:35:17Z","git_url":"git://github.com/KristofferC/NearestNeighbors.jl.git","ssh_url":"git@github.com:KristofferC/NearestNeighbors.jl.git","clone_url":"https://github.com/KristofferC/NearestNeighbors.jl.git","svn_url":"https://github.com/KristofferC/NearestNeighbors.jl","homepage":null,"size":609,"stargazers_count":9,"watchers_count":9,"language":"Julia","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":4,"mirror_url":null,"open_issues_count":9,"forks":4,"open_issues":9,"watchers":9,"default_branch":"master"}},"base":{"label":"KristofferC:master","ref":"master","sha":"93c252d76a6abfa1459d3b3aa57a295f9017b186","user":{"login":"KristofferC","id":1282691,"avatar_url":"https://avatars.githubusercontent.com/u/1282691?v=3","gravatar_id":"","url":"https://api.github.com/users/KristofferC","html_url":"https://github.com/KristofferC","followers_url":"https://api.github.com/users/KristofferC/followers","following_url":"https://api.github.com/users/KristofferC/following{/other_user}","gists_url":"https://api.github.com/users/KristofferC/gists{/gist_id}","starred_url":"https://api.github.com/users/KristofferC/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/KristofferC/subscriptions","organizations_url":"https://api.github.com/users/KristofferC/orgs","repos_url":"https://api.github.com/users/KristofferC/repos","events_url":"https://api.github.com/users/KristofferC/events{/privacy}","received_events_url":"https://api.github.com/users/KristofferC/received_events","type":"User","site_admin":false},"repo":{"id":45321556,"name":"NearestNeighbors.jl","full_name":"KristofferC/NearestNeighbors.jl","owner":{"login":"KristofferC","id":1282691,"avatar_url":"https://avatars.githubusercontent.com/u/1282691?v=3","gravatar_id":"","url":"https://api.github.com/users/KristofferC","html_url":"https://github.com/KristofferC","followers_url":"https://api.github.com/users/KristofferC/followers","following_url":"https://api.github.com/users/KristofferC/following{/other_user}","gists_url":"https://api.github.com/users/KristofferC/gists{/gist_id}","starred_url":"https://api.github.com/users/KristofferC/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/KristofferC/subscriptions","organizations_url":"https://api.github.com/users/KristofferC/orgs","repos_url":"https://api.github.com/users/KristofferC/repos","events_url":"https://api.github.com/users/KristofferC/events{/privacy}","received_events_url":"https://api.github.com/users/KristofferC/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/KristofferC/NearestNeighbors.jl","description":"High performance nearest neighbor data structures and algorithms for Julia.","fork":false,"url":"https://api.github.com/repos/KristofferC/NearestNeighbors.jl","forks_url":"https://api.github.com/repos/KristofferC/NearestNeighbors.jl/forks","keys_url":"https://api.github.com/repos/KristofferC/NearestNeighbors.jl/keys{/key_id}","collaborators_url":"https://api.github.com/repos/KristofferC/NearestNeighbors.jl/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/KristofferC/NearestNeighbors.jl/teams","hooks_url":"https://api.github.com/repos/KristofferC/NearestNeighbors.jl/hooks","issue_events_url":"https://api.github.com/repos/KristofferC/NearestNeighbors.jl/issues/events{/number}","events_url":"https://api.github.com/repos/KristofferC/NearestNeighbors.jl/events","assignees_url":"https://api.github.com/repos/KristofferC/NearestNeighbors.jl/assignees{/user}","branches_url":"https://api.github.com/repos/KristofferC/NearestNeighbors.jl/branches{/branch}","tags_url":"https://api.github.com/repos/KristofferC/NearestNeighbors.jl/tags","blobs_url":"https://api.github.com/repos/KristofferC/NearestNeighbors.jl/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/KristofferC/NearestNeighbors.jl/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/KristofferC/NearestNeighbors.jl/git/refs{/sha}","trees_url":"https://api.github.com/repos/KristofferC/NearestNeighbors.jl/git/trees{/sha}","statuses_url":"https://api.github.com/repos/KristofferC/NearestNeighbors.jl/statuses/{sha}","languages_url":"https://api.github.com/repos/KristofferC/NearestNeighbors.jl/languages","stargazers_url":"https://api.github.com/repos/KristofferC/NearestNeighbors.jl/stargazers","contributors_url":"https://api.github.com/repos/KristofferC/NearestNeighbors.jl/contributors","subscribers_url":"https://api.github.com/repos/KristofferC/NearestNeighbors.jl/subscribers","subscription_url":"https://api.github.com/repos/KristofferC/NearestNeighbors.jl/subscription","commits_url":"https://api.github.com/repos/KristofferC/NearestNeighbors.jl/commits{/sha}","git_commits_url":"https://api.github.com/repos/KristofferC/NearestNeighbors.jl/git/commits{/sha}","comments_url":"https://api.github.com/repos/KristofferC/NearestNeighbors.jl/comments{/number}","issue_comment_url":"https://api.github.com/repos/KristofferC/NearestNeighbors.jl/issues/comments{/number}","contents_url":"https://api.github.com/repos/KristofferC/NearestNeighbors.jl/contents/{+path}","compare_url":"https://api.github.com/repos/KristofferC/NearestNeighbors.jl/compare/{base}...{head}","merges_url":"https://api.github.com/repos/KristofferC/NearestNeighbors.jl/merges","archive_url":"https://api.github.com/repos/KristofferC/NearestNeighbors.jl/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/KristofferC/NearestNeighbors.jl/downloads","issues_url":"https://api.github.com/repos/KristofferC/NearestNeighbors.jl/issues{/number}","pulls_url":"https://api.github.com/repos/KristofferC/NearestNeighbors.jl/pulls{/number}","milestones_url":"https://api.github.com/repos/KristofferC/NearestNeighbors.jl/milestones{/number}","notifications_url":"https://api.github.com/repos/KristofferC/NearestNeighbors.jl/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/KristofferC/NearestNeighbors.jl/labels{/name}","releases_url":"https://api.github.com/repos/KristofferC/NearestNeighbors.jl/releases{/id}","created_at":"2015-10-31T23:16:37Z","updated_at":"2015-12-21T01:48:12Z","pushed_at":"2015-12-23T17:35:17Z","git_url":"git://github.com/KristofferC/NearestNeighbors.jl.git","ssh_url":"git@github.com:KristofferC/NearestNeighbors.jl.git","clone_url":"https://github.com/KristofferC/NearestNeighbors.jl.git","svn_url":"https://github.com/KristofferC/NearestNeighbors.jl","homepage":null,"size":609,"stargazers_count":9,"watchers_count":9,"language":"Julia","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":4,"mirror_url":null,"open_issues_count":9,"forks":4,"open_issues":9,"watchers":9,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/KristofferC/NearestNeighbors.jl/pulls/16"},"html":{"href":"https://github.com/KristofferC/NearestNeighbors.jl/pull/16"},"issue":{"href":"https://api.github.com/repos/KristofferC/NearestNeighbors.jl/issues/16"},"comments":{"href":"https://api.github.com/repos/KristofferC/NearestNeighbors.jl/issues/16/comments"},"review_comments":{"href":"https://api.github.com/repos/KristofferC/NearestNeighbors.jl/pulls/16/comments"},"review_comment":{"href":"https://api.github.com/repos/KristofferC/NearestNeighbors.jl/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/KristofferC/NearestNeighbors.jl/pulls/16/commits"},"statuses":{"href":"https://api.github.com/repos/KristofferC/NearestNeighbors.jl/statuses/d56e68b5ff44d1a1bc838bf21d9432f17b9c4b46"}},"merged":false,"mergeable":null,"mergeable_state":"unknown","merged_by":null,"comments":0,"review_comments":0,"commits":1,"additions":122,"deletions":122,"changed_files":10}}