{"action":"created","comment":{"url":"https://api.github.com/repos/akka/akka/pulls/comments/50129745","id":50129745,"diff_hunk":"@@ -476,6 +476,86 @@ private[akka] final case class Conflate[In, Out](seed: In ⇒ Out, aggregate: (O\n /**\n  * INTERNAL API\n  */\n+private[akka] final case class AggregateWeighted[In, Out](max: Long, costFn: In ⇒ Long, seed: In ⇒ Out,\n+                                                          aggregate: (Out, In) ⇒ Out,\n+                                                          decider: Supervision.Decider) extends DetachedStage[In, Out] {","path":"akka-stream/src/main/scala/akka/stream/impl/fusing/Ops.scala","position":6,"original_position":6,"commit_id":"a16a0eaaaa24fb5c938630db77bfa980ee98f131","original_commit_id":"a16a0eaaaa24fb5c938630db77bfa980ee98f131","user":{"login":"drewhk","id":932285,"avatar_url":"https://avatars.githubusercontent.com/u/932285?v=3","gravatar_id":"","url":"https://api.github.com/users/drewhk","html_url":"https://github.com/drewhk","followers_url":"https://api.github.com/users/drewhk/followers","following_url":"https://api.github.com/users/drewhk/following{/other_user}","gists_url":"https://api.github.com/users/drewhk/gists{/gist_id}","starred_url":"https://api.github.com/users/drewhk/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/drewhk/subscriptions","organizations_url":"https://api.github.com/users/drewhk/orgs","repos_url":"https://api.github.com/users/drewhk/repos","events_url":"https://api.github.com/users/drewhk/events{/privacy}","received_events_url":"https://api.github.com/users/drewhk/received_events","type":"User","site_admin":false},"body":"I am more thinking about replacing conflate with this one actually.","created_at":"2016-01-19T15:53:58Z","updated_at":"2016-01-19T15:53:58Z","html_url":"https://github.com/akka/akka/pull/19507#discussion_r50129745","pull_request_url":"https://api.github.com/repos/akka/akka/pulls/19507","_links":{"self":{"href":"https://api.github.com/repos/akka/akka/pulls/comments/50129745"},"html":{"href":"https://github.com/akka/akka/pull/19507#discussion_r50129745"},"pull_request":{"href":"https://api.github.com/repos/akka/akka/pulls/19507"}}},"pull_request":{"url":"https://api.github.com/repos/akka/akka/pulls/19507","id":56355798,"html_url":"https://github.com/akka/akka/pull/19507","diff_url":"https://github.com/akka/akka/pull/19507.diff","patch_url":"https://github.com/akka/akka/pull/19507.patch","issue_url":"https://api.github.com/repos/akka/akka/issues/19507","number":19507,"state":"open","locked":false,"title":"+str #16610 adding aggregate & aggregateWeighted","user":{"login":"hochgi","id":881075,"avatar_url":"https://avatars.githubusercontent.com/u/881075?v=3","gravatar_id":"","url":"https://api.github.com/users/hochgi","html_url":"https://github.com/hochgi","followers_url":"https://api.github.com/users/hochgi/followers","following_url":"https://api.github.com/users/hochgi/following{/other_user}","gists_url":"https://api.github.com/users/hochgi/gists{/gist_id}","starred_url":"https://api.github.com/users/hochgi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hochgi/subscriptions","organizations_url":"https://api.github.com/users/hochgi/orgs","repos_url":"https://api.github.com/users/hochgi/repos","events_url":"https://api.github.com/users/hochgi/events{/privacy}","received_events_url":"https://api.github.com/users/hochgi/received_events","type":"User","site_admin":false},"body":"main code is written (modelled after the existing `conflate`).\r\n~~still~~-~~need~~-~~to~~-~~figure~~-~~out~~-~~why~~-~~the~~-~~test~~-~~is~~-~~failing.~~\r\nC&C are much appreciated.","created_at":"2016-01-18T15:25:26Z","updated_at":"2016-01-19T15:53:58Z","closed_at":null,"merged_at":null,"merge_commit_sha":"c2431421d6ffa83d72ec6e0613888a05e8d91d64","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/akka/akka/pulls/19507/commits","review_comments_url":"https://api.github.com/repos/akka/akka/pulls/19507/comments","review_comment_url":"https://api.github.com/repos/akka/akka/pulls/comments{/number}","comments_url":"https://api.github.com/repos/akka/akka/issues/19507/comments","statuses_url":"https://api.github.com/repos/akka/akka/statuses/a16a0eaaaa24fb5c938630db77bfa980ee98f131","head":{"label":"hochgi:hochgi-adding-aggregate-and-aggregateWeighted","ref":"hochgi-adding-aggregate-and-aggregateWeighted","sha":"a16a0eaaaa24fb5c938630db77bfa980ee98f131","user":{"login":"hochgi","id":881075,"avatar_url":"https://avatars.githubusercontent.com/u/881075?v=3","gravatar_id":"","url":"https://api.github.com/users/hochgi","html_url":"https://github.com/hochgi","followers_url":"https://api.github.com/users/hochgi/followers","following_url":"https://api.github.com/users/hochgi/following{/other_user}","gists_url":"https://api.github.com/users/hochgi/gists{/gist_id}","starred_url":"https://api.github.com/users/hochgi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hochgi/subscriptions","organizations_url":"https://api.github.com/users/hochgi/orgs","repos_url":"https://api.github.com/users/hochgi/repos","events_url":"https://api.github.com/users/hochgi/events{/privacy}","received_events_url":"https://api.github.com/users/hochgi/received_events","type":"User","site_admin":false},"repo":{"id":47703718,"name":"akka","full_name":"hochgi/akka","owner":{"login":"hochgi","id":881075,"avatar_url":"https://avatars.githubusercontent.com/u/881075?v=3","gravatar_id":"","url":"https://api.github.com/users/hochgi","html_url":"https://github.com/hochgi","followers_url":"https://api.github.com/users/hochgi/followers","following_url":"https://api.github.com/users/hochgi/following{/other_user}","gists_url":"https://api.github.com/users/hochgi/gists{/gist_id}","starred_url":"https://api.github.com/users/hochgi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hochgi/subscriptions","organizations_url":"https://api.github.com/users/hochgi/orgs","repos_url":"https://api.github.com/users/hochgi/repos","events_url":"https://api.github.com/users/hochgi/events{/privacy}","received_events_url":"https://api.github.com/users/hochgi/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/hochgi/akka","description":"Akka Project","fork":true,"url":"https://api.github.com/repos/hochgi/akka","forks_url":"https://api.github.com/repos/hochgi/akka/forks","keys_url":"https://api.github.com/repos/hochgi/akka/keys{/key_id}","collaborators_url":"https://api.github.com/repos/hochgi/akka/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/hochgi/akka/teams","hooks_url":"https://api.github.com/repos/hochgi/akka/hooks","issue_events_url":"https://api.github.com/repos/hochgi/akka/issues/events{/number}","events_url":"https://api.github.com/repos/hochgi/akka/events","assignees_url":"https://api.github.com/repos/hochgi/akka/assignees{/user}","branches_url":"https://api.github.com/repos/hochgi/akka/branches{/branch}","tags_url":"https://api.github.com/repos/hochgi/akka/tags","blobs_url":"https://api.github.com/repos/hochgi/akka/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/hochgi/akka/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/hochgi/akka/git/refs{/sha}","trees_url":"https://api.github.com/repos/hochgi/akka/git/trees{/sha}","statuses_url":"https://api.github.com/repos/hochgi/akka/statuses/{sha}","languages_url":"https://api.github.com/repos/hochgi/akka/languages","stargazers_url":"https://api.github.com/repos/hochgi/akka/stargazers","contributors_url":"https://api.github.com/repos/hochgi/akka/contributors","subscribers_url":"https://api.github.com/repos/hochgi/akka/subscribers","subscription_url":"https://api.github.com/repos/hochgi/akka/subscription","commits_url":"https://api.github.com/repos/hochgi/akka/commits{/sha}","git_commits_url":"https://api.github.com/repos/hochgi/akka/git/commits{/sha}","comments_url":"https://api.github.com/repos/hochgi/akka/comments{/number}","issue_comment_url":"https://api.github.com/repos/hochgi/akka/issues/comments{/number}","contents_url":"https://api.github.com/repos/hochgi/akka/contents/{+path}","compare_url":"https://api.github.com/repos/hochgi/akka/compare/{base}...{head}","merges_url":"https://api.github.com/repos/hochgi/akka/merges","archive_url":"https://api.github.com/repos/hochgi/akka/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/hochgi/akka/downloads","issues_url":"https://api.github.com/repos/hochgi/akka/issues{/number}","pulls_url":"https://api.github.com/repos/hochgi/akka/pulls{/number}","milestones_url":"https://api.github.com/repos/hochgi/akka/milestones{/number}","notifications_url":"https://api.github.com/repos/hochgi/akka/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/hochgi/akka/labels{/name}","releases_url":"https://api.github.com/repos/hochgi/akka/releases{/id}","created_at":"2015-12-09T16:27:15Z","updated_at":"2016-01-12T09:32:19Z","pushed_at":"2016-01-19T13:04:54Z","git_url":"git://github.com/hochgi/akka.git","ssh_url":"git@github.com:hochgi/akka.git","clone_url":"https://github.com/hochgi/akka.git","svn_url":"https://github.com/hochgi/akka","homepage":"http://akka.io","size":173445,"stargazers_count":0,"watchers_count":0,"language":"Scala","has_issues":false,"has_downloads":true,"has_wiki":false,"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":"akka:master","ref":"master","sha":"4de3f63b9349d170bf2091cedacf05e170bc0b38","user":{"login":"akka","id":1496237,"avatar_url":"https://avatars.githubusercontent.com/u/1496237?v=3","gravatar_id":"","url":"https://api.github.com/users/akka","html_url":"https://github.com/akka","followers_url":"https://api.github.com/users/akka/followers","following_url":"https://api.github.com/users/akka/following{/other_user}","gists_url":"https://api.github.com/users/akka/gists{/gist_id}","starred_url":"https://api.github.com/users/akka/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/akka/subscriptions","organizations_url":"https://api.github.com/users/akka/orgs","repos_url":"https://api.github.com/users/akka/repos","events_url":"https://api.github.com/users/akka/events{/privacy}","received_events_url":"https://api.github.com/users/akka/received_events","type":"Organization","site_admin":false},"repo":{"id":130013,"name":"akka","full_name":"akka/akka","owner":{"login":"akka","id":1496237,"avatar_url":"https://avatars.githubusercontent.com/u/1496237?v=3","gravatar_id":"","url":"https://api.github.com/users/akka","html_url":"https://github.com/akka","followers_url":"https://api.github.com/users/akka/followers","following_url":"https://api.github.com/users/akka/following{/other_user}","gists_url":"https://api.github.com/users/akka/gists{/gist_id}","starred_url":"https://api.github.com/users/akka/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/akka/subscriptions","organizations_url":"https://api.github.com/users/akka/orgs","repos_url":"https://api.github.com/users/akka/repos","events_url":"https://api.github.com/users/akka/events{/privacy}","received_events_url":"https://api.github.com/users/akka/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/akka/akka","description":"Akka Project","fork":false,"url":"https://api.github.com/repos/akka/akka","forks_url":"https://api.github.com/repos/akka/akka/forks","keys_url":"https://api.github.com/repos/akka/akka/keys{/key_id}","collaborators_url":"https://api.github.com/repos/akka/akka/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/akka/akka/teams","hooks_url":"https://api.github.com/repos/akka/akka/hooks","issue_events_url":"https://api.github.com/repos/akka/akka/issues/events{/number}","events_url":"https://api.github.com/repos/akka/akka/events","assignees_url":"https://api.github.com/repos/akka/akka/assignees{/user}","branches_url":"https://api.github.com/repos/akka/akka/branches{/branch}","tags_url":"https://api.github.com/repos/akka/akka/tags","blobs_url":"https://api.github.com/repos/akka/akka/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/akka/akka/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/akka/akka/git/refs{/sha}","trees_url":"https://api.github.com/repos/akka/akka/git/trees{/sha}","statuses_url":"https://api.github.com/repos/akka/akka/statuses/{sha}","languages_url":"https://api.github.com/repos/akka/akka/languages","stargazers_url":"https://api.github.com/repos/akka/akka/stargazers","contributors_url":"https://api.github.com/repos/akka/akka/contributors","subscribers_url":"https://api.github.com/repos/akka/akka/subscribers","subscription_url":"https://api.github.com/repos/akka/akka/subscription","commits_url":"https://api.github.com/repos/akka/akka/commits{/sha}","git_commits_url":"https://api.github.com/repos/akka/akka/git/commits{/sha}","comments_url":"https://api.github.com/repos/akka/akka/comments{/number}","issue_comment_url":"https://api.github.com/repos/akka/akka/issues/comments{/number}","contents_url":"https://api.github.com/repos/akka/akka/contents/{+path}","compare_url":"https://api.github.com/repos/akka/akka/compare/{base}...{head}","merges_url":"https://api.github.com/repos/akka/akka/merges","archive_url":"https://api.github.com/repos/akka/akka/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/akka/akka/downloads","issues_url":"https://api.github.com/repos/akka/akka/issues{/number}","pulls_url":"https://api.github.com/repos/akka/akka/pulls{/number}","milestones_url":"https://api.github.com/repos/akka/akka/milestones{/number}","notifications_url":"https://api.github.com/repos/akka/akka/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/akka/akka/labels{/name}","releases_url":"https://api.github.com/repos/akka/akka/releases{/id}","created_at":"2009-02-16T12:51:54Z","updated_at":"2016-01-19T14:35:13Z","pushed_at":"2016-01-19T15:14:46Z","git_url":"git://github.com/akka/akka.git","ssh_url":"git@github.com:akka/akka.git","clone_url":"https://github.com/akka/akka.git","svn_url":"https://github.com/akka/akka","homepage":"http://akka.io","size":182313,"stargazers_count":4984,"watchers_count":4984,"language":"Scala","has_issues":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":1516,"mirror_url":null,"open_issues_count":856,"forks":1516,"open_issues":856,"watchers":4984,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/akka/akka/pulls/19507"},"html":{"href":"https://github.com/akka/akka/pull/19507"},"issue":{"href":"https://api.github.com/repos/akka/akka/issues/19507"},"comments":{"href":"https://api.github.com/repos/akka/akka/issues/19507/comments"},"review_comments":{"href":"https://api.github.com/repos/akka/akka/pulls/19507/comments"},"review_comment":{"href":"https://api.github.com/repos/akka/akka/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/akka/akka/pulls/19507/commits"},"statuses":{"href":"https://api.github.com/repos/akka/akka/statuses/a16a0eaaaa24fb5c938630db77bfa980ee98f131"}}}}