{"action":"created","comment":{"url":"https://api.github.com/repos/sscdotopen/trackthetrackers/pulls/comments/29051333","id":29051333,"diff_hunk":"@@ -0,0 +1,225 @@\n+/**\n+ * Track the trackers\n+ * Copyright (C) 2015  Sebastian Schelter, Hung Chang\n+ *\n+ * This program is free software: you can redistribute it and/or modify\n+ * it under the terms of the GNU General Public License as published by\n+ * the Free Software Foundation, either version 3 of the License, or\n+ * (at your option) any later version.\n+ *\n+ * This program is distributed in the hope that it will be useful,\n+ * but WITHOUT ANY WARRANTY; without even the implied warranty of\n+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the\n+ * GNU General Public License for more details.\n+ *\n+ * You should have received a copy of the GNU General Public License\n+ * along with this program.  If not, see <http://www.gnu.org/licenses/>.\n+ */\n+\n+package io.ssc.trackthetrackers.analysis.statistics;\n+\n+import io.ssc.trackthetrackers.Config;\n+\n+import java.util.regex.Pattern;\n+\n+import org.apache.flink.api.common.functions.FlatMapFunction;\n+import org.apache.flink.api.common.operators.Order;\n+import org.apache.flink.api.java.DataSet;\n+import org.apache.flink.api.java.ExecutionEnvironment;\n+import org.apache.flink.api.java.aggregation.Aggregations;\n+import org.apache.flink.api.java.operators.DataSource;\n+import org.apache.flink.api.java.tuple.Tuple1;\n+import org.apache.flink.api.java.tuple.Tuple2;\n+import org.apache.flink.api.java.tuple.Tuple3;\n+import org.apache.flink.core.fs.FileSystem.WriteMode;\n+import org.apache.flink.util.Collector;\n+\n+// Get the aggregated Centrality for each third party, and get the top K third party.\n+public class ThirdPartyAggregatedCentrality {","path":"analysis/src/main/java/io/ssc/trackthetrackers/analysis/statistics/ThirdPartyAggregatedCentrality.java","position":38,"original_position":38,"commit_id":"0ff5de56e033a0b1ebe7eaa15f4996ac513e7cfb","original_commit_id":"0ff5de56e033a0b1ebe7eaa15f4996ac513e7cfb","user":{"login":"sscdotopen","id":409707,"avatar_url":"https://avatars.githubusercontent.com/u/409707?v=3","gravatar_id":"","url":"https://api.github.com/users/sscdotopen","html_url":"https://github.com/sscdotopen","followers_url":"https://api.github.com/users/sscdotopen/followers","following_url":"https://api.github.com/users/sscdotopen/following{/other_user}","gists_url":"https://api.github.com/users/sscdotopen/gists{/gist_id}","starred_url":"https://api.github.com/users/sscdotopen/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sscdotopen/subscriptions","organizations_url":"https://api.github.com/users/sscdotopen/orgs","repos_url":"https://api.github.com/users/sscdotopen/repos","events_url":"https://api.github.com/users/sscdotopen/events{/privacy}","received_events_url":"https://api.github.com/users/sscdotopen/received_events","type":"User","site_admin":false},"body":"again, please use 2 spaces indentation","created_at":"2015-04-24T14:13:02Z","updated_at":"2015-04-24T14:13:02Z","html_url":"https://github.com/sscdotopen/trackthetrackers/pull/16#discussion_r29051333","pull_request_url":"https://api.github.com/repos/sscdotopen/trackthetrackers/pulls/16","_links":{"self":{"href":"https://api.github.com/repos/sscdotopen/trackthetrackers/pulls/comments/29051333"},"html":{"href":"https://github.com/sscdotopen/trackthetrackers/pull/16#discussion_r29051333"},"pull_request":{"href":"https://api.github.com/repos/sscdotopen/trackthetrackers/pulls/16"}}},"pull_request":{"url":"https://api.github.com/repos/sscdotopen/trackthetrackers/pulls/16","id":33839006,"html_url":"https://github.com/sscdotopen/trackthetrackers/pull/16","diff_url":"https://github.com/sscdotopen/trackthetrackers/pull/16.diff","patch_url":"https://github.com/sscdotopen/trackthetrackers/pull/16.patch","issue_url":"https://api.github.com/repos/sscdotopen/trackthetrackers/issues/16","number":16,"state":"open","locked":false,"title":"company extraction code","user":{"login":"HungUnicorn","id":6980238,"avatar_url":"https://avatars.githubusercontent.com/u/6980238?v=3","gravatar_id":"","url":"https://api.github.com/users/HungUnicorn","html_url":"https://github.com/HungUnicorn","followers_url":"https://api.github.com/users/HungUnicorn/followers","following_url":"https://api.github.com/users/HungUnicorn/following{/other_user}","gists_url":"https://api.github.com/users/HungUnicorn/gists{/gist_id}","starred_url":"https://api.github.com/users/HungUnicorn/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/HungUnicorn/subscriptions","organizations_url":"https://api.github.com/users/HungUnicorn/orgs","repos_url":"https://api.github.com/users/HungUnicorn/repos","events_url":"https://api.github.com/users/HungUnicorn/events{/privacy}","received_events_url":"https://api.github.com/users/HungUnicorn/received_events","type":"User","site_admin":false},"body":"Would all file paths must be imported from conf.properties and Config?","created_at":"2015-04-22T09:09:08Z","updated_at":"2015-04-24T14:13:02Z","closed_at":null,"merged_at":null,"merge_commit_sha":"f08013fcc22b766258b818d121af927fd2ce404a","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/sscdotopen/trackthetrackers/pulls/16/commits","review_comments_url":"https://api.github.com/repos/sscdotopen/trackthetrackers/pulls/16/comments","review_comment_url":"https://api.github.com/repos/sscdotopen/trackthetrackers/pulls/comments{/number}","comments_url":"https://api.github.com/repos/sscdotopen/trackthetrackers/issues/16/comments","statuses_url":"https://api.github.com/repos/sscdotopen/trackthetrackers/statuses/0ff5de56e033a0b1ebe7eaa15f4996ac513e7cfb","head":{"label":"HungUnicorn:dev","ref":"dev","sha":"0ff5de56e033a0b1ebe7eaa15f4996ac513e7cfb","user":{"login":"HungUnicorn","id":6980238,"avatar_url":"https://avatars.githubusercontent.com/u/6980238?v=3","gravatar_id":"","url":"https://api.github.com/users/HungUnicorn","html_url":"https://github.com/HungUnicorn","followers_url":"https://api.github.com/users/HungUnicorn/followers","following_url":"https://api.github.com/users/HungUnicorn/following{/other_user}","gists_url":"https://api.github.com/users/HungUnicorn/gists{/gist_id}","starred_url":"https://api.github.com/users/HungUnicorn/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/HungUnicorn/subscriptions","organizations_url":"https://api.github.com/users/HungUnicorn/orgs","repos_url":"https://api.github.com/users/HungUnicorn/repos","events_url":"https://api.github.com/users/HungUnicorn/events{/privacy}","received_events_url":"https://api.github.com/users/HungUnicorn/received_events","type":"User","site_admin":false},"repo":{"id":34348517,"name":"trackthetrackers","full_name":"HungUnicorn/trackthetrackers","owner":{"login":"HungUnicorn","id":6980238,"avatar_url":"https://avatars.githubusercontent.com/u/6980238?v=3","gravatar_id":"","url":"https://api.github.com/users/HungUnicorn","html_url":"https://github.com/HungUnicorn","followers_url":"https://api.github.com/users/HungUnicorn/followers","following_url":"https://api.github.com/users/HungUnicorn/following{/other_user}","gists_url":"https://api.github.com/users/HungUnicorn/gists{/gist_id}","starred_url":"https://api.github.com/users/HungUnicorn/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/HungUnicorn/subscriptions","organizations_url":"https://api.github.com/users/HungUnicorn/orgs","repos_url":"https://api.github.com/users/HungUnicorn/repos","events_url":"https://api.github.com/users/HungUnicorn/events{/privacy}","received_events_url":"https://api.github.com/users/HungUnicorn/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/HungUnicorn/trackthetrackers","description":"","fork":true,"url":"https://api.github.com/repos/HungUnicorn/trackthetrackers","forks_url":"https://api.github.com/repos/HungUnicorn/trackthetrackers/forks","keys_url":"https://api.github.com/repos/HungUnicorn/trackthetrackers/keys{/key_id}","collaborators_url":"https://api.github.com/repos/HungUnicorn/trackthetrackers/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/HungUnicorn/trackthetrackers/teams","hooks_url":"https://api.github.com/repos/HungUnicorn/trackthetrackers/hooks","issue_events_url":"https://api.github.com/repos/HungUnicorn/trackthetrackers/issues/events{/number}","events_url":"https://api.github.com/repos/HungUnicorn/trackthetrackers/events","assignees_url":"https://api.github.com/repos/HungUnicorn/trackthetrackers/assignees{/user}","branches_url":"https://api.github.com/repos/HungUnicorn/trackthetrackers/branches{/branch}","tags_url":"https://api.github.com/repos/HungUnicorn/trackthetrackers/tags","blobs_url":"https://api.github.com/repos/HungUnicorn/trackthetrackers/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/HungUnicorn/trackthetrackers/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/HungUnicorn/trackthetrackers/git/refs{/sha}","trees_url":"https://api.github.com/repos/HungUnicorn/trackthetrackers/git/trees{/sha}","statuses_url":"https://api.github.com/repos/HungUnicorn/trackthetrackers/statuses/{sha}","languages_url":"https://api.github.com/repos/HungUnicorn/trackthetrackers/languages","stargazers_url":"https://api.github.com/repos/HungUnicorn/trackthetrackers/stargazers","contributors_url":"https://api.github.com/repos/HungUnicorn/trackthetrackers/contributors","subscribers_url":"https://api.github.com/repos/HungUnicorn/trackthetrackers/subscribers","subscription_url":"https://api.github.com/repos/HungUnicorn/trackthetrackers/subscription","commits_url":"https://api.github.com/repos/HungUnicorn/trackthetrackers/commits{/sha}","git_commits_url":"https://api.github.com/repos/HungUnicorn/trackthetrackers/git/commits{/sha}","comments_url":"https://api.github.com/repos/HungUnicorn/trackthetrackers/comments{/number}","issue_comment_url":"https://api.github.com/repos/HungUnicorn/trackthetrackers/issues/comments{/number}","contents_url":"https://api.github.com/repos/HungUnicorn/trackthetrackers/contents/{+path}","compare_url":"https://api.github.com/repos/HungUnicorn/trackthetrackers/compare/{base}...{head}","merges_url":"https://api.github.com/repos/HungUnicorn/trackthetrackers/merges","archive_url":"https://api.github.com/repos/HungUnicorn/trackthetrackers/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/HungUnicorn/trackthetrackers/downloads","issues_url":"https://api.github.com/repos/HungUnicorn/trackthetrackers/issues{/number}","pulls_url":"https://api.github.com/repos/HungUnicorn/trackthetrackers/pulls{/number}","milestones_url":"https://api.github.com/repos/HungUnicorn/trackthetrackers/milestones{/number}","notifications_url":"https://api.github.com/repos/HungUnicorn/trackthetrackers/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/HungUnicorn/trackthetrackers/labels{/name}","releases_url":"https://api.github.com/repos/HungUnicorn/trackthetrackers/releases{/id}","created_at":"2015-04-21T19:44:23Z","updated_at":"2015-04-22T09:08:17Z","pushed_at":"2015-04-22T09:08:17Z","git_url":"git://github.com/HungUnicorn/trackthetrackers.git","ssh_url":"git@github.com:HungUnicorn/trackthetrackers.git","clone_url":"https://github.com/HungUnicorn/trackthetrackers.git","svn_url":"https://github.com/HungUnicorn/trackthetrackers","homepage":null,"size":260815,"stargazers_count":0,"watchers_count":0,"language":"HTML","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":"dev"}},"base":{"label":"sscdotopen:master","ref":"master","sha":"1c66c1c6addd9f5e585f26902d66af766c8059d5","user":{"login":"sscdotopen","id":409707,"avatar_url":"https://avatars.githubusercontent.com/u/409707?v=3","gravatar_id":"","url":"https://api.github.com/users/sscdotopen","html_url":"https://github.com/sscdotopen","followers_url":"https://api.github.com/users/sscdotopen/followers","following_url":"https://api.github.com/users/sscdotopen/following{/other_user}","gists_url":"https://api.github.com/users/sscdotopen/gists{/gist_id}","starred_url":"https://api.github.com/users/sscdotopen/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sscdotopen/subscriptions","organizations_url":"https://api.github.com/users/sscdotopen/orgs","repos_url":"https://api.github.com/users/sscdotopen/repos","events_url":"https://api.github.com/users/sscdotopen/events{/privacy}","received_events_url":"https://api.github.com/users/sscdotopen/received_events","type":"User","site_admin":false},"repo":{"id":26857656,"name":"trackthetrackers","full_name":"sscdotopen/trackthetrackers","owner":{"login":"sscdotopen","id":409707,"avatar_url":"https://avatars.githubusercontent.com/u/409707?v=3","gravatar_id":"","url":"https://api.github.com/users/sscdotopen","html_url":"https://github.com/sscdotopen","followers_url":"https://api.github.com/users/sscdotopen/followers","following_url":"https://api.github.com/users/sscdotopen/following{/other_user}","gists_url":"https://api.github.com/users/sscdotopen/gists{/gist_id}","starred_url":"https://api.github.com/users/sscdotopen/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sscdotopen/subscriptions","organizations_url":"https://api.github.com/users/sscdotopen/orgs","repos_url":"https://api.github.com/users/sscdotopen/repos","events_url":"https://api.github.com/users/sscdotopen/events{/privacy}","received_events_url":"https://api.github.com/users/sscdotopen/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/sscdotopen/trackthetrackers","description":"","fork":false,"url":"https://api.github.com/repos/sscdotopen/trackthetrackers","forks_url":"https://api.github.com/repos/sscdotopen/trackthetrackers/forks","keys_url":"https://api.github.com/repos/sscdotopen/trackthetrackers/keys{/key_id}","collaborators_url":"https://api.github.com/repos/sscdotopen/trackthetrackers/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/sscdotopen/trackthetrackers/teams","hooks_url":"https://api.github.com/repos/sscdotopen/trackthetrackers/hooks","issue_events_url":"https://api.github.com/repos/sscdotopen/trackthetrackers/issues/events{/number}","events_url":"https://api.github.com/repos/sscdotopen/trackthetrackers/events","assignees_url":"https://api.github.com/repos/sscdotopen/trackthetrackers/assignees{/user}","branches_url":"https://api.github.com/repos/sscdotopen/trackthetrackers/branches{/branch}","tags_url":"https://api.github.com/repos/sscdotopen/trackthetrackers/tags","blobs_url":"https://api.github.com/repos/sscdotopen/trackthetrackers/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/sscdotopen/trackthetrackers/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/sscdotopen/trackthetrackers/git/refs{/sha}","trees_url":"https://api.github.com/repos/sscdotopen/trackthetrackers/git/trees{/sha}","statuses_url":"https://api.github.com/repos/sscdotopen/trackthetrackers/statuses/{sha}","languages_url":"https://api.github.com/repos/sscdotopen/trackthetrackers/languages","stargazers_url":"https://api.github.com/repos/sscdotopen/trackthetrackers/stargazers","contributors_url":"https://api.github.com/repos/sscdotopen/trackthetrackers/contributors","subscribers_url":"https://api.github.com/repos/sscdotopen/trackthetrackers/subscribers","subscription_url":"https://api.github.com/repos/sscdotopen/trackthetrackers/subscription","commits_url":"https://api.github.com/repos/sscdotopen/trackthetrackers/commits{/sha}","git_commits_url":"https://api.github.com/repos/sscdotopen/trackthetrackers/git/commits{/sha}","comments_url":"https://api.github.com/repos/sscdotopen/trackthetrackers/comments{/number}","issue_comment_url":"https://api.github.com/repos/sscdotopen/trackthetrackers/issues/comments{/number}","contents_url":"https://api.github.com/repos/sscdotopen/trackthetrackers/contents/{+path}","compare_url":"https://api.github.com/repos/sscdotopen/trackthetrackers/compare/{base}...{head}","merges_url":"https://api.github.com/repos/sscdotopen/trackthetrackers/merges","archive_url":"https://api.github.com/repos/sscdotopen/trackthetrackers/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/sscdotopen/trackthetrackers/downloads","issues_url":"https://api.github.com/repos/sscdotopen/trackthetrackers/issues{/number}","pulls_url":"https://api.github.com/repos/sscdotopen/trackthetrackers/pulls{/number}","milestones_url":"https://api.github.com/repos/sscdotopen/trackthetrackers/milestones{/number}","notifications_url":"https://api.github.com/repos/sscdotopen/trackthetrackers/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/sscdotopen/trackthetrackers/labels{/name}","releases_url":"https://api.github.com/repos/sscdotopen/trackthetrackers/releases{/id}","created_at":"2014-11-19T11:09:15Z","updated_at":"2015-04-22T08:49:20Z","pushed_at":"2015-04-22T15:42:04Z","git_url":"git://github.com/sscdotopen/trackthetrackers.git","ssh_url":"git@github.com:sscdotopen/trackthetrackers.git","clone_url":"https://github.com/sscdotopen/trackthetrackers.git","svn_url":"https://github.com/sscdotopen/trackthetrackers","homepage":null,"size":260815,"stargazers_count":1,"watchers_count":1,"language":"HTML","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":3,"mirror_url":null,"open_issues_count":2,"forks":3,"open_issues":2,"watchers":1,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/sscdotopen/trackthetrackers/pulls/16"},"html":{"href":"https://github.com/sscdotopen/trackthetrackers/pull/16"},"issue":{"href":"https://api.github.com/repos/sscdotopen/trackthetrackers/issues/16"},"comments":{"href":"https://api.github.com/repos/sscdotopen/trackthetrackers/issues/16/comments"},"review_comments":{"href":"https://api.github.com/repos/sscdotopen/trackthetrackers/pulls/16/comments"},"review_comment":{"href":"https://api.github.com/repos/sscdotopen/trackthetrackers/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/sscdotopen/trackthetrackers/pulls/16/commits"},"statuses":{"href":"https://api.github.com/repos/sscdotopen/trackthetrackers/statuses/0ff5de56e033a0b1ebe7eaa15f4996ac513e7cfb"}}}}