{"action":"created","comment":{"url":"https://api.github.com/repos/stripe/bonsai/pulls/comments/56846021","id":56846021,"diff_hunk":"@@ -40,6 +38,13 @@ final class IndexedBitSet(\n     ((word >>> bitOffset) & 1) != 0\n   }\n \n+  // Returns the 10-bit block-relative rank stored in the level 2 \"index\".\n+  // We pack in 3 ranks per 32-bit word, so getting them is a bit complicated.\n+  private def getLevel2(i: Int): Int = {","path":"bonsai-core/src/main/scala/com/stripe/bonsai/IndexedBitSet.scala","position":46,"original_position":46,"commit_id":"ea14e284a43adbdf194c8f4530a3188d2c4dc265","original_commit_id":"ea14e284a43adbdf194c8f4530a3188d2c4dc265","user":{"login":"non","id":218045,"avatar_url":"https://avatars.githubusercontent.com/u/218045?v=3","gravatar_id":"","url":"https://api.github.com/users/non","html_url":"https://github.com/non","followers_url":"https://api.github.com/users/non/followers","following_url":"https://api.github.com/users/non/following{/other_user}","gists_url":"https://api.github.com/users/non/gists{/gist_id}","starred_url":"https://api.github.com/users/non/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/non/subscriptions","organizations_url":"https://api.github.com/users/non/orgs","repos_url":"https://api.github.com/users/non/repos","events_url":"https://api.github.com/users/non/events{/privacy}","received_events_url":"https://api.github.com/users/non/received_events","type":"User","site_admin":false},"body":"Worth marking with `@inline` ?","created_at":"2016-03-21T15:53:24Z","updated_at":"2016-03-21T15:53:24Z","html_url":"https://github.com/stripe/bonsai/pull/12#discussion_r56846021","pull_request_url":"https://api.github.com/repos/stripe/bonsai/pulls/12","_links":{"self":{"href":"https://api.github.com/repos/stripe/bonsai/pulls/comments/56846021"},"html":{"href":"https://github.com/stripe/bonsai/pull/12#discussion_r56846021"},"pull_request":{"href":"https://api.github.com/repos/stripe/bonsai/pulls/12"}}},"pull_request":{"url":"https://api.github.com/repos/stripe/bonsai/pulls/12","id":63570902,"html_url":"https://github.com/stripe/bonsai/pull/12","diff_url":"https://github.com/stripe/bonsai/pull/12.diff","patch_url":"https://github.com/stripe/bonsai/pull/12.patch","issue_url":"https://api.github.com/repos/stripe/bonsai/issues/12","number":12,"state":"open","locked":false,"title":"Add select to IndexedBitSet.","user":{"login":"tixxit","id":120314,"avatar_url":"https://avatars.githubusercontent.com/u/120314?v=3","gravatar_id":"","url":"https://api.github.com/users/tixxit","html_url":"https://github.com/tixxit","followers_url":"https://api.github.com/users/tixxit/followers","following_url":"https://api.github.com/users/tixxit/following{/other_user}","gists_url":"https://api.github.com/users/tixxit/gists{/gist_id}","starred_url":"https://api.github.com/users/tixxit/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tixxit/subscriptions","organizations_url":"https://api.github.com/users/tixxit/orgs","repos_url":"https://api.github.com/users/tixxit/repos","events_url":"https://api.github.com/users/tixxit/events{/privacy}","received_events_url":"https://api.github.com/users/tixxit/received_events","type":"User","site_admin":false},"body":"I'll still need to add some docs and whatnot, but the tests pass, which is nice.","created_at":"2016-03-21T14:21:54Z","updated_at":"2016-03-21T15:53:24Z","closed_at":null,"merged_at":null,"merge_commit_sha":"0cdd0b6b98f67d1e40e7e07efd07fc4ddef3ed69","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/stripe/bonsai/pulls/12/commits","review_comments_url":"https://api.github.com/repos/stripe/bonsai/pulls/12/comments","review_comment_url":"https://api.github.com/repos/stripe/bonsai/pulls/comments{/number}","comments_url":"https://api.github.com/repos/stripe/bonsai/issues/12/comments","statuses_url":"https://api.github.com/repos/stripe/bonsai/statuses/ea14e284a43adbdf194c8f4530a3188d2c4dc265","head":{"label":"stripe:thomas-select","ref":"thomas-select","sha":"ea14e284a43adbdf194c8f4530a3188d2c4dc265","user":{"login":"stripe","id":856813,"avatar_url":"https://avatars.githubusercontent.com/u/856813?v=3","gravatar_id":"","url":"https://api.github.com/users/stripe","html_url":"https://github.com/stripe","followers_url":"https://api.github.com/users/stripe/followers","following_url":"https://api.github.com/users/stripe/following{/other_user}","gists_url":"https://api.github.com/users/stripe/gists{/gist_id}","starred_url":"https://api.github.com/users/stripe/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/stripe/subscriptions","organizations_url":"https://api.github.com/users/stripe/orgs","repos_url":"https://api.github.com/users/stripe/repos","events_url":"https://api.github.com/users/stripe/events{/privacy}","received_events_url":"https://api.github.com/users/stripe/received_events","type":"Organization","site_admin":false},"repo":{"id":43621635,"name":"bonsai","full_name":"stripe/bonsai","owner":{"login":"stripe","id":856813,"avatar_url":"https://avatars.githubusercontent.com/u/856813?v=3","gravatar_id":"","url":"https://api.github.com/users/stripe","html_url":"https://github.com/stripe","followers_url":"https://api.github.com/users/stripe/followers","following_url":"https://api.github.com/users/stripe/following{/other_user}","gists_url":"https://api.github.com/users/stripe/gists{/gist_id}","starred_url":"https://api.github.com/users/stripe/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/stripe/subscriptions","organizations_url":"https://api.github.com/users/stripe/orgs","repos_url":"https://api.github.com/users/stripe/repos","events_url":"https://api.github.com/users/stripe/events{/privacy}","received_events_url":"https://api.github.com/users/stripe/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/stripe/bonsai","description":"Beautiful trees, without the landscaping.","fork":false,"url":"https://api.github.com/repos/stripe/bonsai","forks_url":"https://api.github.com/repos/stripe/bonsai/forks","keys_url":"https://api.github.com/repos/stripe/bonsai/keys{/key_id}","collaborators_url":"https://api.github.com/repos/stripe/bonsai/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/stripe/bonsai/teams","hooks_url":"https://api.github.com/repos/stripe/bonsai/hooks","issue_events_url":"https://api.github.com/repos/stripe/bonsai/issues/events{/number}","events_url":"https://api.github.com/repos/stripe/bonsai/events","assignees_url":"https://api.github.com/repos/stripe/bonsai/assignees{/user}","branches_url":"https://api.github.com/repos/stripe/bonsai/branches{/branch}","tags_url":"https://api.github.com/repos/stripe/bonsai/tags","blobs_url":"https://api.github.com/repos/stripe/bonsai/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/stripe/bonsai/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/stripe/bonsai/git/refs{/sha}","trees_url":"https://api.github.com/repos/stripe/bonsai/git/trees{/sha}","statuses_url":"https://api.github.com/repos/stripe/bonsai/statuses/{sha}","languages_url":"https://api.github.com/repos/stripe/bonsai/languages","stargazers_url":"https://api.github.com/repos/stripe/bonsai/stargazers","contributors_url":"https://api.github.com/repos/stripe/bonsai/contributors","subscribers_url":"https://api.github.com/repos/stripe/bonsai/subscribers","subscription_url":"https://api.github.com/repos/stripe/bonsai/subscription","commits_url":"https://api.github.com/repos/stripe/bonsai/commits{/sha}","git_commits_url":"https://api.github.com/repos/stripe/bonsai/git/commits{/sha}","comments_url":"https://api.github.com/repos/stripe/bonsai/comments{/number}","issue_comment_url":"https://api.github.com/repos/stripe/bonsai/issues/comments{/number}","contents_url":"https://api.github.com/repos/stripe/bonsai/contents/{+path}","compare_url":"https://api.github.com/repos/stripe/bonsai/compare/{base}...{head}","merges_url":"https://api.github.com/repos/stripe/bonsai/merges","archive_url":"https://api.github.com/repos/stripe/bonsai/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/stripe/bonsai/downloads","issues_url":"https://api.github.com/repos/stripe/bonsai/issues{/number}","pulls_url":"https://api.github.com/repos/stripe/bonsai/pulls{/number}","milestones_url":"https://api.github.com/repos/stripe/bonsai/milestones{/number}","notifications_url":"https://api.github.com/repos/stripe/bonsai/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/stripe/bonsai/labels{/name}","releases_url":"https://api.github.com/repos/stripe/bonsai/releases{/id}","deployments_url":"https://api.github.com/repos/stripe/bonsai/deployments","created_at":"2015-10-04T01:54:37Z","updated_at":"2016-02-16T00:25:31Z","pushed_at":"2016-03-21T15:33:50Z","git_url":"git://github.com/stripe/bonsai.git","ssh_url":"git@github.com:stripe/bonsai.git","clone_url":"https://github.com/stripe/bonsai.git","svn_url":"https://github.com/stripe/bonsai","homepage":null,"size":63,"stargazers_count":6,"watchers_count":6,"language":"Scala","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":2,"mirror_url":null,"open_issues_count":4,"forks":2,"open_issues":4,"watchers":6,"default_branch":"master"}},"base":{"label":"stripe:master","ref":"master","sha":"c43d1b28844fb283f02924b4a16ff1558f33476a","user":{"login":"stripe","id":856813,"avatar_url":"https://avatars.githubusercontent.com/u/856813?v=3","gravatar_id":"","url":"https://api.github.com/users/stripe","html_url":"https://github.com/stripe","followers_url":"https://api.github.com/users/stripe/followers","following_url":"https://api.github.com/users/stripe/following{/other_user}","gists_url":"https://api.github.com/users/stripe/gists{/gist_id}","starred_url":"https://api.github.com/users/stripe/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/stripe/subscriptions","organizations_url":"https://api.github.com/users/stripe/orgs","repos_url":"https://api.github.com/users/stripe/repos","events_url":"https://api.github.com/users/stripe/events{/privacy}","received_events_url":"https://api.github.com/users/stripe/received_events","type":"Organization","site_admin":false},"repo":{"id":43621635,"name":"bonsai","full_name":"stripe/bonsai","owner":{"login":"stripe","id":856813,"avatar_url":"https://avatars.githubusercontent.com/u/856813?v=3","gravatar_id":"","url":"https://api.github.com/users/stripe","html_url":"https://github.com/stripe","followers_url":"https://api.github.com/users/stripe/followers","following_url":"https://api.github.com/users/stripe/following{/other_user}","gists_url":"https://api.github.com/users/stripe/gists{/gist_id}","starred_url":"https://api.github.com/users/stripe/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/stripe/subscriptions","organizations_url":"https://api.github.com/users/stripe/orgs","repos_url":"https://api.github.com/users/stripe/repos","events_url":"https://api.github.com/users/stripe/events{/privacy}","received_events_url":"https://api.github.com/users/stripe/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/stripe/bonsai","description":"Beautiful trees, without the landscaping.","fork":false,"url":"https://api.github.com/repos/stripe/bonsai","forks_url":"https://api.github.com/repos/stripe/bonsai/forks","keys_url":"https://api.github.com/repos/stripe/bonsai/keys{/key_id}","collaborators_url":"https://api.github.com/repos/stripe/bonsai/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/stripe/bonsai/teams","hooks_url":"https://api.github.com/repos/stripe/bonsai/hooks","issue_events_url":"https://api.github.com/repos/stripe/bonsai/issues/events{/number}","events_url":"https://api.github.com/repos/stripe/bonsai/events","assignees_url":"https://api.github.com/repos/stripe/bonsai/assignees{/user}","branches_url":"https://api.github.com/repos/stripe/bonsai/branches{/branch}","tags_url":"https://api.github.com/repos/stripe/bonsai/tags","blobs_url":"https://api.github.com/repos/stripe/bonsai/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/stripe/bonsai/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/stripe/bonsai/git/refs{/sha}","trees_url":"https://api.github.com/repos/stripe/bonsai/git/trees{/sha}","statuses_url":"https://api.github.com/repos/stripe/bonsai/statuses/{sha}","languages_url":"https://api.github.com/repos/stripe/bonsai/languages","stargazers_url":"https://api.github.com/repos/stripe/bonsai/stargazers","contributors_url":"https://api.github.com/repos/stripe/bonsai/contributors","subscribers_url":"https://api.github.com/repos/stripe/bonsai/subscribers","subscription_url":"https://api.github.com/repos/stripe/bonsai/subscription","commits_url":"https://api.github.com/repos/stripe/bonsai/commits{/sha}","git_commits_url":"https://api.github.com/repos/stripe/bonsai/git/commits{/sha}","comments_url":"https://api.github.com/repos/stripe/bonsai/comments{/number}","issue_comment_url":"https://api.github.com/repos/stripe/bonsai/issues/comments{/number}","contents_url":"https://api.github.com/repos/stripe/bonsai/contents/{+path}","compare_url":"https://api.github.com/repos/stripe/bonsai/compare/{base}...{head}","merges_url":"https://api.github.com/repos/stripe/bonsai/merges","archive_url":"https://api.github.com/repos/stripe/bonsai/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/stripe/bonsai/downloads","issues_url":"https://api.github.com/repos/stripe/bonsai/issues{/number}","pulls_url":"https://api.github.com/repos/stripe/bonsai/pulls{/number}","milestones_url":"https://api.github.com/repos/stripe/bonsai/milestones{/number}","notifications_url":"https://api.github.com/repos/stripe/bonsai/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/stripe/bonsai/labels{/name}","releases_url":"https://api.github.com/repos/stripe/bonsai/releases{/id}","deployments_url":"https://api.github.com/repos/stripe/bonsai/deployments","created_at":"2015-10-04T01:54:37Z","updated_at":"2016-02-16T00:25:31Z","pushed_at":"2016-03-21T15:33:50Z","git_url":"git://github.com/stripe/bonsai.git","ssh_url":"git@github.com:stripe/bonsai.git","clone_url":"https://github.com/stripe/bonsai.git","svn_url":"https://github.com/stripe/bonsai","homepage":null,"size":63,"stargazers_count":6,"watchers_count":6,"language":"Scala","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":2,"mirror_url":null,"open_issues_count":4,"forks":2,"open_issues":4,"watchers":6,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/stripe/bonsai/pulls/12"},"html":{"href":"https://github.com/stripe/bonsai/pull/12"},"issue":{"href":"https://api.github.com/repos/stripe/bonsai/issues/12"},"comments":{"href":"https://api.github.com/repos/stripe/bonsai/issues/12/comments"},"review_comments":{"href":"https://api.github.com/repos/stripe/bonsai/pulls/12/comments"},"review_comment":{"href":"https://api.github.com/repos/stripe/bonsai/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/stripe/bonsai/pulls/12/commits"},"statuses":{"href":"https://api.github.com/repos/stripe/bonsai/statuses/ea14e284a43adbdf194c8f4530a3188d2c4dc265"}}}}