{"action":"created","comment":{"url":"https://api.github.com/repos/non/spire/pulls/comments/42622468","id":42622468,"diff_hunk":"@@ -0,0 +1,687 @@\n+package spire.math.extras.interval\n+\n+import java.util.Arrays\n+\n+import spire.algebra.{Bool, Eq, Order}\n+import spire.math.interval._\n+import spire.math.{Interval, Rational}\n+\n+import scala.annotation.tailrec\n+import scala.language.implicitConversions\n+import scala.reflect.ClassTag\n+\n+final class IntervalSeq[T] private (\n+    val belowAll: Boolean,\n+    private val values: Array[T],\n+    private val kinds: Array[Byte],\n+    private implicit val order: Order[T]) extends IntervalSet[T, IntervalSeq[T]] { lhs =>\n+\n+  import IntervalSeq._\n+\n+  private def binarySearch(key: T): Int = {","path":"extras/src/main/scala/spire/math/extras/interval/IntervalSeq.scala","position":21,"original_position":21,"commit_id":"04c445e0dce2709f619f499fcd0bdaa0ce103dc8","original_commit_id":"04c445e0dce2709f619f499fcd0bdaa0ce103dc8","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":"Could you have used `spire.math.Searching.search` here?","created_at":"2015-10-21T13:30:16Z","updated_at":"2015-10-21T13:30:16Z","html_url":"https://github.com/non/spire/pull/526#discussion_r42622468","pull_request_url":"https://api.github.com/repos/non/spire/pulls/526","_links":{"self":{"href":"https://api.github.com/repos/non/spire/pulls/comments/42622468"},"html":{"href":"https://github.com/non/spire/pull/526#discussion_r42622468"},"pull_request":{"href":"https://api.github.com/repos/non/spire/pulls/526"}}},"pull_request":{"url":"https://api.github.com/repos/non/spire/pulls/526","id":48254806,"html_url":"https://github.com/non/spire/pull/526","diff_url":"https://github.com/non/spire/pull/526.diff","patch_url":"https://github.com/non/spire/pull/526.patch","issue_url":"https://api.github.com/repos/non/spire/issues/526","number":526,"state":"open","locked":false,"title":"Add IntervalSeq and IntervalTrie to spire-extras","user":{"login":"rklaehn","id":248257,"avatar_url":"https://avatars.githubusercontent.com/u/248257?v=3","gravatar_id":"","url":"https://api.github.com/users/rklaehn","html_url":"https://github.com/rklaehn","followers_url":"https://api.github.com/users/rklaehn/followers","following_url":"https://api.github.com/users/rklaehn/following{/other_user}","gists_url":"https://api.github.com/users/rklaehn/gists{/gist_id}","starred_url":"https://api.github.com/users/rklaehn/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rklaehn/subscriptions","organizations_url":"https://api.github.com/users/rklaehn/orgs","repos_url":"https://api.github.com/users/rklaehn/repos","events_url":"https://api.github.com/users/rklaehn/events{/privacy}","received_events_url":"https://api.github.com/users/rklaehn/received_events","type":"User","site_admin":false},"body":"Adds IntervalSeq and IntervalTrie to spire-extras\r\n\r\nIntervalSeq[T] just requires an order instance, whereas IntervalTrie[T] only works for types that can be converted to long while preserving order.\r\n\r\nAlso moves FixedPoint and FixedScale to spire.math.extras","created_at":"2015-10-20T20:41:19Z","updated_at":"2015-10-21T13:30:16Z","closed_at":null,"merged_at":null,"merge_commit_sha":"e1ac9b25ad020bbf08b11a89bba3ab8c839c9c8c","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/non/spire/pulls/526/commits","review_comments_url":"https://api.github.com/repos/non/spire/pulls/526/comments","review_comment_url":"https://api.github.com/repos/non/spire/pulls/comments{/number}","comments_url":"https://api.github.com/repos/non/spire/issues/526/comments","statuses_url":"https://api.github.com/repos/non/spire/statuses/04c445e0dce2709f619f499fcd0bdaa0ce103dc8","head":{"label":"rklaehn:feature/intervalset","ref":"feature/intervalset","sha":"04c445e0dce2709f619f499fcd0bdaa0ce103dc8","user":{"login":"rklaehn","id":248257,"avatar_url":"https://avatars.githubusercontent.com/u/248257?v=3","gravatar_id":"","url":"https://api.github.com/users/rklaehn","html_url":"https://github.com/rklaehn","followers_url":"https://api.github.com/users/rklaehn/followers","following_url":"https://api.github.com/users/rklaehn/following{/other_user}","gists_url":"https://api.github.com/users/rklaehn/gists{/gist_id}","starred_url":"https://api.github.com/users/rklaehn/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rklaehn/subscriptions","organizations_url":"https://api.github.com/users/rklaehn/orgs","repos_url":"https://api.github.com/users/rklaehn/repos","events_url":"https://api.github.com/users/rklaehn/events{/privacy}","received_events_url":"https://api.github.com/users/rklaehn/received_events","type":"User","site_admin":false},"repo":{"id":28088340,"name":"spire","full_name":"rklaehn/spire","owner":{"login":"rklaehn","id":248257,"avatar_url":"https://avatars.githubusercontent.com/u/248257?v=3","gravatar_id":"","url":"https://api.github.com/users/rklaehn","html_url":"https://github.com/rklaehn","followers_url":"https://api.github.com/users/rklaehn/followers","following_url":"https://api.github.com/users/rklaehn/following{/other_user}","gists_url":"https://api.github.com/users/rklaehn/gists{/gist_id}","starred_url":"https://api.github.com/users/rklaehn/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rklaehn/subscriptions","organizations_url":"https://api.github.com/users/rklaehn/orgs","repos_url":"https://api.github.com/users/rklaehn/repos","events_url":"https://api.github.com/users/rklaehn/events{/privacy}","received_events_url":"https://api.github.com/users/rklaehn/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/rklaehn/spire","description":"Powerful new number types and numeric abstractions for Scala.","fork":true,"url":"https://api.github.com/repos/rklaehn/spire","forks_url":"https://api.github.com/repos/rklaehn/spire/forks","keys_url":"https://api.github.com/repos/rklaehn/spire/keys{/key_id}","collaborators_url":"https://api.github.com/repos/rklaehn/spire/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/rklaehn/spire/teams","hooks_url":"https://api.github.com/repos/rklaehn/spire/hooks","issue_events_url":"https://api.github.com/repos/rklaehn/spire/issues/events{/number}","events_url":"https://api.github.com/repos/rklaehn/spire/events","assignees_url":"https://api.github.com/repos/rklaehn/spire/assignees{/user}","branches_url":"https://api.github.com/repos/rklaehn/spire/branches{/branch}","tags_url":"https://api.github.com/repos/rklaehn/spire/tags","blobs_url":"https://api.github.com/repos/rklaehn/spire/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/rklaehn/spire/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/rklaehn/spire/git/refs{/sha}","trees_url":"https://api.github.com/repos/rklaehn/spire/git/trees{/sha}","statuses_url":"https://api.github.com/repos/rklaehn/spire/statuses/{sha}","languages_url":"https://api.github.com/repos/rklaehn/spire/languages","stargazers_url":"https://api.github.com/repos/rklaehn/spire/stargazers","contributors_url":"https://api.github.com/repos/rklaehn/spire/contributors","subscribers_url":"https://api.github.com/repos/rklaehn/spire/subscribers","subscription_url":"https://api.github.com/repos/rklaehn/spire/subscription","commits_url":"https://api.github.com/repos/rklaehn/spire/commits{/sha}","git_commits_url":"https://api.github.com/repos/rklaehn/spire/git/commits{/sha}","comments_url":"https://api.github.com/repos/rklaehn/spire/comments{/number}","issue_comment_url":"https://api.github.com/repos/rklaehn/spire/issues/comments{/number}","contents_url":"https://api.github.com/repos/rklaehn/spire/contents/{+path}","compare_url":"https://api.github.com/repos/rklaehn/spire/compare/{base}...{head}","merges_url":"https://api.github.com/repos/rklaehn/spire/merges","archive_url":"https://api.github.com/repos/rklaehn/spire/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/rklaehn/spire/downloads","issues_url":"https://api.github.com/repos/rklaehn/spire/issues{/number}","pulls_url":"https://api.github.com/repos/rklaehn/spire/pulls{/number}","milestones_url":"https://api.github.com/repos/rklaehn/spire/milestones{/number}","notifications_url":"https://api.github.com/repos/rklaehn/spire/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/rklaehn/spire/labels{/name}","releases_url":"https://api.github.com/repos/rklaehn/spire/releases{/id}","created_at":"2014-12-16T13:32:50Z","updated_at":"2015-03-18T16:19:25Z","pushed_at":"2015-10-21T07:18:22Z","git_url":"git://github.com/rklaehn/spire.git","ssh_url":"git@github.com:rklaehn/spire.git","clone_url":"https://github.com/rklaehn/spire.git","svn_url":"https://github.com/rklaehn/spire","homepage":"","size":5272,"stargazers_count":0,"watchers_count":0,"language":"Scala","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":"non:master","ref":"master","sha":"0bb2a2790c096feb8b17fec9794dc8209e160574","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},"repo":{"id":2705076,"name":"spire","full_name":"non/spire","owner":{"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},"private":false,"html_url":"https://github.com/non/spire","description":"Powerful new number types and numeric abstractions for Scala.","fork":false,"url":"https://api.github.com/repos/non/spire","forks_url":"https://api.github.com/repos/non/spire/forks","keys_url":"https://api.github.com/repos/non/spire/keys{/key_id}","collaborators_url":"https://api.github.com/repos/non/spire/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/non/spire/teams","hooks_url":"https://api.github.com/repos/non/spire/hooks","issue_events_url":"https://api.github.com/repos/non/spire/issues/events{/number}","events_url":"https://api.github.com/repos/non/spire/events","assignees_url":"https://api.github.com/repos/non/spire/assignees{/user}","branches_url":"https://api.github.com/repos/non/spire/branches{/branch}","tags_url":"https://api.github.com/repos/non/spire/tags","blobs_url":"https://api.github.com/repos/non/spire/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/non/spire/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/non/spire/git/refs{/sha}","trees_url":"https://api.github.com/repos/non/spire/git/trees{/sha}","statuses_url":"https://api.github.com/repos/non/spire/statuses/{sha}","languages_url":"https://api.github.com/repos/non/spire/languages","stargazers_url":"https://api.github.com/repos/non/spire/stargazers","contributors_url":"https://api.github.com/repos/non/spire/contributors","subscribers_url":"https://api.github.com/repos/non/spire/subscribers","subscription_url":"https://api.github.com/repos/non/spire/subscription","commits_url":"https://api.github.com/repos/non/spire/commits{/sha}","git_commits_url":"https://api.github.com/repos/non/spire/git/commits{/sha}","comments_url":"https://api.github.com/repos/non/spire/comments{/number}","issue_comment_url":"https://api.github.com/repos/non/spire/issues/comments{/number}","contents_url":"https://api.github.com/repos/non/spire/contents/{+path}","compare_url":"https://api.github.com/repos/non/spire/compare/{base}...{head}","merges_url":"https://api.github.com/repos/non/spire/merges","archive_url":"https://api.github.com/repos/non/spire/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/non/spire/downloads","issues_url":"https://api.github.com/repos/non/spire/issues{/number}","pulls_url":"https://api.github.com/repos/non/spire/pulls{/number}","milestones_url":"https://api.github.com/repos/non/spire/milestones{/number}","notifications_url":"https://api.github.com/repos/non/spire/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/non/spire/labels{/name}","releases_url":"https://api.github.com/repos/non/spire/releases{/id}","created_at":"2011-11-03T20:52:53Z","updated_at":"2015-10-20T01:35:14Z","pushed_at":"2015-10-21T07:18:22Z","git_url":"git://github.com/non/spire.git","ssh_url":"git@github.com:non/spire.git","clone_url":"https://github.com/non/spire.git","svn_url":"https://github.com/non/spire","homepage":"","size":8213,"stargazers_count":803,"watchers_count":803,"language":"Scala","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":102,"mirror_url":null,"open_issues_count":142,"forks":102,"open_issues":142,"watchers":803,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/non/spire/pulls/526"},"html":{"href":"https://github.com/non/spire/pull/526"},"issue":{"href":"https://api.github.com/repos/non/spire/issues/526"},"comments":{"href":"https://api.github.com/repos/non/spire/issues/526/comments"},"review_comments":{"href":"https://api.github.com/repos/non/spire/pulls/526/comments"},"review_comment":{"href":"https://api.github.com/repos/non/spire/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/non/spire/pulls/526/commits"},"statuses":{"href":"https://api.github.com/repos/non/spire/statuses/04c445e0dce2709f619f499fcd0bdaa0ce103dc8"}}}}