{"action":"created","comment":{"url":"https://api.github.com/repos/scalacenter/scaladex/pulls/comments/71036514","id":71036514,"diff_hunk":"@@ -1,79 +1,82 @@\n package ch.epfl.scala.index.model.release\n \n /**\n- * Semantic version, separation of possible combinations\n- * @param major the major version number\n- * @param minor the minor version number\n- * @param patch the path version number\n- * @param preRelease the pre release name\n- * @param metadata the release metadata\n- */\n+  * Semantic version, separation of possible combinations\n+  * @param major the major version number\n+  * @param minor the minor version number\n+  * @param patch the path version number\n+  * @param preRelease the pre release name\n+  * @param metadata the release metadata\n+  */\n case class SemanticVersion(\n-  major: Long,\n-  minor: Long = 0,\n-  patch: Option[Long] = None,\n-  preRelease: Option[PreRelease] = None,\n-  metadata: Option[String] = None\n+    major: Long,\n+    minor: Long = 0,\n+    patch: Option[Long] = None,\n+    preRelease: Option[PreRelease] = None,\n+    metadata: Option[String] = None\n ) {\n \n   /**\n-   * display correct and nice version as string eg: 1.0.0 | 1.2.1 | 1.2 | 1.2.0-RC1\n-   * @return\n-   */\n+    * display correct and nice version as string eg: 1.0.0 | 1.2.1 | 1.2 | 1.2.0-RC1\n+    * @return\n+    */\n   override def toString = {\n \n     val patchPart = patch.map(\".\" + _).getOrElse(\"\")\n \n-    val preReleasePart = preRelease.map{\n+    val preReleasePart = preRelease.map {\n \n       case Milestone(d) => \"M\" + d.toString\n       case ReleaseCandidate(d) => \"RC\" + d.toString\n       case OtherPreRelease(v) => v.toString\n     }.map(\"-\" + _).getOrElse(\"\")\n \n     val metadataPart = metadata.map(\"+\" + _).getOrElse(\"\")\n-    \n+\n     major + \".\" + minor + patchPart + preReleasePart + metadataPart\n   }\n }\n \n object SemanticVersion {\n \n   /**\n-   * special ordering for versions\n-   * @return\n-   */\n+    * special ordering for versions\n+    * @return\n+    */\n   implicit def ordering = new Ordering[SemanticVersion] {\n     val LT = -1\n-    val GT =  1\n-    val EQ =  0\n-    \n+    val GT = 1\n+    val EQ = 0\n+\n     val lcmp = implicitly[Ordering[Long]]\n     val scmp = implicitly[Ordering[String]]\n     val cmp = implicitly[Ordering[(Long, Long, Option[Long])]]\n \n-    def compare(v1: SemanticVersion, v2: SemanticVersion): Int = {     \n+    def compare(v1: SemanticVersion, v2: SemanticVersion): Int = {\n       def tupled(v: SemanticVersion) = {\n         import v._\n         (major, minor, patch)\n       }\n-      \n+\n       val tv1 = tupled(v1)\n       val tv2 = tupled(v2)\n-      \n+\n       def preCmp(pr1: Option[PreRelease], pr2: Option[PreRelease]): Int = {\n         (pr1, pr2) match {\n-          case (None, None)                                               => EQ","path":"model/src/main/scala/ch.epfl.scala.index.model/release/SemanticVersion.scala","position":95,"original_position":92,"commit_id":"f52ef8f2a4f7e3c1aceab53b17ac71ea3f66e693","original_commit_id":"91e6b4ff0a22c966eb661dea09ae9c239b4ea974","user":{"login":"jvican","id":2462974,"avatar_url":"https://avatars.githubusercontent.com/u/2462974?v=3","gravatar_id":"","url":"https://api.github.com/users/jvican","html_url":"https://github.com/jvican","followers_url":"https://api.github.com/users/jvican/followers","following_url":"https://api.github.com/users/jvican/following{/other_user}","gists_url":"https://api.github.com/users/jvican/gists{/gist_id}","starred_url":"https://api.github.com/users/jvican/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jvican/subscriptions","organizations_url":"https://api.github.com/users/jvican/orgs","repos_url":"https://api.github.com/users/jvican/repos","events_url":"https://api.github.com/users/jvican/events{/privacy}","received_events_url":"https://api.github.com/users/jvican/received_events","type":"User","site_admin":false},"body":"Yes, I'll look into it on Monday.","created_at":"2016-07-15T20:31:59Z","updated_at":"2016-07-15T20:31:59Z","html_url":"https://github.com/scalacenter/scaladex/pull/190#discussion_r71036514","pull_request_url":"https://api.github.com/repos/scalacenter/scaladex/pulls/190","_links":{"self":{"href":"https://api.github.com/repos/scalacenter/scaladex/pulls/comments/71036514"},"html":{"href":"https://github.com/scalacenter/scaladex/pull/190#discussion_r71036514"},"pull_request":{"href":"https://api.github.com/repos/scalacenter/scaladex/pulls/190"}}},"pull_request":{"url":"https://api.github.com/repos/scalacenter/scaladex/pulls/190","id":77667000,"html_url":"https://github.com/scalacenter/scaladex/pull/190","diff_url":"https://github.com/scalacenter/scaladex/pull/190.diff","patch_url":"https://github.com/scalacenter/scaladex/pull/190.patch","issue_url":"https://api.github.com/repos/scalacenter/scaladex/issues/190","number":190,"state":"open","locked":false,"title":"Format sources with scalafmt #188","user":{"login":"jvican","id":2462974,"avatar_url":"https://avatars.githubusercontent.com/u/2462974?v=3","gravatar_id":"","url":"https://api.github.com/users/jvican","html_url":"https://github.com/jvican","followers_url":"https://api.github.com/users/jvican/followers","following_url":"https://api.github.com/users/jvican/following{/other_user}","gists_url":"https://api.github.com/users/jvican/gists{/gist_id}","starred_url":"https://api.github.com/users/jvican/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jvican/subscriptions","organizations_url":"https://api.github.com/users/jvican/orgs","repos_url":"https://api.github.com/users/jvican/repos","events_url":"https://api.github.com/users/jvican/events{/privacy}","received_events_url":"https://api.github.com/users/jvican/received_events","type":"User","site_admin":false},"body":null,"created_at":"2016-07-15T19:37:43Z","updated_at":"2016-07-15T20:31:59Z","closed_at":null,"merged_at":null,"merge_commit_sha":null,"assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/scalacenter/scaladex/pulls/190/commits","review_comments_url":"https://api.github.com/repos/scalacenter/scaladex/pulls/190/comments","review_comment_url":"https://api.github.com/repos/scalacenter/scaladex/pulls/comments{/number}","comments_url":"https://api.github.com/repos/scalacenter/scaladex/issues/190/comments","statuses_url":"https://api.github.com/repos/scalacenter/scaladex/statuses/f52ef8f2a4f7e3c1aceab53b17ac71ea3f66e693","head":{"label":"scalacenter:scalafmt","ref":"scalafmt","sha":"f52ef8f2a4f7e3c1aceab53b17ac71ea3f66e693","user":{"login":"scalacenter","id":16118980,"avatar_url":"https://avatars.githubusercontent.com/u/16118980?v=3","gravatar_id":"","url":"https://api.github.com/users/scalacenter","html_url":"https://github.com/scalacenter","followers_url":"https://api.github.com/users/scalacenter/followers","following_url":"https://api.github.com/users/scalacenter/following{/other_user}","gists_url":"https://api.github.com/users/scalacenter/gists{/gist_id}","starred_url":"https://api.github.com/users/scalacenter/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/scalacenter/subscriptions","organizations_url":"https://api.github.com/users/scalacenter/orgs","repos_url":"https://api.github.com/users/scalacenter/repos","events_url":"https://api.github.com/users/scalacenter/events{/privacy}","received_events_url":"https://api.github.com/users/scalacenter/received_events","type":"Organization","site_admin":false},"repo":{"id":57165621,"name":"scaladex","full_name":"scalacenter/scaladex","owner":{"login":"scalacenter","id":16118980,"avatar_url":"https://avatars.githubusercontent.com/u/16118980?v=3","gravatar_id":"","url":"https://api.github.com/users/scalacenter","html_url":"https://github.com/scalacenter","followers_url":"https://api.github.com/users/scalacenter/followers","following_url":"https://api.github.com/users/scalacenter/following{/other_user}","gists_url":"https://api.github.com/users/scalacenter/gists{/gist_id}","starred_url":"https://api.github.com/users/scalacenter/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/scalacenter/subscriptions","organizations_url":"https://api.github.com/users/scalacenter/orgs","repos_url":"https://api.github.com/users/scalacenter/repos","events_url":"https://api.github.com/users/scalacenter/events{/privacy}","received_events_url":"https://api.github.com/users/scalacenter/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/scalacenter/scaladex","description":"The Scala Package Index","fork":false,"url":"https://api.github.com/repos/scalacenter/scaladex","forks_url":"https://api.github.com/repos/scalacenter/scaladex/forks","keys_url":"https://api.github.com/repos/scalacenter/scaladex/keys{/key_id}","collaborators_url":"https://api.github.com/repos/scalacenter/scaladex/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/scalacenter/scaladex/teams","hooks_url":"https://api.github.com/repos/scalacenter/scaladex/hooks","issue_events_url":"https://api.github.com/repos/scalacenter/scaladex/issues/events{/number}","events_url":"https://api.github.com/repos/scalacenter/scaladex/events","assignees_url":"https://api.github.com/repos/scalacenter/scaladex/assignees{/user}","branches_url":"https://api.github.com/repos/scalacenter/scaladex/branches{/branch}","tags_url":"https://api.github.com/repos/scalacenter/scaladex/tags","blobs_url":"https://api.github.com/repos/scalacenter/scaladex/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/scalacenter/scaladex/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/scalacenter/scaladex/git/refs{/sha}","trees_url":"https://api.github.com/repos/scalacenter/scaladex/git/trees{/sha}","statuses_url":"https://api.github.com/repos/scalacenter/scaladex/statuses/{sha}","languages_url":"https://api.github.com/repos/scalacenter/scaladex/languages","stargazers_url":"https://api.github.com/repos/scalacenter/scaladex/stargazers","contributors_url":"https://api.github.com/repos/scalacenter/scaladex/contributors","subscribers_url":"https://api.github.com/repos/scalacenter/scaladex/subscribers","subscription_url":"https://api.github.com/repos/scalacenter/scaladex/subscription","commits_url":"https://api.github.com/repos/scalacenter/scaladex/commits{/sha}","git_commits_url":"https://api.github.com/repos/scalacenter/scaladex/git/commits{/sha}","comments_url":"https://api.github.com/repos/scalacenter/scaladex/comments{/number}","issue_comment_url":"https://api.github.com/repos/scalacenter/scaladex/issues/comments{/number}","contents_url":"https://api.github.com/repos/scalacenter/scaladex/contents/{+path}","compare_url":"https://api.github.com/repos/scalacenter/scaladex/compare/{base}...{head}","merges_url":"https://api.github.com/repos/scalacenter/scaladex/merges","archive_url":"https://api.github.com/repos/scalacenter/scaladex/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/scalacenter/scaladex/downloads","issues_url":"https://api.github.com/repos/scalacenter/scaladex/issues{/number}","pulls_url":"https://api.github.com/repos/scalacenter/scaladex/pulls{/number}","milestones_url":"https://api.github.com/repos/scalacenter/scaladex/milestones{/number}","notifications_url":"https://api.github.com/repos/scalacenter/scaladex/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/scalacenter/scaladex/labels{/name}","releases_url":"https://api.github.com/repos/scalacenter/scaladex/releases{/id}","deployments_url":"https://api.github.com/repos/scalacenter/scaladex/deployments","created_at":"2016-04-26T22:16:47Z","updated_at":"2016-07-13T07:46:25Z","pushed_at":"2016-07-15T20:28:36Z","git_url":"git://github.com/scalacenter/scaladex.git","ssh_url":"git@github.com:scalacenter/scaladex.git","clone_url":"https://github.com/scalacenter/scaladex.git","svn_url":"https://github.com/scalacenter/scaladex","homepage":"https://index.scala-lang.org","size":1038,"stargazers_count":40,"watchers_count":40,"language":"Scala","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":3,"mirror_url":null,"open_issues_count":38,"forks":3,"open_issues":38,"watchers":40,"default_branch":"master"}},"base":{"label":"scalacenter:master","ref":"master","sha":"37bee1748922a7f734e5c96d6437e259847bc67c","user":{"login":"scalacenter","id":16118980,"avatar_url":"https://avatars.githubusercontent.com/u/16118980?v=3","gravatar_id":"","url":"https://api.github.com/users/scalacenter","html_url":"https://github.com/scalacenter","followers_url":"https://api.github.com/users/scalacenter/followers","following_url":"https://api.github.com/users/scalacenter/following{/other_user}","gists_url":"https://api.github.com/users/scalacenter/gists{/gist_id}","starred_url":"https://api.github.com/users/scalacenter/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/scalacenter/subscriptions","organizations_url":"https://api.github.com/users/scalacenter/orgs","repos_url":"https://api.github.com/users/scalacenter/repos","events_url":"https://api.github.com/users/scalacenter/events{/privacy}","received_events_url":"https://api.github.com/users/scalacenter/received_events","type":"Organization","site_admin":false},"repo":{"id":57165621,"name":"scaladex","full_name":"scalacenter/scaladex","owner":{"login":"scalacenter","id":16118980,"avatar_url":"https://avatars.githubusercontent.com/u/16118980?v=3","gravatar_id":"","url":"https://api.github.com/users/scalacenter","html_url":"https://github.com/scalacenter","followers_url":"https://api.github.com/users/scalacenter/followers","following_url":"https://api.github.com/users/scalacenter/following{/other_user}","gists_url":"https://api.github.com/users/scalacenter/gists{/gist_id}","starred_url":"https://api.github.com/users/scalacenter/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/scalacenter/subscriptions","organizations_url":"https://api.github.com/users/scalacenter/orgs","repos_url":"https://api.github.com/users/scalacenter/repos","events_url":"https://api.github.com/users/scalacenter/events{/privacy}","received_events_url":"https://api.github.com/users/scalacenter/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/scalacenter/scaladex","description":"The Scala Package Index","fork":false,"url":"https://api.github.com/repos/scalacenter/scaladex","forks_url":"https://api.github.com/repos/scalacenter/scaladex/forks","keys_url":"https://api.github.com/repos/scalacenter/scaladex/keys{/key_id}","collaborators_url":"https://api.github.com/repos/scalacenter/scaladex/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/scalacenter/scaladex/teams","hooks_url":"https://api.github.com/repos/scalacenter/scaladex/hooks","issue_events_url":"https://api.github.com/repos/scalacenter/scaladex/issues/events{/number}","events_url":"https://api.github.com/repos/scalacenter/scaladex/events","assignees_url":"https://api.github.com/repos/scalacenter/scaladex/assignees{/user}","branches_url":"https://api.github.com/repos/scalacenter/scaladex/branches{/branch}","tags_url":"https://api.github.com/repos/scalacenter/scaladex/tags","blobs_url":"https://api.github.com/repos/scalacenter/scaladex/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/scalacenter/scaladex/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/scalacenter/scaladex/git/refs{/sha}","trees_url":"https://api.github.com/repos/scalacenter/scaladex/git/trees{/sha}","statuses_url":"https://api.github.com/repos/scalacenter/scaladex/statuses/{sha}","languages_url":"https://api.github.com/repos/scalacenter/scaladex/languages","stargazers_url":"https://api.github.com/repos/scalacenter/scaladex/stargazers","contributors_url":"https://api.github.com/repos/scalacenter/scaladex/contributors","subscribers_url":"https://api.github.com/repos/scalacenter/scaladex/subscribers","subscription_url":"https://api.github.com/repos/scalacenter/scaladex/subscription","commits_url":"https://api.github.com/repos/scalacenter/scaladex/commits{/sha}","git_commits_url":"https://api.github.com/repos/scalacenter/scaladex/git/commits{/sha}","comments_url":"https://api.github.com/repos/scalacenter/scaladex/comments{/number}","issue_comment_url":"https://api.github.com/repos/scalacenter/scaladex/issues/comments{/number}","contents_url":"https://api.github.com/repos/scalacenter/scaladex/contents/{+path}","compare_url":"https://api.github.com/repos/scalacenter/scaladex/compare/{base}...{head}","merges_url":"https://api.github.com/repos/scalacenter/scaladex/merges","archive_url":"https://api.github.com/repos/scalacenter/scaladex/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/scalacenter/scaladex/downloads","issues_url":"https://api.github.com/repos/scalacenter/scaladex/issues{/number}","pulls_url":"https://api.github.com/repos/scalacenter/scaladex/pulls{/number}","milestones_url":"https://api.github.com/repos/scalacenter/scaladex/milestones{/number}","notifications_url":"https://api.github.com/repos/scalacenter/scaladex/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/scalacenter/scaladex/labels{/name}","releases_url":"https://api.github.com/repos/scalacenter/scaladex/releases{/id}","deployments_url":"https://api.github.com/repos/scalacenter/scaladex/deployments","created_at":"2016-04-26T22:16:47Z","updated_at":"2016-07-13T07:46:25Z","pushed_at":"2016-07-15T20:28:36Z","git_url":"git://github.com/scalacenter/scaladex.git","ssh_url":"git@github.com:scalacenter/scaladex.git","clone_url":"https://github.com/scalacenter/scaladex.git","svn_url":"https://github.com/scalacenter/scaladex","homepage":"https://index.scala-lang.org","size":1038,"stargazers_count":40,"watchers_count":40,"language":"Scala","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":3,"mirror_url":null,"open_issues_count":38,"forks":3,"open_issues":38,"watchers":40,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/scalacenter/scaladex/pulls/190"},"html":{"href":"https://github.com/scalacenter/scaladex/pull/190"},"issue":{"href":"https://api.github.com/repos/scalacenter/scaladex/issues/190"},"comments":{"href":"https://api.github.com/repos/scalacenter/scaladex/issues/190/comments"},"review_comments":{"href":"https://api.github.com/repos/scalacenter/scaladex/pulls/190/comments"},"review_comment":{"href":"https://api.github.com/repos/scalacenter/scaladex/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/scalacenter/scaladex/pulls/190/commits"},"statuses":{"href":"https://api.github.com/repos/scalacenter/scaladex/statuses/f52ef8f2a4f7e3c1aceab53b17ac71ea3f66e693"}}}}
{"actor":{"display_login":"jvican"}}