{"action":"created","comment":{"url":"https://api.github.com/repos/cgizmo/LPSolver/pulls/comments/30463981","id":30463981,"diff_hunk":"@@ -0,0 +1,68 @@\n+package fr.enslyon.DivisionRing;\n+\n+/**\n+ * Created by quentin on 14/04/15.\n+ */\n+public class RationalNumber {\n+    long a; long b;\n+    public RationalNumber(long a, long b) throws ArithmeticException{\n+        this.a = this.sign(b) * a;\n+        this.b = this.sign(b) * b;\n+        if(this.b == 0) {\n+            throw new ArithmeticException();\n+        }\n+        long gcd = this.gcd(this.sign(this.a) * this.a, this.b);\n+        this.a = this.a / gcd;\n+        this.b = this.b / gcd;\n+    }\n+\n+    public RationalNumber(long x) {\n+        this.a = x;\n+        this.b = 1;\n+    }\n+\n+    public long getNominator() {\n+        return this.a;\n+    }\n+    public long getDenominator() {\n+        return this.b;\n+    }\n+\n+    public String toString() {\n+        if(this.b > 1)\n+            return String.format(\"%d/%d\", this.a, this.b);\n+        else\n+            return String.format(\"%d\", this.a);\n+    }\n+\n+    public boolean equals(Object x) {","path":"src/fr/enslyon/DivisionRing/RationalNumber.java","position":38,"original_position":38,"commit_id":"8d074a0b9f0a383e9d733b15a2cc7c0daf483505","original_commit_id":"8d074a0b9f0a383e9d733b15a2cc7c0daf483505","user":{"login":"cgizmo","id":261523,"avatar_url":"https://avatars.githubusercontent.com/u/261523?v=3","gravatar_id":"","url":"https://api.github.com/users/cgizmo","html_url":"https://github.com/cgizmo","followers_url":"https://api.github.com/users/cgizmo/followers","following_url":"https://api.github.com/users/cgizmo/following{/other_user}","gists_url":"https://api.github.com/users/cgizmo/gists{/gist_id}","starred_url":"https://api.github.com/users/cgizmo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cgizmo/subscriptions","organizations_url":"https://api.github.com/users/cgizmo/orgs","repos_url":"https://api.github.com/users/cgizmo/repos","events_url":"https://api.github.com/users/cgizmo/events{/privacy}","received_events_url":"https://api.github.com/users/cgizmo/received_events","type":"User","site_admin":false},"body":"@Override","created_at":"2015-05-16T19:51:04Z","updated_at":"2015-05-16T19:51:04Z","html_url":"https://github.com/cgizmo/LPSolver/pull/2#discussion_r30463981","pull_request_url":"https://api.github.com/repos/cgizmo/LPSolver/pulls/2","_links":{"self":{"href":"https://api.github.com/repos/cgizmo/LPSolver/pulls/comments/30463981"},"html":{"href":"https://github.com/cgizmo/LPSolver/pull/2#discussion_r30463981"},"pull_request":{"href":"https://api.github.com/repos/cgizmo/LPSolver/pulls/2"}}},"pull_request":{"url":"https://api.github.com/repos/cgizmo/LPSolver/pulls/2","id":35576005,"html_url":"https://github.com/cgizmo/LPSolver/pull/2","diff_url":"https://github.com/cgizmo/LPSolver/pull/2.diff","patch_url":"https://github.com/cgizmo/LPSolver/pull/2.patch","issue_url":"https://api.github.com/repos/cgizmo/LPSolver/issues/2","number":2,"state":"open","locked":false,"title":"CR (essai 2)","user":{"login":"cgizmo","id":261523,"avatar_url":"https://avatars.githubusercontent.com/u/261523?v=3","gravatar_id":"","url":"https://api.github.com/users/cgizmo","html_url":"https://github.com/cgizmo","followers_url":"https://api.github.com/users/cgizmo/followers","following_url":"https://api.github.com/users/cgizmo/following{/other_user}","gists_url":"https://api.github.com/users/cgizmo/gists{/gist_id}","starred_url":"https://api.github.com/users/cgizmo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cgizmo/subscriptions","organizations_url":"https://api.github.com/users/cgizmo/orgs","repos_url":"https://api.github.com/users/cgizmo/repos","events_url":"https://api.github.com/users/cgizmo/events{/privacy}","received_events_url":"https://api.github.com/users/cgizmo/received_events","type":"User","site_admin":false},"body":"","created_at":"2015-05-16T19:30:37Z","updated_at":"2015-05-16T19:51:04Z","closed_at":null,"merged_at":null,"merge_commit_sha":"97cc63a5155834d35617c9be1e897c06b6914445","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/cgizmo/LPSolver/pulls/2/commits","review_comments_url":"https://api.github.com/repos/cgizmo/LPSolver/pulls/2/comments","review_comment_url":"https://api.github.com/repos/cgizmo/LPSolver/pulls/comments{/number}","comments_url":"https://api.github.com/repos/cgizmo/LPSolver/issues/2/comments","statuses_url":"https://api.github.com/repos/cgizmo/LPSolver/statuses/8d074a0b9f0a383e9d733b15a2cc7c0daf483505","head":{"label":"cgizmo:review2","ref":"review2","sha":"8d074a0b9f0a383e9d733b15a2cc7c0daf483505","user":{"login":"cgizmo","id":261523,"avatar_url":"https://avatars.githubusercontent.com/u/261523?v=3","gravatar_id":"","url":"https://api.github.com/users/cgizmo","html_url":"https://github.com/cgizmo","followers_url":"https://api.github.com/users/cgizmo/followers","following_url":"https://api.github.com/users/cgizmo/following{/other_user}","gists_url":"https://api.github.com/users/cgizmo/gists{/gist_id}","starred_url":"https://api.github.com/users/cgizmo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cgizmo/subscriptions","organizations_url":"https://api.github.com/users/cgizmo/orgs","repos_url":"https://api.github.com/users/cgizmo/repos","events_url":"https://api.github.com/users/cgizmo/events{/privacy}","received_events_url":"https://api.github.com/users/cgizmo/received_events","type":"User","site_admin":false},"repo":{"id":35736325,"name":"LPSolver","full_name":"cgizmo/LPSolver","owner":{"login":"cgizmo","id":261523,"avatar_url":"https://avatars.githubusercontent.com/u/261523?v=3","gravatar_id":"","url":"https://api.github.com/users/cgizmo","html_url":"https://github.com/cgizmo","followers_url":"https://api.github.com/users/cgizmo/followers","following_url":"https://api.github.com/users/cgizmo/following{/other_user}","gists_url":"https://api.github.com/users/cgizmo/gists{/gist_id}","starred_url":"https://api.github.com/users/cgizmo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cgizmo/subscriptions","organizations_url":"https://api.github.com/users/cgizmo/orgs","repos_url":"https://api.github.com/users/cgizmo/repos","events_url":"https://api.github.com/users/cgizmo/events{/privacy}","received_events_url":"https://api.github.com/users/cgizmo/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/cgizmo/LPSolver","description":"An implementation of the simplex algorithm in Java","fork":true,"url":"https://api.github.com/repos/cgizmo/LPSolver","forks_url":"https://api.github.com/repos/cgizmo/LPSolver/forks","keys_url":"https://api.github.com/repos/cgizmo/LPSolver/keys{/key_id}","collaborators_url":"https://api.github.com/repos/cgizmo/LPSolver/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/cgizmo/LPSolver/teams","hooks_url":"https://api.github.com/repos/cgizmo/LPSolver/hooks","issue_events_url":"https://api.github.com/repos/cgizmo/LPSolver/issues/events{/number}","events_url":"https://api.github.com/repos/cgizmo/LPSolver/events","assignees_url":"https://api.github.com/repos/cgizmo/LPSolver/assignees{/user}","branches_url":"https://api.github.com/repos/cgizmo/LPSolver/branches{/branch}","tags_url":"https://api.github.com/repos/cgizmo/LPSolver/tags","blobs_url":"https://api.github.com/repos/cgizmo/LPSolver/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/cgizmo/LPSolver/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/cgizmo/LPSolver/git/refs{/sha}","trees_url":"https://api.github.com/repos/cgizmo/LPSolver/git/trees{/sha}","statuses_url":"https://api.github.com/repos/cgizmo/LPSolver/statuses/{sha}","languages_url":"https://api.github.com/repos/cgizmo/LPSolver/languages","stargazers_url":"https://api.github.com/repos/cgizmo/LPSolver/stargazers","contributors_url":"https://api.github.com/repos/cgizmo/LPSolver/contributors","subscribers_url":"https://api.github.com/repos/cgizmo/LPSolver/subscribers","subscription_url":"https://api.github.com/repos/cgizmo/LPSolver/subscription","commits_url":"https://api.github.com/repos/cgizmo/LPSolver/commits{/sha}","git_commits_url":"https://api.github.com/repos/cgizmo/LPSolver/git/commits{/sha}","comments_url":"https://api.github.com/repos/cgizmo/LPSolver/comments{/number}","issue_comment_url":"https://api.github.com/repos/cgizmo/LPSolver/issues/comments{/number}","contents_url":"https://api.github.com/repos/cgizmo/LPSolver/contents/{+path}","compare_url":"https://api.github.com/repos/cgizmo/LPSolver/compare/{base}...{head}","merges_url":"https://api.github.com/repos/cgizmo/LPSolver/merges","archive_url":"https://api.github.com/repos/cgizmo/LPSolver/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/cgizmo/LPSolver/downloads","issues_url":"https://api.github.com/repos/cgizmo/LPSolver/issues{/number}","pulls_url":"https://api.github.com/repos/cgizmo/LPSolver/pulls{/number}","milestones_url":"https://api.github.com/repos/cgizmo/LPSolver/milestones{/number}","notifications_url":"https://api.github.com/repos/cgizmo/LPSolver/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/cgizmo/LPSolver/labels{/name}","releases_url":"https://api.github.com/repos/cgizmo/LPSolver/releases{/id}","created_at":"2015-05-16T19:02:57Z","updated_at":"2015-05-16T19:02:57Z","pushed_at":"2015-05-16T19:30:37Z","git_url":"git://github.com/cgizmo/LPSolver.git","ssh_url":"git@github.com:cgizmo/LPSolver.git","clone_url":"https://github.com/cgizmo/LPSolver.git","svn_url":"https://github.com/cgizmo/LPSolver","homepage":"","size":4674,"stargazers_count":0,"watchers_count":0,"language":"Java","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":2,"forks":0,"open_issues":2,"watchers":0,"default_branch":"master"}},"base":{"label":"cgizmo:empty2","ref":"empty2","sha":"00233266425d8eb3465679785a5c95af7e4d57ce","user":{"login":"cgizmo","id":261523,"avatar_url":"https://avatars.githubusercontent.com/u/261523?v=3","gravatar_id":"","url":"https://api.github.com/users/cgizmo","html_url":"https://github.com/cgizmo","followers_url":"https://api.github.com/users/cgizmo/followers","following_url":"https://api.github.com/users/cgizmo/following{/other_user}","gists_url":"https://api.github.com/users/cgizmo/gists{/gist_id}","starred_url":"https://api.github.com/users/cgizmo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cgizmo/subscriptions","organizations_url":"https://api.github.com/users/cgizmo/orgs","repos_url":"https://api.github.com/users/cgizmo/repos","events_url":"https://api.github.com/users/cgizmo/events{/privacy}","received_events_url":"https://api.github.com/users/cgizmo/received_events","type":"User","site_admin":false},"repo":{"id":35736325,"name":"LPSolver","full_name":"cgizmo/LPSolver","owner":{"login":"cgizmo","id":261523,"avatar_url":"https://avatars.githubusercontent.com/u/261523?v=3","gravatar_id":"","url":"https://api.github.com/users/cgizmo","html_url":"https://github.com/cgizmo","followers_url":"https://api.github.com/users/cgizmo/followers","following_url":"https://api.github.com/users/cgizmo/following{/other_user}","gists_url":"https://api.github.com/users/cgizmo/gists{/gist_id}","starred_url":"https://api.github.com/users/cgizmo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cgizmo/subscriptions","organizations_url":"https://api.github.com/users/cgizmo/orgs","repos_url":"https://api.github.com/users/cgizmo/repos","events_url":"https://api.github.com/users/cgizmo/events{/privacy}","received_events_url":"https://api.github.com/users/cgizmo/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/cgizmo/LPSolver","description":"An implementation of the simplex algorithm in Java","fork":true,"url":"https://api.github.com/repos/cgizmo/LPSolver","forks_url":"https://api.github.com/repos/cgizmo/LPSolver/forks","keys_url":"https://api.github.com/repos/cgizmo/LPSolver/keys{/key_id}","collaborators_url":"https://api.github.com/repos/cgizmo/LPSolver/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/cgizmo/LPSolver/teams","hooks_url":"https://api.github.com/repos/cgizmo/LPSolver/hooks","issue_events_url":"https://api.github.com/repos/cgizmo/LPSolver/issues/events{/number}","events_url":"https://api.github.com/repos/cgizmo/LPSolver/events","assignees_url":"https://api.github.com/repos/cgizmo/LPSolver/assignees{/user}","branches_url":"https://api.github.com/repos/cgizmo/LPSolver/branches{/branch}","tags_url":"https://api.github.com/repos/cgizmo/LPSolver/tags","blobs_url":"https://api.github.com/repos/cgizmo/LPSolver/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/cgizmo/LPSolver/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/cgizmo/LPSolver/git/refs{/sha}","trees_url":"https://api.github.com/repos/cgizmo/LPSolver/git/trees{/sha}","statuses_url":"https://api.github.com/repos/cgizmo/LPSolver/statuses/{sha}","languages_url":"https://api.github.com/repos/cgizmo/LPSolver/languages","stargazers_url":"https://api.github.com/repos/cgizmo/LPSolver/stargazers","contributors_url":"https://api.github.com/repos/cgizmo/LPSolver/contributors","subscribers_url":"https://api.github.com/repos/cgizmo/LPSolver/subscribers","subscription_url":"https://api.github.com/repos/cgizmo/LPSolver/subscription","commits_url":"https://api.github.com/repos/cgizmo/LPSolver/commits{/sha}","git_commits_url":"https://api.github.com/repos/cgizmo/LPSolver/git/commits{/sha}","comments_url":"https://api.github.com/repos/cgizmo/LPSolver/comments{/number}","issue_comment_url":"https://api.github.com/repos/cgizmo/LPSolver/issues/comments{/number}","contents_url":"https://api.github.com/repos/cgizmo/LPSolver/contents/{+path}","compare_url":"https://api.github.com/repos/cgizmo/LPSolver/compare/{base}...{head}","merges_url":"https://api.github.com/repos/cgizmo/LPSolver/merges","archive_url":"https://api.github.com/repos/cgizmo/LPSolver/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/cgizmo/LPSolver/downloads","issues_url":"https://api.github.com/repos/cgizmo/LPSolver/issues{/number}","pulls_url":"https://api.github.com/repos/cgizmo/LPSolver/pulls{/number}","milestones_url":"https://api.github.com/repos/cgizmo/LPSolver/milestones{/number}","notifications_url":"https://api.github.com/repos/cgizmo/LPSolver/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/cgizmo/LPSolver/labels{/name}","releases_url":"https://api.github.com/repos/cgizmo/LPSolver/releases{/id}","created_at":"2015-05-16T19:02:57Z","updated_at":"2015-05-16T19:02:57Z","pushed_at":"2015-05-16T19:30:37Z","git_url":"git://github.com/cgizmo/LPSolver.git","ssh_url":"git@github.com:cgizmo/LPSolver.git","clone_url":"https://github.com/cgizmo/LPSolver.git","svn_url":"https://github.com/cgizmo/LPSolver","homepage":"","size":4674,"stargazers_count":0,"watchers_count":0,"language":"Java","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":2,"forks":0,"open_issues":2,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/cgizmo/LPSolver/pulls/2"},"html":{"href":"https://github.com/cgizmo/LPSolver/pull/2"},"issue":{"href":"https://api.github.com/repos/cgizmo/LPSolver/issues/2"},"comments":{"href":"https://api.github.com/repos/cgizmo/LPSolver/issues/2/comments"},"review_comments":{"href":"https://api.github.com/repos/cgizmo/LPSolver/pulls/2/comments"},"review_comment":{"href":"https://api.github.com/repos/cgizmo/LPSolver/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/cgizmo/LPSolver/pulls/2/commits"},"statuses":{"href":"https://api.github.com/repos/cgizmo/LPSolver/statuses/8d074a0b9f0a383e9d733b15a2cc7c0daf483505"}}}}