{"action":"created","comment":{"url":"https://api.github.com/repos/umegaya/channer/pulls/comments/66226449","id":66226449,"diff_hunk":"@@ -0,0 +1,741 @@\n+package actors\n+\n+import (\n+\t\"log\"\n+\t\"fmt\"\n+\t\"time\"\n+\t\"sort\"\n+\t\"sync\"\n+\t\"math\"\n+\t\"sync/atomic\"\n+\n+\tproto \"github.com/umegaya/channer/server/proto\"\n+\t\"github.com/umegaya/yue\"\n+\t\"github.com/umegaya/channer/server/lib/utils\"\n+\tyuep \"github.com/umegaya/yue/proto\"\n+)\n+\n+const (\n+\tINVALID_HOTBUCKET = iota\n+\tSUMMERY_HOUR_HOTBUCKET\n+\tSUMMERY_DAY_HOTBUCKET\n+\tSUMMERY_WEEK_HOTBUCKET\n+\tSUMMERY_ALLTIME_HOTBUCKET\n+)\n+\n+const (\n+\tDEFAULT_HOTBUCKET_SIZE = 1024 * 10\n+\tPER_CHANNEL_HOTBUCKET_SIZE = 64\n+\tALLTIME_SUMMERY_LIMIT = 10000\n+\tGOAT_UPDATE_SPAN_SEC = 60 * 60 * 12 //12h\n+)\n+\n+//\n+// FetchResult \n+//\n+// FetchResult represents data format which fetcher should return\n+type FetchResult struct {\n+\tid proto.UUID\t\t//target id\n+\tparent proto.UUID\t//target parent id. FetchResult will be group by parent","path":"server/lib/actors/hot.go","position":39,"original_position":39,"commit_id":"e2095a56d3268b746cf48e02340ffc7fe393748b","original_commit_id":"e2095a56d3268b746cf48e02340ffc7fe393748b","user":{"login":"umegaya","id":39032,"avatar_url":"https://avatars.githubusercontent.com/u/39032?v=3","gravatar_id":"","url":"https://api.github.com/users/umegaya","html_url":"https://github.com/umegaya","followers_url":"https://api.github.com/users/umegaya/followers","following_url":"https://api.github.com/users/umegaya/following{/other_user}","gists_url":"https://api.github.com/users/umegaya/gists{/gist_id}","starred_url":"https://api.github.com/users/umegaya/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/umegaya/subscriptions","organizations_url":"https://api.github.com/users/umegaya/orgs","repos_url":"https://api.github.com/users/umegaya/repos","events_url":"https://api.github.com/users/umegaya/events{/privacy}","received_events_url":"https://api.github.com/users/umegaya/received_events","type":"User","site_admin":false},"body":"__[gometalinter]__\n* [gotype] undeclared name: proto","created_at":"2016-06-08T09:54:19Z","updated_at":"2016-06-08T09:54:19Z","html_url":"https://github.com/umegaya/channer/pull/10#discussion_r66226449","pull_request_url":"https://api.github.com/repos/umegaya/channer/pulls/10","_links":{"self":{"href":"https://api.github.com/repos/umegaya/channer/pulls/comments/66226449"},"html":{"href":"https://github.com/umegaya/channer/pull/10#discussion_r66226449"},"pull_request":{"href":"https://api.github.com/repos/umegaya/channer/pulls/10"}}},"pull_request":{"url":"https://api.github.com/repos/umegaya/channer/pulls/10","id":73017224,"html_url":"https://github.com/umegaya/channer/pull/10","diff_url":"https://github.com/umegaya/channer/pull/10.diff","patch_url":"https://github.com/umegaya/channer/pull/10.patch","issue_url":"https://api.github.com/repos/umegaya/channer/issues/10","number":10,"state":"open","locked":false,"title":"Umegaya/newmenu","user":{"login":"umegaya","id":39032,"avatar_url":"https://avatars.githubusercontent.com/u/39032?v=3","gravatar_id":"","url":"https://api.github.com/users/umegaya","html_url":"https://github.com/umegaya","followers_url":"https://api.github.com/users/umegaya/followers","following_url":"https://api.github.com/users/umegaya/following{/other_user}","gists_url":"https://api.github.com/users/umegaya/gists{/gist_id}","starred_url":"https://api.github.com/users/umegaya/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/umegaya/subscriptions","organizations_url":"https://api.github.com/users/umegaya/orgs","repos_url":"https://api.github.com/users/umegaya/repos","events_url":"https://api.github.com/users/umegaya/events{/privacy}","received_events_url":"https://api.github.com/users/umegaya/received_events","type":"User","site_admin":false},"body":"","created_at":"2016-06-08T09:53:05Z","updated_at":"2016-06-08T09:54:19Z","closed_at":null,"merged_at":null,"merge_commit_sha":"13b12ad7053d89f6c7b2517077dfa8b49460d13c","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/umegaya/channer/pulls/10/commits","review_comments_url":"https://api.github.com/repos/umegaya/channer/pulls/10/comments","review_comment_url":"https://api.github.com/repos/umegaya/channer/pulls/comments{/number}","comments_url":"https://api.github.com/repos/umegaya/channer/issues/10/comments","statuses_url":"https://api.github.com/repos/umegaya/channer/statuses/e2095a56d3268b746cf48e02340ffc7fe393748b","head":{"label":"umegaya:umegaya/newmenu","ref":"umegaya/newmenu","sha":"e2095a56d3268b746cf48e02340ffc7fe393748b","user":{"login":"umegaya","id":39032,"avatar_url":"https://avatars.githubusercontent.com/u/39032?v=3","gravatar_id":"","url":"https://api.github.com/users/umegaya","html_url":"https://github.com/umegaya","followers_url":"https://api.github.com/users/umegaya/followers","following_url":"https://api.github.com/users/umegaya/following{/other_user}","gists_url":"https://api.github.com/users/umegaya/gists{/gist_id}","starred_url":"https://api.github.com/users/umegaya/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/umegaya/subscriptions","organizations_url":"https://api.github.com/users/umegaya/orgs","repos_url":"https://api.github.com/users/umegaya/repos","events_url":"https://api.github.com/users/umegaya/events{/privacy}","received_events_url":"https://api.github.com/users/umegaya/received_events","type":"User","site_admin":false},"repo":{"id":45638938,"name":"channer","full_name":"umegaya/channer","owner":{"login":"umegaya","id":39032,"avatar_url":"https://avatars.githubusercontent.com/u/39032?v=3","gravatar_id":"","url":"https://api.github.com/users/umegaya","html_url":"https://github.com/umegaya","followers_url":"https://api.github.com/users/umegaya/followers","following_url":"https://api.github.com/users/umegaya/following{/other_user}","gists_url":"https://api.github.com/users/umegaya/gists{/gist_id}","starred_url":"https://api.github.com/users/umegaya/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/umegaya/subscriptions","organizations_url":"https://api.github.com/users/umegaya/orgs","repos_url":"https://api.github.com/users/umegaya/repos","events_url":"https://api.github.com/users/umegaya/events{/privacy}","received_events_url":"https://api.github.com/users/umegaya/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/umegaya/channer","description":"better forum builder","fork":false,"url":"https://api.github.com/repos/umegaya/channer","forks_url":"https://api.github.com/repos/umegaya/channer/forks","keys_url":"https://api.github.com/repos/umegaya/channer/keys{/key_id}","collaborators_url":"https://api.github.com/repos/umegaya/channer/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/umegaya/channer/teams","hooks_url":"https://api.github.com/repos/umegaya/channer/hooks","issue_events_url":"https://api.github.com/repos/umegaya/channer/issues/events{/number}","events_url":"https://api.github.com/repos/umegaya/channer/events","assignees_url":"https://api.github.com/repos/umegaya/channer/assignees{/user}","branches_url":"https://api.github.com/repos/umegaya/channer/branches{/branch}","tags_url":"https://api.github.com/repos/umegaya/channer/tags","blobs_url":"https://api.github.com/repos/umegaya/channer/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/umegaya/channer/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/umegaya/channer/git/refs{/sha}","trees_url":"https://api.github.com/repos/umegaya/channer/git/trees{/sha}","statuses_url":"https://api.github.com/repos/umegaya/channer/statuses/{sha}","languages_url":"https://api.github.com/repos/umegaya/channer/languages","stargazers_url":"https://api.github.com/repos/umegaya/channer/stargazers","contributors_url":"https://api.github.com/repos/umegaya/channer/contributors","subscribers_url":"https://api.github.com/repos/umegaya/channer/subscribers","subscription_url":"https://api.github.com/repos/umegaya/channer/subscription","commits_url":"https://api.github.com/repos/umegaya/channer/commits{/sha}","git_commits_url":"https://api.github.com/repos/umegaya/channer/git/commits{/sha}","comments_url":"https://api.github.com/repos/umegaya/channer/comments{/number}","issue_comment_url":"https://api.github.com/repos/umegaya/channer/issues/comments{/number}","contents_url":"https://api.github.com/repos/umegaya/channer/contents/{+path}","compare_url":"https://api.github.com/repos/umegaya/channer/compare/{base}...{head}","merges_url":"https://api.github.com/repos/umegaya/channer/merges","archive_url":"https://api.github.com/repos/umegaya/channer/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/umegaya/channer/downloads","issues_url":"https://api.github.com/repos/umegaya/channer/issues{/number}","pulls_url":"https://api.github.com/repos/umegaya/channer/pulls{/number}","milestones_url":"https://api.github.com/repos/umegaya/channer/milestones{/number}","notifications_url":"https://api.github.com/repos/umegaya/channer/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/umegaya/channer/labels{/name}","releases_url":"https://api.github.com/repos/umegaya/channer/releases{/id}","deployments_url":"https://api.github.com/repos/umegaya/channer/deployments","created_at":"2015-11-05T20:58:32Z","updated_at":"2016-02-23T09:34:04Z","pushed_at":"2016-06-08T09:53:06Z","git_url":"git://github.com/umegaya/channer.git","ssh_url":"git@github.com:umegaya/channer.git","clone_url":"https://github.com/umegaya/channer.git","svn_url":"https://github.com/umegaya/channer","homepage":null,"size":10691,"stargazers_count":0,"watchers_count":0,"language":"Objective-C","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":4,"forks":0,"open_issues":4,"watchers":0,"default_branch":"master"}},"base":{"label":"umegaya:master","ref":"master","sha":"73b95665464757db34d360e42135c6a954a37f93","user":{"login":"umegaya","id":39032,"avatar_url":"https://avatars.githubusercontent.com/u/39032?v=3","gravatar_id":"","url":"https://api.github.com/users/umegaya","html_url":"https://github.com/umegaya","followers_url":"https://api.github.com/users/umegaya/followers","following_url":"https://api.github.com/users/umegaya/following{/other_user}","gists_url":"https://api.github.com/users/umegaya/gists{/gist_id}","starred_url":"https://api.github.com/users/umegaya/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/umegaya/subscriptions","organizations_url":"https://api.github.com/users/umegaya/orgs","repos_url":"https://api.github.com/users/umegaya/repos","events_url":"https://api.github.com/users/umegaya/events{/privacy}","received_events_url":"https://api.github.com/users/umegaya/received_events","type":"User","site_admin":false},"repo":{"id":45638938,"name":"channer","full_name":"umegaya/channer","owner":{"login":"umegaya","id":39032,"avatar_url":"https://avatars.githubusercontent.com/u/39032?v=3","gravatar_id":"","url":"https://api.github.com/users/umegaya","html_url":"https://github.com/umegaya","followers_url":"https://api.github.com/users/umegaya/followers","following_url":"https://api.github.com/users/umegaya/following{/other_user}","gists_url":"https://api.github.com/users/umegaya/gists{/gist_id}","starred_url":"https://api.github.com/users/umegaya/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/umegaya/subscriptions","organizations_url":"https://api.github.com/users/umegaya/orgs","repos_url":"https://api.github.com/users/umegaya/repos","events_url":"https://api.github.com/users/umegaya/events{/privacy}","received_events_url":"https://api.github.com/users/umegaya/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/umegaya/channer","description":"better forum builder","fork":false,"url":"https://api.github.com/repos/umegaya/channer","forks_url":"https://api.github.com/repos/umegaya/channer/forks","keys_url":"https://api.github.com/repos/umegaya/channer/keys{/key_id}","collaborators_url":"https://api.github.com/repos/umegaya/channer/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/umegaya/channer/teams","hooks_url":"https://api.github.com/repos/umegaya/channer/hooks","issue_events_url":"https://api.github.com/repos/umegaya/channer/issues/events{/number}","events_url":"https://api.github.com/repos/umegaya/channer/events","assignees_url":"https://api.github.com/repos/umegaya/channer/assignees{/user}","branches_url":"https://api.github.com/repos/umegaya/channer/branches{/branch}","tags_url":"https://api.github.com/repos/umegaya/channer/tags","blobs_url":"https://api.github.com/repos/umegaya/channer/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/umegaya/channer/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/umegaya/channer/git/refs{/sha}","trees_url":"https://api.github.com/repos/umegaya/channer/git/trees{/sha}","statuses_url":"https://api.github.com/repos/umegaya/channer/statuses/{sha}","languages_url":"https://api.github.com/repos/umegaya/channer/languages","stargazers_url":"https://api.github.com/repos/umegaya/channer/stargazers","contributors_url":"https://api.github.com/repos/umegaya/channer/contributors","subscribers_url":"https://api.github.com/repos/umegaya/channer/subscribers","subscription_url":"https://api.github.com/repos/umegaya/channer/subscription","commits_url":"https://api.github.com/repos/umegaya/channer/commits{/sha}","git_commits_url":"https://api.github.com/repos/umegaya/channer/git/commits{/sha}","comments_url":"https://api.github.com/repos/umegaya/channer/comments{/number}","issue_comment_url":"https://api.github.com/repos/umegaya/channer/issues/comments{/number}","contents_url":"https://api.github.com/repos/umegaya/channer/contents/{+path}","compare_url":"https://api.github.com/repos/umegaya/channer/compare/{base}...{head}","merges_url":"https://api.github.com/repos/umegaya/channer/merges","archive_url":"https://api.github.com/repos/umegaya/channer/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/umegaya/channer/downloads","issues_url":"https://api.github.com/repos/umegaya/channer/issues{/number}","pulls_url":"https://api.github.com/repos/umegaya/channer/pulls{/number}","milestones_url":"https://api.github.com/repos/umegaya/channer/milestones{/number}","notifications_url":"https://api.github.com/repos/umegaya/channer/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/umegaya/channer/labels{/name}","releases_url":"https://api.github.com/repos/umegaya/channer/releases{/id}","deployments_url":"https://api.github.com/repos/umegaya/channer/deployments","created_at":"2015-11-05T20:58:32Z","updated_at":"2016-02-23T09:34:04Z","pushed_at":"2016-06-08T09:53:06Z","git_url":"git://github.com/umegaya/channer.git","ssh_url":"git@github.com:umegaya/channer.git","clone_url":"https://github.com/umegaya/channer.git","svn_url":"https://github.com/umegaya/channer","homepage":null,"size":10691,"stargazers_count":0,"watchers_count":0,"language":"Objective-C","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":4,"forks":0,"open_issues":4,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/umegaya/channer/pulls/10"},"html":{"href":"https://github.com/umegaya/channer/pull/10"},"issue":{"href":"https://api.github.com/repos/umegaya/channer/issues/10"},"comments":{"href":"https://api.github.com/repos/umegaya/channer/issues/10/comments"},"review_comments":{"href":"https://api.github.com/repos/umegaya/channer/pulls/10/comments"},"review_comment":{"href":"https://api.github.com/repos/umegaya/channer/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/umegaya/channer/pulls/10/commits"},"statuses":{"href":"https://api.github.com/repos/umegaya/channer/statuses/e2095a56d3268b746cf48e02340ffc7fe393748b"}}}}
{"actor":{"display_login":"umegaya"}}