{"action":"created","comment":{"url":"https://api.github.com/repos/prometheus/client_java/pulls/comments/48364713","id":48364713,"diff_hunk":"@@ -0,0 +1,85 @@\n+package io.prometheus.client;\n+\n+import java.util.Arrays;\n+import java.util.concurrent.ThreadLocalRandom;\n+\n+/**\n+ * Created by warebot on 12/21/15.","path":"simpleclient/src/main/java/io/prometheus/client/Reservoir.java","position":7,"original_position":7,"commit_id":"466012f13656522af736ca2d82bdf5223659ba27","original_commit_id":"466012f13656522af736ca2d82bdf5223659ba27","user":{"login":"brian-brazil","id":7115638,"avatar_url":"https://avatars.githubusercontent.com/u/7115638?v=3","gravatar_id":"","url":"https://api.github.com/users/brian-brazil","html_url":"https://github.com/brian-brazil","followers_url":"https://api.github.com/users/brian-brazil/followers","following_url":"https://api.github.com/users/brian-brazil/following{/other_user}","gists_url":"https://api.github.com/users/brian-brazil/gists{/gist_id}","starred_url":"https://api.github.com/users/brian-brazil/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/brian-brazil/subscriptions","organizations_url":"https://api.github.com/users/brian-brazil/orgs","repos_url":"https://api.github.com/users/brian-brazil/repos","events_url":"https://api.github.com/users/brian-brazil/events{/privacy}","received_events_url":"https://api.github.com/users/brian-brazil/received_events","type":"User","site_admin":false},"body":"This comment doesn't belong here, the AUTHORs file and source control history cover this.","created_at":"2015-12-23T17:38:38Z","updated_at":"2015-12-23T17:38:38Z","html_url":"https://github.com/prometheus/client_java/pull/96#discussion_r48364713","pull_request_url":"https://api.github.com/repos/prometheus/client_java/pulls/96","_links":{"self":{"href":"https://api.github.com/repos/prometheus/client_java/pulls/comments/48364713"},"html":{"href":"https://github.com/prometheus/client_java/pull/96#discussion_r48364713"},"pull_request":{"href":"https://api.github.com/repos/prometheus/client_java/pulls/96"}}},"pull_request":{"url":"https://api.github.com/repos/prometheus/client_java/pulls/96","id":54485084,"html_url":"https://github.com/prometheus/client_java/pull/96","diff_url":"https://github.com/prometheus/client_java/pull/96.diff","patch_url":"https://github.com/prometheus/client_java/pull/96.patch","issue_url":"https://api.github.com/repos/prometheus/client_java/issues/96","number":96,"state":"open","locked":false,"title":"Feature/exposing quantiles","user":{"login":"warebot","id":2491305,"avatar_url":"https://avatars.githubusercontent.com/u/2491305?v=3","gravatar_id":"","url":"https://api.github.com/users/warebot","html_url":"https://github.com/warebot","followers_url":"https://api.github.com/users/warebot/followers","following_url":"https://api.github.com/users/warebot/following{/other_user}","gists_url":"https://api.github.com/users/warebot/gists{/gist_id}","starred_url":"https://api.github.com/users/warebot/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/warebot/subscriptions","organizations_url":"https://api.github.com/users/warebot/orgs","repos_url":"https://api.github.com/users/warebot/repos","events_url":"https://api.github.com/users/warebot/events{/privacy}","received_events_url":"https://api.github.com/users/warebot/received_events","type":"User","site_admin":false},"body":"Hey guys.\r\nI started working on this \"issue\" because it is requirement that we currently have.(https://github.com/prometheus/client_java/issues/85)\r\n\r\nNo tests were broken, new tests were added and the outcome seems to be accurate.\r\nThe solutions were inspired by other open source implementations/ideas (I'm pretty sure I need to cite them in the code).\r\n\r\nWould highly appreciate your feedback re:what can be improved / needs to be changed.\r\nPlease pardon my lack of Github etiquette.\r\n \r\nMucho gracias!","created_at":"2015-12-23T16:29:01Z","updated_at":"2015-12-23T17:38:38Z","closed_at":null,"merged_at":null,"merge_commit_sha":"cab941a2aad7c442c0d28dc9be8c3a7ae647a863","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/prometheus/client_java/pulls/96/commits","review_comments_url":"https://api.github.com/repos/prometheus/client_java/pulls/96/comments","review_comment_url":"https://api.github.com/repos/prometheus/client_java/pulls/comments{/number}","comments_url":"https://api.github.com/repos/prometheus/client_java/issues/96/comments","statuses_url":"https://api.github.com/repos/prometheus/client_java/statuses/466012f13656522af736ca2d82bdf5223659ba27","head":{"label":"outbrain:feature/exposing-quantiles","ref":"feature/exposing-quantiles","sha":"466012f13656522af736ca2d82bdf5223659ba27","user":{"login":"outbrain","id":1535932,"avatar_url":"https://avatars.githubusercontent.com/u/1535932?v=3","gravatar_id":"","url":"https://api.github.com/users/outbrain","html_url":"https://github.com/outbrain","followers_url":"https://api.github.com/users/outbrain/followers","following_url":"https://api.github.com/users/outbrain/following{/other_user}","gists_url":"https://api.github.com/users/outbrain/gists{/gist_id}","starred_url":"https://api.github.com/users/outbrain/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/outbrain/subscriptions","organizations_url":"https://api.github.com/users/outbrain/orgs","repos_url":"https://api.github.com/users/outbrain/repos","events_url":"https://api.github.com/users/outbrain/events{/privacy}","received_events_url":"https://api.github.com/users/outbrain/received_events","type":"Organization","site_admin":false},"repo":{"id":48200205,"name":"client_java","full_name":"outbrain/client_java","owner":{"login":"outbrain","id":1535932,"avatar_url":"https://avatars.githubusercontent.com/u/1535932?v=3","gravatar_id":"","url":"https://api.github.com/users/outbrain","html_url":"https://github.com/outbrain","followers_url":"https://api.github.com/users/outbrain/followers","following_url":"https://api.github.com/users/outbrain/following{/other_user}","gists_url":"https://api.github.com/users/outbrain/gists{/gist_id}","starred_url":"https://api.github.com/users/outbrain/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/outbrain/subscriptions","organizations_url":"https://api.github.com/users/outbrain/orgs","repos_url":"https://api.github.com/users/outbrain/repos","events_url":"https://api.github.com/users/outbrain/events{/privacy}","received_events_url":"https://api.github.com/users/outbrain/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/outbrain/client_java","description":"Prometheus instrumentation library for JVM applications","fork":true,"url":"https://api.github.com/repos/outbrain/client_java","forks_url":"https://api.github.com/repos/outbrain/client_java/forks","keys_url":"https://api.github.com/repos/outbrain/client_java/keys{/key_id}","collaborators_url":"https://api.github.com/repos/outbrain/client_java/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/outbrain/client_java/teams","hooks_url":"https://api.github.com/repos/outbrain/client_java/hooks","issue_events_url":"https://api.github.com/repos/outbrain/client_java/issues/events{/number}","events_url":"https://api.github.com/repos/outbrain/client_java/events","assignees_url":"https://api.github.com/repos/outbrain/client_java/assignees{/user}","branches_url":"https://api.github.com/repos/outbrain/client_java/branches{/branch}","tags_url":"https://api.github.com/repos/outbrain/client_java/tags","blobs_url":"https://api.github.com/repos/outbrain/client_java/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/outbrain/client_java/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/outbrain/client_java/git/refs{/sha}","trees_url":"https://api.github.com/repos/outbrain/client_java/git/trees{/sha}","statuses_url":"https://api.github.com/repos/outbrain/client_java/statuses/{sha}","languages_url":"https://api.github.com/repos/outbrain/client_java/languages","stargazers_url":"https://api.github.com/repos/outbrain/client_java/stargazers","contributors_url":"https://api.github.com/repos/outbrain/client_java/contributors","subscribers_url":"https://api.github.com/repos/outbrain/client_java/subscribers","subscription_url":"https://api.github.com/repos/outbrain/client_java/subscription","commits_url":"https://api.github.com/repos/outbrain/client_java/commits{/sha}","git_commits_url":"https://api.github.com/repos/outbrain/client_java/git/commits{/sha}","comments_url":"https://api.github.com/repos/outbrain/client_java/comments{/number}","issue_comment_url":"https://api.github.com/repos/outbrain/client_java/issues/comments{/number}","contents_url":"https://api.github.com/repos/outbrain/client_java/contents/{+path}","compare_url":"https://api.github.com/repos/outbrain/client_java/compare/{base}...{head}","merges_url":"https://api.github.com/repos/outbrain/client_java/merges","archive_url":"https://api.github.com/repos/outbrain/client_java/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/outbrain/client_java/downloads","issues_url":"https://api.github.com/repos/outbrain/client_java/issues{/number}","pulls_url":"https://api.github.com/repos/outbrain/client_java/pulls{/number}","milestones_url":"https://api.github.com/repos/outbrain/client_java/milestones{/number}","notifications_url":"https://api.github.com/repos/outbrain/client_java/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/outbrain/client_java/labels{/name}","releases_url":"https://api.github.com/repos/outbrain/client_java/releases{/id}","created_at":"2015-12-17T21:53:09Z","updated_at":"2015-12-18T10:49:26Z","pushed_at":"2015-12-22T21:19:34Z","git_url":"git://github.com/outbrain/client_java.git","ssh_url":"git@github.com:outbrain/client_java.git","clone_url":"https://github.com/outbrain/client_java.git","svn_url":"https://github.com/outbrain/client_java","homepage":"","size":1248,"stargazers_count":1,"watchers_count":1,"language":"Java","has_issues":false,"has_downloads":true,"has_wiki":false,"has_pages":true,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":1,"default_branch":"master"}},"base":{"label":"prometheus:master","ref":"master","sha":"6264b24c6df263a1c83b5fe692f4f9746d1c064f","user":{"login":"prometheus","id":3380462,"avatar_url":"https://avatars.githubusercontent.com/u/3380462?v=3","gravatar_id":"","url":"https://api.github.com/users/prometheus","html_url":"https://github.com/prometheus","followers_url":"https://api.github.com/users/prometheus/followers","following_url":"https://api.github.com/users/prometheus/following{/other_user}","gists_url":"https://api.github.com/users/prometheus/gists{/gist_id}","starred_url":"https://api.github.com/users/prometheus/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/prometheus/subscriptions","organizations_url":"https://api.github.com/users/prometheus/orgs","repos_url":"https://api.github.com/users/prometheus/repos","events_url":"https://api.github.com/users/prometheus/events{/privacy}","received_events_url":"https://api.github.com/users/prometheus/received_events","type":"Organization","site_admin":false},"repo":{"id":7997879,"name":"client_java","full_name":"prometheus/client_java","owner":{"login":"prometheus","id":3380462,"avatar_url":"https://avatars.githubusercontent.com/u/3380462?v=3","gravatar_id":"","url":"https://api.github.com/users/prometheus","html_url":"https://github.com/prometheus","followers_url":"https://api.github.com/users/prometheus/followers","following_url":"https://api.github.com/users/prometheus/following{/other_user}","gists_url":"https://api.github.com/users/prometheus/gists{/gist_id}","starred_url":"https://api.github.com/users/prometheus/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/prometheus/subscriptions","organizations_url":"https://api.github.com/users/prometheus/orgs","repos_url":"https://api.github.com/users/prometheus/repos","events_url":"https://api.github.com/users/prometheus/events{/privacy}","received_events_url":"https://api.github.com/users/prometheus/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/prometheus/client_java","description":"Prometheus instrumentation library for JVM applications","fork":false,"url":"https://api.github.com/repos/prometheus/client_java","forks_url":"https://api.github.com/repos/prometheus/client_java/forks","keys_url":"https://api.github.com/repos/prometheus/client_java/keys{/key_id}","collaborators_url":"https://api.github.com/repos/prometheus/client_java/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/prometheus/client_java/teams","hooks_url":"https://api.github.com/repos/prometheus/client_java/hooks","issue_events_url":"https://api.github.com/repos/prometheus/client_java/issues/events{/number}","events_url":"https://api.github.com/repos/prometheus/client_java/events","assignees_url":"https://api.github.com/repos/prometheus/client_java/assignees{/user}","branches_url":"https://api.github.com/repos/prometheus/client_java/branches{/branch}","tags_url":"https://api.github.com/repos/prometheus/client_java/tags","blobs_url":"https://api.github.com/repos/prometheus/client_java/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/prometheus/client_java/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/prometheus/client_java/git/refs{/sha}","trees_url":"https://api.github.com/repos/prometheus/client_java/git/trees{/sha}","statuses_url":"https://api.github.com/repos/prometheus/client_java/statuses/{sha}","languages_url":"https://api.github.com/repos/prometheus/client_java/languages","stargazers_url":"https://api.github.com/repos/prometheus/client_java/stargazers","contributors_url":"https://api.github.com/repos/prometheus/client_java/contributors","subscribers_url":"https://api.github.com/repos/prometheus/client_java/subscribers","subscription_url":"https://api.github.com/repos/prometheus/client_java/subscription","commits_url":"https://api.github.com/repos/prometheus/client_java/commits{/sha}","git_commits_url":"https://api.github.com/repos/prometheus/client_java/git/commits{/sha}","comments_url":"https://api.github.com/repos/prometheus/client_java/comments{/number}","issue_comment_url":"https://api.github.com/repos/prometheus/client_java/issues/comments{/number}","contents_url":"https://api.github.com/repos/prometheus/client_java/contents/{+path}","compare_url":"https://api.github.com/repos/prometheus/client_java/compare/{base}...{head}","merges_url":"https://api.github.com/repos/prometheus/client_java/merges","archive_url":"https://api.github.com/repos/prometheus/client_java/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/prometheus/client_java/downloads","issues_url":"https://api.github.com/repos/prometheus/client_java/issues{/number}","pulls_url":"https://api.github.com/repos/prometheus/client_java/pulls{/number}","milestones_url":"https://api.github.com/repos/prometheus/client_java/milestones{/number}","notifications_url":"https://api.github.com/repos/prometheus/client_java/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/prometheus/client_java/labels{/name}","releases_url":"https://api.github.com/repos/prometheus/client_java/releases{/id}","created_at":"2013-02-03T22:55:49Z","updated_at":"2015-12-18T13:27:14Z","pushed_at":"2015-12-23T16:29:01Z","git_url":"git://github.com/prometheus/client_java.git","ssh_url":"git@github.com:prometheus/client_java.git","clone_url":"https://github.com/prometheus/client_java.git","svn_url":"https://github.com/prometheus/client_java","homepage":"","size":1317,"stargazers_count":30,"watchers_count":30,"language":"Java","has_issues":true,"has_downloads":true,"has_wiki":false,"has_pages":true,"forks_count":25,"mirror_url":null,"open_issues_count":8,"forks":25,"open_issues":8,"watchers":30,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/prometheus/client_java/pulls/96"},"html":{"href":"https://github.com/prometheus/client_java/pull/96"},"issue":{"href":"https://api.github.com/repos/prometheus/client_java/issues/96"},"comments":{"href":"https://api.github.com/repos/prometheus/client_java/issues/96/comments"},"review_comments":{"href":"https://api.github.com/repos/prometheus/client_java/pulls/96/comments"},"review_comment":{"href":"https://api.github.com/repos/prometheus/client_java/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/prometheus/client_java/pulls/96/commits"},"statuses":{"href":"https://api.github.com/repos/prometheus/client_java/statuses/466012f13656522af736ca2d82bdf5223659ba27"}}}}