{"action":"created","comment":{"url":"https://api.github.com/repos/jonhoo/rust-zipf/pulls/comments/337468982","pull_request_review_id":305142995,"id":337468982,"node_id":"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDMzNzQ2ODk4Mg==","diff_hunk":"@@ -11,6 +11,19 @@\n //! `H(N,s)` is the normalizing constant which corresponds to the generalized harmonic number\n //! of order `N` of `s`.\n //!\n+//!","path":"src/lib.rs","position":4,"original_position":4,"commit_id":"2e45c97282d579c1e0436923a0fdb388e15e43e7","original_commit_id":"2e45c97282d579c1e0436923a0fdb388e15e43e7","user":{"login":"jonhoo","id":176295,"node_id":"MDQ6VXNlcjE3NjI5NQ==","avatar_url":"https://avatars2.githubusercontent.com/u/176295?v=4","gravatar_id":"","url":"https://api.github.com/users/jonhoo","html_url":"https://github.com/jonhoo","followers_url":"https://api.github.com/users/jonhoo/followers","following_url":"https://api.github.com/users/jonhoo/following{/other_user}","gists_url":"https://api.github.com/users/jonhoo/gists{/gist_id}","starred_url":"https://api.github.com/users/jonhoo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jonhoo/subscriptions","organizations_url":"https://api.github.com/users/jonhoo/orgs","repos_url":"https://api.github.com/users/jonhoo/repos","events_url":"https://api.github.com/users/jonhoo/events{/privacy}","received_events_url":"https://api.github.com/users/jonhoo/received_events","type":"User","site_admin":false},"body":"There's an extra empty line here that isn't necessary.","created_at":"2019-10-22T11:50:43Z","updated_at":"2019-10-22T11:50:43Z","html_url":"https://github.com/jonhoo/rust-zipf/pull/4#discussion_r337468982","pull_request_url":"https://api.github.com/repos/jonhoo/rust-zipf/pulls/4","author_association":"OWNER","_links":{"self":{"href":"https://api.github.com/repos/jonhoo/rust-zipf/pulls/comments/337468982"},"html":{"href":"https://github.com/jonhoo/rust-zipf/pull/4#discussion_r337468982"},"pull_request":{"href":"https://api.github.com/repos/jonhoo/rust-zipf/pulls/4"}}},"pull_request":{"url":"https://api.github.com/repos/jonhoo/rust-zipf/pulls/4","id":330756671,"node_id":"MDExOlB1bGxSZXF1ZXN0MzMwNzU2Njcx","html_url":"https://github.com/jonhoo/rust-zipf/pull/4","diff_url":"https://github.com/jonhoo/rust-zipf/pull/4.diff","patch_url":"https://github.com/jonhoo/rust-zipf/pull/4.patch","issue_url":"https://api.github.com/repos/jonhoo/rust-zipf/issues/4","number":4,"state":"open","locked":false,"title":"Give an example usage in the documentation","user":{"login":"gz","id":127654,"node_id":"MDQ6VXNlcjEyNzY1NA==","avatar_url":"https://avatars3.githubusercontent.com/u/127654?v=4","gravatar_id":"","url":"https://api.github.com/users/gz","html_url":"https://github.com/gz","followers_url":"https://api.github.com/users/gz/followers","following_url":"https://api.github.com/users/gz/following{/other_user}","gists_url":"https://api.github.com/users/gz/gists{/gist_id}","starred_url":"https://api.github.com/users/gz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gz/subscriptions","organizations_url":"https://api.github.com/users/gz/orgs","repos_url":"https://api.github.com/users/gz/repos","events_url":"https://api.github.com/users/gz/events{/privacy}","received_events_url":"https://api.github.com/users/gz/received_events","type":"User","site_admin":false},"body":"It took me a few minutes to figure out how to use the ZipfDistribution from reading the docs (i.e., finding the right trait implementation in the documentation).\r\nAdded an example to make it easier for someone new to get familiar with the crate.","created_at":"2019-10-22T00:34:43Z","updated_at":"2019-10-22T11:50:43Z","closed_at":null,"merged_at":null,"merge_commit_sha":"dc2e48dbfc3cd1c63a9c7994cd7c173987ed7e43","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/jonhoo/rust-zipf/pulls/4/commits","review_comments_url":"https://api.github.com/repos/jonhoo/rust-zipf/pulls/4/comments","review_comment_url":"https://api.github.com/repos/jonhoo/rust-zipf/pulls/comments{/number}","comments_url":"https://api.github.com/repos/jonhoo/rust-zipf/issues/4/comments","statuses_url":"https://api.github.com/repos/jonhoo/rust-zipf/statuses/2e45c97282d579c1e0436923a0fdb388e15e43e7","head":{"label":"gz:patch-1","ref":"patch-1","sha":"2e45c97282d579c1e0436923a0fdb388e15e43e7","user":{"login":"gz","id":127654,"node_id":"MDQ6VXNlcjEyNzY1NA==","avatar_url":"https://avatars3.githubusercontent.com/u/127654?v=4","gravatar_id":"","url":"https://api.github.com/users/gz","html_url":"https://github.com/gz","followers_url":"https://api.github.com/users/gz/followers","following_url":"https://api.github.com/users/gz/following{/other_user}","gists_url":"https://api.github.com/users/gz/gists{/gist_id}","starred_url":"https://api.github.com/users/gz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gz/subscriptions","organizations_url":"https://api.github.com/users/gz/orgs","repos_url":"https://api.github.com/users/gz/repos","events_url":"https://api.github.com/users/gz/events{/privacy}","received_events_url":"https://api.github.com/users/gz/received_events","type":"User","site_admin":false},"repo":{"id":216689810,"node_id":"MDEwOlJlcG9zaXRvcnkyMTY2ODk4MTA=","name":"rust-zipf","full_name":"gz/rust-zipf","private":false,"owner":{"login":"gz","id":127654,"node_id":"MDQ6VXNlcjEyNzY1NA==","avatar_url":"https://avatars3.githubusercontent.com/u/127654?v=4","gravatar_id":"","url":"https://api.github.com/users/gz","html_url":"https://github.com/gz","followers_url":"https://api.github.com/users/gz/followers","following_url":"https://api.github.com/users/gz/following{/other_user}","gists_url":"https://api.github.com/users/gz/gists{/gist_id}","starred_url":"https://api.github.com/users/gz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gz/subscriptions","organizations_url":"https://api.github.com/users/gz/orgs","repos_url":"https://api.github.com/users/gz/repos","events_url":"https://api.github.com/users/gz/events{/privacy}","received_events_url":"https://api.github.com/users/gz/received_events","type":"User","site_admin":false},"html_url":"https://github.com/gz/rust-zipf","description":"Rust implementation of a fast, bounded, Zipf-distributed random number generator","fork":true,"url":"https://api.github.com/repos/gz/rust-zipf","forks_url":"https://api.github.com/repos/gz/rust-zipf/forks","keys_url":"https://api.github.com/repos/gz/rust-zipf/keys{/key_id}","collaborators_url":"https://api.github.com/repos/gz/rust-zipf/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/gz/rust-zipf/teams","hooks_url":"https://api.github.com/repos/gz/rust-zipf/hooks","issue_events_url":"https://api.github.com/repos/gz/rust-zipf/issues/events{/number}","events_url":"https://api.github.com/repos/gz/rust-zipf/events","assignees_url":"https://api.github.com/repos/gz/rust-zipf/assignees{/user}","branches_url":"https://api.github.com/repos/gz/rust-zipf/branches{/branch}","tags_url":"https://api.github.com/repos/gz/rust-zipf/tags","blobs_url":"https://api.github.com/repos/gz/rust-zipf/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/gz/rust-zipf/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/gz/rust-zipf/git/refs{/sha}","trees_url":"https://api.github.com/repos/gz/rust-zipf/git/trees{/sha}","statuses_url":"https://api.github.com/repos/gz/rust-zipf/statuses/{sha}","languages_url":"https://api.github.com/repos/gz/rust-zipf/languages","stargazers_url":"https://api.github.com/repos/gz/rust-zipf/stargazers","contributors_url":"https://api.github.com/repos/gz/rust-zipf/contributors","subscribers_url":"https://api.github.com/repos/gz/rust-zipf/subscribers","subscription_url":"https://api.github.com/repos/gz/rust-zipf/subscription","commits_url":"https://api.github.com/repos/gz/rust-zipf/commits{/sha}","git_commits_url":"https://api.github.com/repos/gz/rust-zipf/git/commits{/sha}","comments_url":"https://api.github.com/repos/gz/rust-zipf/comments{/number}","issue_comment_url":"https://api.github.com/repos/gz/rust-zipf/issues/comments{/number}","contents_url":"https://api.github.com/repos/gz/rust-zipf/contents/{+path}","compare_url":"https://api.github.com/repos/gz/rust-zipf/compare/{base}...{head}","merges_url":"https://api.github.com/repos/gz/rust-zipf/merges","archive_url":"https://api.github.com/repos/gz/rust-zipf/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/gz/rust-zipf/downloads","issues_url":"https://api.github.com/repos/gz/rust-zipf/issues{/number}","pulls_url":"https://api.github.com/repos/gz/rust-zipf/pulls{/number}","milestones_url":"https://api.github.com/repos/gz/rust-zipf/milestones{/number}","notifications_url":"https://api.github.com/repos/gz/rust-zipf/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/gz/rust-zipf/labels{/name}","releases_url":"https://api.github.com/repos/gz/rust-zipf/releases{/id}","deployments_url":"https://api.github.com/repos/gz/rust-zipf/deployments","created_at":"2019-10-22T00:28:04Z","updated_at":"2019-10-22T00:28:05Z","pushed_at":"2019-10-22T00:48:39Z","git_url":"git://github.com/gz/rust-zipf.git","ssh_url":"git@github.com:gz/rust-zipf.git","clone_url":"https://github.com/gz/rust-zipf.git","svn_url":"https://github.com/gz/rust-zipf","homepage":null,"size":53,"stargazers_count":0,"watchers_count":0,"language":null,"has_issues":false,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"disabled":false,"open_issues_count":0,"license":{"key":"apache-2.0","name":"Apache License 2.0","spdx_id":"Apache-2.0","url":"https://api.github.com/licenses/apache-2.0","node_id":"MDc6TGljZW5zZTI="},"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"jonhoo:master","ref":"master","sha":"2cda6440ed33b6fb163c02616d0a46ffb2d6f88f","user":{"login":"jonhoo","id":176295,"node_id":"MDQ6VXNlcjE3NjI5NQ==","avatar_url":"https://avatars2.githubusercontent.com/u/176295?v=4","gravatar_id":"","url":"https://api.github.com/users/jonhoo","html_url":"https://github.com/jonhoo","followers_url":"https://api.github.com/users/jonhoo/followers","following_url":"https://api.github.com/users/jonhoo/following{/other_user}","gists_url":"https://api.github.com/users/jonhoo/gists{/gist_id}","starred_url":"https://api.github.com/users/jonhoo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jonhoo/subscriptions","organizations_url":"https://api.github.com/users/jonhoo/orgs","repos_url":"https://api.github.com/users/jonhoo/repos","events_url":"https://api.github.com/users/jonhoo/events{/privacy}","received_events_url":"https://api.github.com/users/jonhoo/received_events","type":"User","site_admin":false},"repo":{"id":79746453,"node_id":"MDEwOlJlcG9zaXRvcnk3OTc0NjQ1Mw==","name":"rust-zipf","full_name":"jonhoo/rust-zipf","private":false,"owner":{"login":"jonhoo","id":176295,"node_id":"MDQ6VXNlcjE3NjI5NQ==","avatar_url":"https://avatars2.githubusercontent.com/u/176295?v=4","gravatar_id":"","url":"https://api.github.com/users/jonhoo","html_url":"https://github.com/jonhoo","followers_url":"https://api.github.com/users/jonhoo/followers","following_url":"https://api.github.com/users/jonhoo/following{/other_user}","gists_url":"https://api.github.com/users/jonhoo/gists{/gist_id}","starred_url":"https://api.github.com/users/jonhoo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jonhoo/subscriptions","organizations_url":"https://api.github.com/users/jonhoo/orgs","repos_url":"https://api.github.com/users/jonhoo/repos","events_url":"https://api.github.com/users/jonhoo/events{/privacy}","received_events_url":"https://api.github.com/users/jonhoo/received_events","type":"User","site_admin":false},"html_url":"https://github.com/jonhoo/rust-zipf","description":"Rust implementation of a fast, bounded, Zipf-distributed random number generator","fork":false,"url":"https://api.github.com/repos/jonhoo/rust-zipf","forks_url":"https://api.github.com/repos/jonhoo/rust-zipf/forks","keys_url":"https://api.github.com/repos/jonhoo/rust-zipf/keys{/key_id}","collaborators_url":"https://api.github.com/repos/jonhoo/rust-zipf/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/jonhoo/rust-zipf/teams","hooks_url":"https://api.github.com/repos/jonhoo/rust-zipf/hooks","issue_events_url":"https://api.github.com/repos/jonhoo/rust-zipf/issues/events{/number}","events_url":"https://api.github.com/repos/jonhoo/rust-zipf/events","assignees_url":"https://api.github.com/repos/jonhoo/rust-zipf/assignees{/user}","branches_url":"https://api.github.com/repos/jonhoo/rust-zipf/branches{/branch}","tags_url":"https://api.github.com/repos/jonhoo/rust-zipf/tags","blobs_url":"https://api.github.com/repos/jonhoo/rust-zipf/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/jonhoo/rust-zipf/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/jonhoo/rust-zipf/git/refs{/sha}","trees_url":"https://api.github.com/repos/jonhoo/rust-zipf/git/trees{/sha}","statuses_url":"https://api.github.com/repos/jonhoo/rust-zipf/statuses/{sha}","languages_url":"https://api.github.com/repos/jonhoo/rust-zipf/languages","stargazers_url":"https://api.github.com/repos/jonhoo/rust-zipf/stargazers","contributors_url":"https://api.github.com/repos/jonhoo/rust-zipf/contributors","subscribers_url":"https://api.github.com/repos/jonhoo/rust-zipf/subscribers","subscription_url":"https://api.github.com/repos/jonhoo/rust-zipf/subscription","commits_url":"https://api.github.com/repos/jonhoo/rust-zipf/commits{/sha}","git_commits_url":"https://api.github.com/repos/jonhoo/rust-zipf/git/commits{/sha}","comments_url":"https://api.github.com/repos/jonhoo/rust-zipf/comments{/number}","issue_comment_url":"https://api.github.com/repos/jonhoo/rust-zipf/issues/comments{/number}","contents_url":"https://api.github.com/repos/jonhoo/rust-zipf/contents/{+path}","compare_url":"https://api.github.com/repos/jonhoo/rust-zipf/compare/{base}...{head}","merges_url":"https://api.github.com/repos/jonhoo/rust-zipf/merges","archive_url":"https://api.github.com/repos/jonhoo/rust-zipf/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/jonhoo/rust-zipf/downloads","issues_url":"https://api.github.com/repos/jonhoo/rust-zipf/issues{/number}","pulls_url":"https://api.github.com/repos/jonhoo/rust-zipf/pulls{/number}","milestones_url":"https://api.github.com/repos/jonhoo/rust-zipf/milestones{/number}","notifications_url":"https://api.github.com/repos/jonhoo/rust-zipf/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/jonhoo/rust-zipf/labels{/name}","releases_url":"https://api.github.com/repos/jonhoo/rust-zipf/releases{/id}","deployments_url":"https://api.github.com/repos/jonhoo/rust-zipf/deployments","created_at":"2017-01-22T21:19:36Z","updated_at":"2019-10-22T11:02:13Z","pushed_at":"2019-10-22T00:48:39Z","git_url":"git://github.com/jonhoo/rust-zipf.git","ssh_url":"git@github.com:jonhoo/rust-zipf.git","clone_url":"https://github.com/jonhoo/rust-zipf.git","svn_url":"https://github.com/jonhoo/rust-zipf","homepage":null,"size":44,"stargazers_count":12,"watchers_count":12,"language":"Rust","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":3,"mirror_url":null,"archived":false,"disabled":false,"open_issues_count":1,"license":{"key":"apache-2.0","name":"Apache License 2.0","spdx_id":"Apache-2.0","url":"https://api.github.com/licenses/apache-2.0","node_id":"MDc6TGljZW5zZTI="},"forks":3,"open_issues":1,"watchers":12,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/jonhoo/rust-zipf/pulls/4"},"html":{"href":"https://github.com/jonhoo/rust-zipf/pull/4"},"issue":{"href":"https://api.github.com/repos/jonhoo/rust-zipf/issues/4"},"comments":{"href":"https://api.github.com/repos/jonhoo/rust-zipf/issues/4/comments"},"review_comments":{"href":"https://api.github.com/repos/jonhoo/rust-zipf/pulls/4/comments"},"review_comment":{"href":"https://api.github.com/repos/jonhoo/rust-zipf/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/jonhoo/rust-zipf/pulls/4/commits"},"statuses":{"href":"https://api.github.com/repos/jonhoo/rust-zipf/statuses/2e45c97282d579c1e0436923a0fdb388e15e43e7"}},"author_association":"NONE"}}
{"actor":{"display_login":"jonhoo"}}