{"action":"created","comment":{"url":"https://api.github.com/repos/DiUS/java-faker/pulls/comments/59965850","id":59965850,"diff_hunk":"@@ -0,0 +1,67 @@\n+package com.github.javafaker;\n+\n+import com.github.javafaker.service.RandomService;\n+\n+import java.math.BigDecimal;\n+\n+public class Number {\n+\n+    private final RandomService randomService;\n+\n+    public Number(RandomService randomService) {\n+        this.randomService = randomService;\n+    }\n+\n+    /**\n+     * Returns a random number between 0 and 9\n+     */\n+    public int randomDigit() {\n+        return randomService.nextInt(9);\n+    }\n+\n+    /**\n+     * Returns a random number between 1 and 9\n+     */\n+    public int randomDigitNotNull() {","path":"src/main/java/com/github/javafaker/Number.java","position":25,"original_position":25,"commit_id":"f756bb36ae15ae5feaacceb39421f87835771743","original_commit_id":"f756bb36ae15ae5feaacceb39421f87835771743","user":{"login":"codingricky","id":1692019,"avatar_url":"https://avatars.githubusercontent.com/u/1692019?v=3","gravatar_id":"","url":"https://api.github.com/users/codingricky","html_url":"https://github.com/codingricky","followers_url":"https://api.github.com/users/codingricky/followers","following_url":"https://api.github.com/users/codingricky/following{/other_user}","gists_url":"https://api.github.com/users/codingricky/gists{/gist_id}","starred_url":"https://api.github.com/users/codingricky/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/codingricky/subscriptions","organizations_url":"https://api.github.com/users/codingricky/orgs","repos_url":"https://api.github.com/users/codingricky/repos","events_url":"https://api.github.com/users/codingricky/events{/privacy}","received_events_url":"https://api.github.com/users/codingricky/received_events","type":"User","site_admin":false},"body":"maybe call the method randomDigitNotZero because the method randomDigit doesn't ever return null anyway","created_at":"2016-04-16T10:51:06Z","updated_at":"2016-04-16T10:51:06Z","html_url":"https://github.com/DiUS/java-faker/pull/70#discussion_r59965850","pull_request_url":"https://api.github.com/repos/DiUS/java-faker/pulls/70","_links":{"self":{"href":"https://api.github.com/repos/DiUS/java-faker/pulls/comments/59965850"},"html":{"href":"https://github.com/DiUS/java-faker/pull/70#discussion_r59965850"},"pull_request":{"href":"https://api.github.com/repos/DiUS/java-faker/pulls/70"}}},"pull_request":{"url":"https://api.github.com/repos/DiUS/java-faker/pulls/70","id":66723534,"html_url":"https://github.com/DiUS/java-faker/pull/70","diff_url":"https://github.com/DiUS/java-faker/pull/70.diff","patch_url":"https://github.com/DiUS/java-faker/pull/70.patch","issue_url":"https://api.github.com/repos/DiUS/java-faker/issues/70","number":70,"state":"open","locked":false,"title":"Number generator","user":{"login":"ikwattro","id":1222009,"avatar_url":"https://avatars.githubusercontent.com/u/1222009?v=3","gravatar_id":"","url":"https://api.github.com/users/ikwattro","html_url":"https://github.com/ikwattro","followers_url":"https://api.github.com/users/ikwattro/followers","following_url":"https://api.github.com/users/ikwattro/following{/other_user}","gists_url":"https://api.github.com/users/ikwattro/gists{/gist_id}","starred_url":"https://api.github.com/users/ikwattro/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ikwattro/subscriptions","organizations_url":"https://api.github.com/users/ikwattro/orgs","repos_url":"https://api.github.com/users/ikwattro/repos","events_url":"https://api.github.com/users/ikwattro/events{/privacy}","received_events_url":"https://api.github.com/users/ikwattro/received_events","type":"User","site_admin":false},"body":"Add base number faker","created_at":"2016-04-16T01:24:54Z","updated_at":"2016-04-16T10:51:06Z","closed_at":null,"merged_at":null,"merge_commit_sha":"6c9bcdb438ecd6d290e207d0463a4ea1b2496517","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/DiUS/java-faker/pulls/70/commits","review_comments_url":"https://api.github.com/repos/DiUS/java-faker/pulls/70/comments","review_comment_url":"https://api.github.com/repos/DiUS/java-faker/pulls/comments{/number}","comments_url":"https://api.github.com/repos/DiUS/java-faker/issues/70/comments","statuses_url":"https://api.github.com/repos/DiUS/java-faker/statuses/f756bb36ae15ae5feaacceb39421f87835771743","head":{"label":"ikwattro:number","ref":"number","sha":"f756bb36ae15ae5feaacceb39421f87835771743","user":{"login":"ikwattro","id":1222009,"avatar_url":"https://avatars.githubusercontent.com/u/1222009?v=3","gravatar_id":"","url":"https://api.github.com/users/ikwattro","html_url":"https://github.com/ikwattro","followers_url":"https://api.github.com/users/ikwattro/followers","following_url":"https://api.github.com/users/ikwattro/following{/other_user}","gists_url":"https://api.github.com/users/ikwattro/gists{/gist_id}","starred_url":"https://api.github.com/users/ikwattro/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ikwattro/subscriptions","organizations_url":"https://api.github.com/users/ikwattro/orgs","repos_url":"https://api.github.com/users/ikwattro/repos","events_url":"https://api.github.com/users/ikwattro/events{/privacy}","received_events_url":"https://api.github.com/users/ikwattro/received_events","type":"User","site_admin":false},"repo":{"id":56356204,"name":"java-faker","full_name":"ikwattro/java-faker","owner":{"login":"ikwattro","id":1222009,"avatar_url":"https://avatars.githubusercontent.com/u/1222009?v=3","gravatar_id":"","url":"https://api.github.com/users/ikwattro","html_url":"https://github.com/ikwattro","followers_url":"https://api.github.com/users/ikwattro/followers","following_url":"https://api.github.com/users/ikwattro/following{/other_user}","gists_url":"https://api.github.com/users/ikwattro/gists{/gist_id}","starred_url":"https://api.github.com/users/ikwattro/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ikwattro/subscriptions","organizations_url":"https://api.github.com/users/ikwattro/orgs","repos_url":"https://api.github.com/users/ikwattro/repos","events_url":"https://api.github.com/users/ikwattro/events{/privacy}","received_events_url":"https://api.github.com/users/ikwattro/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/ikwattro/java-faker","description":"Brings the popular ruby faker gem to Java","fork":true,"url":"https://api.github.com/repos/ikwattro/java-faker","forks_url":"https://api.github.com/repos/ikwattro/java-faker/forks","keys_url":"https://api.github.com/repos/ikwattro/java-faker/keys{/key_id}","collaborators_url":"https://api.github.com/repos/ikwattro/java-faker/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/ikwattro/java-faker/teams","hooks_url":"https://api.github.com/repos/ikwattro/java-faker/hooks","issue_events_url":"https://api.github.com/repos/ikwattro/java-faker/issues/events{/number}","events_url":"https://api.github.com/repos/ikwattro/java-faker/events","assignees_url":"https://api.github.com/repos/ikwattro/java-faker/assignees{/user}","branches_url":"https://api.github.com/repos/ikwattro/java-faker/branches{/branch}","tags_url":"https://api.github.com/repos/ikwattro/java-faker/tags","blobs_url":"https://api.github.com/repos/ikwattro/java-faker/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/ikwattro/java-faker/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/ikwattro/java-faker/git/refs{/sha}","trees_url":"https://api.github.com/repos/ikwattro/java-faker/git/trees{/sha}","statuses_url":"https://api.github.com/repos/ikwattro/java-faker/statuses/{sha}","languages_url":"https://api.github.com/repos/ikwattro/java-faker/languages","stargazers_url":"https://api.github.com/repos/ikwattro/java-faker/stargazers","contributors_url":"https://api.github.com/repos/ikwattro/java-faker/contributors","subscribers_url":"https://api.github.com/repos/ikwattro/java-faker/subscribers","subscription_url":"https://api.github.com/repos/ikwattro/java-faker/subscription","commits_url":"https://api.github.com/repos/ikwattro/java-faker/commits{/sha}","git_commits_url":"https://api.github.com/repos/ikwattro/java-faker/git/commits{/sha}","comments_url":"https://api.github.com/repos/ikwattro/java-faker/comments{/number}","issue_comment_url":"https://api.github.com/repos/ikwattro/java-faker/issues/comments{/number}","contents_url":"https://api.github.com/repos/ikwattro/java-faker/contents/{+path}","compare_url":"https://api.github.com/repos/ikwattro/java-faker/compare/{base}...{head}","merges_url":"https://api.github.com/repos/ikwattro/java-faker/merges","archive_url":"https://api.github.com/repos/ikwattro/java-faker/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/ikwattro/java-faker/downloads","issues_url":"https://api.github.com/repos/ikwattro/java-faker/issues{/number}","pulls_url":"https://api.github.com/repos/ikwattro/java-faker/pulls{/number}","milestones_url":"https://api.github.com/repos/ikwattro/java-faker/milestones{/number}","notifications_url":"https://api.github.com/repos/ikwattro/java-faker/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/ikwattro/java-faker/labels{/name}","releases_url":"https://api.github.com/repos/ikwattro/java-faker/releases{/id}","deployments_url":"https://api.github.com/repos/ikwattro/java-faker/deployments","created_at":"2016-04-15T23:56:10Z","updated_at":"2016-04-15T23:56:11Z","pushed_at":"2016-04-16T01:46:19Z","git_url":"git://github.com/ikwattro/java-faker.git","ssh_url":"git@github.com:ikwattro/java-faker.git","clone_url":"https://github.com/ikwattro/java-faker.git","svn_url":"https://github.com/ikwattro/java-faker","homepage":"http://dius.github.io/java-faker","size":959,"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":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"DiUS:master","ref":"master","sha":"8197ee042d263ea637ddee3a727ac258e11f2461","user":{"login":"DiUS","id":164113,"avatar_url":"https://avatars.githubusercontent.com/u/164113?v=3","gravatar_id":"","url":"https://api.github.com/users/DiUS","html_url":"https://github.com/DiUS","followers_url":"https://api.github.com/users/DiUS/followers","following_url":"https://api.github.com/users/DiUS/following{/other_user}","gists_url":"https://api.github.com/users/DiUS/gists{/gist_id}","starred_url":"https://api.github.com/users/DiUS/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/DiUS/subscriptions","organizations_url":"https://api.github.com/users/DiUS/orgs","repos_url":"https://api.github.com/users/DiUS/repos","events_url":"https://api.github.com/users/DiUS/events{/privacy}","received_events_url":"https://api.github.com/users/DiUS/received_events","type":"Organization","site_admin":false},"repo":{"id":1852481,"name":"java-faker","full_name":"DiUS/java-faker","owner":{"login":"DiUS","id":164113,"avatar_url":"https://avatars.githubusercontent.com/u/164113?v=3","gravatar_id":"","url":"https://api.github.com/users/DiUS","html_url":"https://github.com/DiUS","followers_url":"https://api.github.com/users/DiUS/followers","following_url":"https://api.github.com/users/DiUS/following{/other_user}","gists_url":"https://api.github.com/users/DiUS/gists{/gist_id}","starred_url":"https://api.github.com/users/DiUS/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/DiUS/subscriptions","organizations_url":"https://api.github.com/users/DiUS/orgs","repos_url":"https://api.github.com/users/DiUS/repos","events_url":"https://api.github.com/users/DiUS/events{/privacy}","received_events_url":"https://api.github.com/users/DiUS/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/DiUS/java-faker","description":"Brings the popular ruby faker gem to Java","fork":false,"url":"https://api.github.com/repos/DiUS/java-faker","forks_url":"https://api.github.com/repos/DiUS/java-faker/forks","keys_url":"https://api.github.com/repos/DiUS/java-faker/keys{/key_id}","collaborators_url":"https://api.github.com/repos/DiUS/java-faker/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/DiUS/java-faker/teams","hooks_url":"https://api.github.com/repos/DiUS/java-faker/hooks","issue_events_url":"https://api.github.com/repos/DiUS/java-faker/issues/events{/number}","events_url":"https://api.github.com/repos/DiUS/java-faker/events","assignees_url":"https://api.github.com/repos/DiUS/java-faker/assignees{/user}","branches_url":"https://api.github.com/repos/DiUS/java-faker/branches{/branch}","tags_url":"https://api.github.com/repos/DiUS/java-faker/tags","blobs_url":"https://api.github.com/repos/DiUS/java-faker/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/DiUS/java-faker/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/DiUS/java-faker/git/refs{/sha}","trees_url":"https://api.github.com/repos/DiUS/java-faker/git/trees{/sha}","statuses_url":"https://api.github.com/repos/DiUS/java-faker/statuses/{sha}","languages_url":"https://api.github.com/repos/DiUS/java-faker/languages","stargazers_url":"https://api.github.com/repos/DiUS/java-faker/stargazers","contributors_url":"https://api.github.com/repos/DiUS/java-faker/contributors","subscribers_url":"https://api.github.com/repos/DiUS/java-faker/subscribers","subscription_url":"https://api.github.com/repos/DiUS/java-faker/subscription","commits_url":"https://api.github.com/repos/DiUS/java-faker/commits{/sha}","git_commits_url":"https://api.github.com/repos/DiUS/java-faker/git/commits{/sha}","comments_url":"https://api.github.com/repos/DiUS/java-faker/comments{/number}","issue_comment_url":"https://api.github.com/repos/DiUS/java-faker/issues/comments{/number}","contents_url":"https://api.github.com/repos/DiUS/java-faker/contents/{+path}","compare_url":"https://api.github.com/repos/DiUS/java-faker/compare/{base}...{head}","merges_url":"https://api.github.com/repos/DiUS/java-faker/merges","archive_url":"https://api.github.com/repos/DiUS/java-faker/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/DiUS/java-faker/downloads","issues_url":"https://api.github.com/repos/DiUS/java-faker/issues{/number}","pulls_url":"https://api.github.com/repos/DiUS/java-faker/pulls{/number}","milestones_url":"https://api.github.com/repos/DiUS/java-faker/milestones{/number}","notifications_url":"https://api.github.com/repos/DiUS/java-faker/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/DiUS/java-faker/labels{/name}","releases_url":"https://api.github.com/repos/DiUS/java-faker/releases{/id}","deployments_url":"https://api.github.com/repos/DiUS/java-faker/deployments","created_at":"2011-06-06T01:01:21Z","updated_at":"2016-04-14T13:50:07Z","pushed_at":"2016-04-16T10:38:34Z","git_url":"git://github.com/DiUS/java-faker.git","ssh_url":"git@github.com:DiUS/java-faker.git","clone_url":"https://github.com/DiUS/java-faker.git","svn_url":"https://github.com/DiUS/java-faker","homepage":"http://dius.github.io/java-faker","size":996,"stargazers_count":206,"watchers_count":206,"language":"Java","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":58,"mirror_url":null,"open_issues_count":2,"forks":58,"open_issues":2,"watchers":206,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/DiUS/java-faker/pulls/70"},"html":{"href":"https://github.com/DiUS/java-faker/pull/70"},"issue":{"href":"https://api.github.com/repos/DiUS/java-faker/issues/70"},"comments":{"href":"https://api.github.com/repos/DiUS/java-faker/issues/70/comments"},"review_comments":{"href":"https://api.github.com/repos/DiUS/java-faker/pulls/70/comments"},"review_comment":{"href":"https://api.github.com/repos/DiUS/java-faker/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/DiUS/java-faker/pulls/70/commits"},"statuses":{"href":"https://api.github.com/repos/DiUS/java-faker/statuses/f756bb36ae15ae5feaacceb39421f87835771743"}}}}