{"action":"opened","number":3,"pull_request":{"url":"https://api.github.com/repos/WotFace/ShowFace/pulls/3","id":219947100,"node_id":"MDExOlB1bGxSZXF1ZXN0MjE5OTQ3MTAw","html_url":"https://github.com/WotFace/ShowFace/pull/3","diff_url":"https://github.com/WotFace/ShowFace/pull/3.diff","patch_url":"https://github.com/WotFace/ShowFace/pull/3.patch","issue_url":"https://api.github.com/repos/WotFace/ShowFace/issues/3","number":3,"state":"open","locked":false,"title":"WIP: Implement k best times to meet algo","user":{"login":"taneliang","id":12784593,"node_id":"MDQ6VXNlcjEyNzg0NTkz","avatar_url":"https://avatars2.githubusercontent.com/u/12784593?v=4","gravatar_id":"","url":"https://api.github.com/users/taneliang","html_url":"https://github.com/taneliang","followers_url":"https://api.github.com/users/taneliang/followers","following_url":"https://api.github.com/users/taneliang/following{/other_user}","gists_url":"https://api.github.com/users/taneliang/gists{/gist_id}","starred_url":"https://api.github.com/users/taneliang/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/taneliang/subscriptions","organizations_url":"https://api.github.com/users/taneliang/orgs","repos_url":"https://api.github.com/users/taneliang/repos","events_url":"https://api.github.com/users/taneliang/events{/privacy}","received_events_url":"https://api.github.com/users/taneliang/received_events","type":"User","site_admin":false},"body":"### TODO\r\n\r\n- [x] Find promising algorithm to find k best times to meet (https://core.ac.uk/download/pdf/35457835.pdf)\r\n- [x] Implement the algorithm and test its perf. \r\n\r\nBelow = `n`, right = `k`, cells = mean of 5 trials in `ms` | 10 | 100 | 1000 | 10000 | 100000\r\n-- | -- | -- | -- | -- | --\r\n100 | 0.4818 | 3.8698 |   |   |  \r\n1000 | 1.2718 | 4.8108 | 27.9626 |   |  \r\n10000 | 0.5148 | 7.7414 | 41.0614 | 2550.7312 |  \r\n100000 | 8.2364 | 13.8864 | 58.2834 | 5409.8736 | 420032.2238\r\n\r\n- [ ] Implement way to pull out those k best subarrays\r\n- [ ] Integrate complete ShowFace show data structure\r\n- [ ] Move implementation out of test file into its own file\r\n- [ ] Complete tests\r\n\r\n#### After this PR is merged\r\n\r\n- Implement UI to display and select best times to meet\r\n- Decide if it's worth running this in a web worker. Probably not.","created_at":"2018-10-03T08:03:30Z","updated_at":"2018-10-03T08:03:30Z","closed_at":null,"merged_at":null,"merge_commit_sha":null,"assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/WotFace/ShowFace/pulls/3/commits","review_comments_url":"https://api.github.com/repos/WotFace/ShowFace/pulls/3/comments","review_comment_url":"https://api.github.com/repos/WotFace/ShowFace/pulls/comments{/number}","comments_url":"https://api.github.com/repos/WotFace/ShowFace/issues/3/comments","statuses_url":"https://api.github.com/repos/WotFace/ShowFace/statuses/4b97d60b0d55a8c0b5d94edafc3abf46eaf06aaf","head":{"label":"WotFace:best-meetings","ref":"best-meetings","sha":"4b97d60b0d55a8c0b5d94edafc3abf46eaf06aaf","user":{"login":"WotFace","id":43414973,"node_id":"MDEyOk9yZ2FuaXphdGlvbjQzNDE0OTcz","avatar_url":"https://avatars2.githubusercontent.com/u/43414973?v=4","gravatar_id":"","url":"https://api.github.com/users/WotFace","html_url":"https://github.com/WotFace","followers_url":"https://api.github.com/users/WotFace/followers","following_url":"https://api.github.com/users/WotFace/following{/other_user}","gists_url":"https://api.github.com/users/WotFace/gists{/gist_id}","starred_url":"https://api.github.com/users/WotFace/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/WotFace/subscriptions","organizations_url":"https://api.github.com/users/WotFace/orgs","repos_url":"https://api.github.com/users/WotFace/repos","events_url":"https://api.github.com/users/WotFace/events{/privacy}","received_events_url":"https://api.github.com/users/WotFace/received_events","type":"Organization","site_admin":false},"repo":{"id":147902011,"node_id":"MDEwOlJlcG9zaXRvcnkxNDc5MDIwMTE=","name":"ShowFace","full_name":"WotFace/ShowFace","private":false,"owner":{"login":"WotFace","id":43414973,"node_id":"MDEyOk9yZ2FuaXphdGlvbjQzNDE0OTcz","avatar_url":"https://avatars2.githubusercontent.com/u/43414973?v=4","gravatar_id":"","url":"https://api.github.com/users/WotFace","html_url":"https://github.com/WotFace","followers_url":"https://api.github.com/users/WotFace/followers","following_url":"https://api.github.com/users/WotFace/following{/other_user}","gists_url":"https://api.github.com/users/WotFace/gists{/gist_id}","starred_url":"https://api.github.com/users/WotFace/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/WotFace/subscriptions","organizations_url":"https://api.github.com/users/WotFace/orgs","repos_url":"https://api.github.com/users/WotFace/repos","events_url":"https://api.github.com/users/WotFace/events{/privacy}","received_events_url":"https://api.github.com/users/WotFace/received_events","type":"Organization","site_admin":false},"html_url":"https://github.com/WotFace/ShowFace","description":null,"fork":false,"url":"https://api.github.com/repos/WotFace/ShowFace","forks_url":"https://api.github.com/repos/WotFace/ShowFace/forks","keys_url":"https://api.github.com/repos/WotFace/ShowFace/keys{/key_id}","collaborators_url":"https://api.github.com/repos/WotFace/ShowFace/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/WotFace/ShowFace/teams","hooks_url":"https://api.github.com/repos/WotFace/ShowFace/hooks","issue_events_url":"https://api.github.com/repos/WotFace/ShowFace/issues/events{/number}","events_url":"https://api.github.com/repos/WotFace/ShowFace/events","assignees_url":"https://api.github.com/repos/WotFace/ShowFace/assignees{/user}","branches_url":"https://api.github.com/repos/WotFace/ShowFace/branches{/branch}","tags_url":"https://api.github.com/repos/WotFace/ShowFace/tags","blobs_url":"https://api.github.com/repos/WotFace/ShowFace/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/WotFace/ShowFace/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/WotFace/ShowFace/git/refs{/sha}","trees_url":"https://api.github.com/repos/WotFace/ShowFace/git/trees{/sha}","statuses_url":"https://api.github.com/repos/WotFace/ShowFace/statuses/{sha}","languages_url":"https://api.github.com/repos/WotFace/ShowFace/languages","stargazers_url":"https://api.github.com/repos/WotFace/ShowFace/stargazers","contributors_url":"https://api.github.com/repos/WotFace/ShowFace/contributors","subscribers_url":"https://api.github.com/repos/WotFace/ShowFace/subscribers","subscription_url":"https://api.github.com/repos/WotFace/ShowFace/subscription","commits_url":"https://api.github.com/repos/WotFace/ShowFace/commits{/sha}","git_commits_url":"https://api.github.com/repos/WotFace/ShowFace/git/commits{/sha}","comments_url":"https://api.github.com/repos/WotFace/ShowFace/comments{/number}","issue_comment_url":"https://api.github.com/repos/WotFace/ShowFace/issues/comments{/number}","contents_url":"https://api.github.com/repos/WotFace/ShowFace/contents/{+path}","compare_url":"https://api.github.com/repos/WotFace/ShowFace/compare/{base}...{head}","merges_url":"https://api.github.com/repos/WotFace/ShowFace/merges","archive_url":"https://api.github.com/repos/WotFace/ShowFace/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/WotFace/ShowFace/downloads","issues_url":"https://api.github.com/repos/WotFace/ShowFace/issues{/number}","pulls_url":"https://api.github.com/repos/WotFace/ShowFace/pulls{/number}","milestones_url":"https://api.github.com/repos/WotFace/ShowFace/milestones{/number}","notifications_url":"https://api.github.com/repos/WotFace/ShowFace/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/WotFace/ShowFace/labels{/name}","releases_url":"https://api.github.com/repos/WotFace/ShowFace/releases{/id}","deployments_url":"https://api.github.com/repos/WotFace/ShowFace/deployments","created_at":"2018-09-08T04:49:09Z","updated_at":"2018-09-19T15:09:35Z","pushed_at":"2018-10-03T07:56:13Z","git_url":"git://github.com/WotFace/ShowFace.git","ssh_url":"git@github.com:WotFace/ShowFace.git","clone_url":"https://github.com/WotFace/ShowFace.git","svn_url":"https://github.com/WotFace/ShowFace","homepage":"https://app.showface.io","size":830,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":2,"license":null,"forks":0,"open_issues":2,"watchers":0,"default_branch":"master"}},"base":{"label":"WotFace:master","ref":"master","sha":"ba5c2eda1ef21a168897bc24347d63ea8882e76a","user":{"login":"WotFace","id":43414973,"node_id":"MDEyOk9yZ2FuaXphdGlvbjQzNDE0OTcz","avatar_url":"https://avatars2.githubusercontent.com/u/43414973?v=4","gravatar_id":"","url":"https://api.github.com/users/WotFace","html_url":"https://github.com/WotFace","followers_url":"https://api.github.com/users/WotFace/followers","following_url":"https://api.github.com/users/WotFace/following{/other_user}","gists_url":"https://api.github.com/users/WotFace/gists{/gist_id}","starred_url":"https://api.github.com/users/WotFace/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/WotFace/subscriptions","organizations_url":"https://api.github.com/users/WotFace/orgs","repos_url":"https://api.github.com/users/WotFace/repos","events_url":"https://api.github.com/users/WotFace/events{/privacy}","received_events_url":"https://api.github.com/users/WotFace/received_events","type":"Organization","site_admin":false},"repo":{"id":147902011,"node_id":"MDEwOlJlcG9zaXRvcnkxNDc5MDIwMTE=","name":"ShowFace","full_name":"WotFace/ShowFace","private":false,"owner":{"login":"WotFace","id":43414973,"node_id":"MDEyOk9yZ2FuaXphdGlvbjQzNDE0OTcz","avatar_url":"https://avatars2.githubusercontent.com/u/43414973?v=4","gravatar_id":"","url":"https://api.github.com/users/WotFace","html_url":"https://github.com/WotFace","followers_url":"https://api.github.com/users/WotFace/followers","following_url":"https://api.github.com/users/WotFace/following{/other_user}","gists_url":"https://api.github.com/users/WotFace/gists{/gist_id}","starred_url":"https://api.github.com/users/WotFace/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/WotFace/subscriptions","organizations_url":"https://api.github.com/users/WotFace/orgs","repos_url":"https://api.github.com/users/WotFace/repos","events_url":"https://api.github.com/users/WotFace/events{/privacy}","received_events_url":"https://api.github.com/users/WotFace/received_events","type":"Organization","site_admin":false},"html_url":"https://github.com/WotFace/ShowFace","description":null,"fork":false,"url":"https://api.github.com/repos/WotFace/ShowFace","forks_url":"https://api.github.com/repos/WotFace/ShowFace/forks","keys_url":"https://api.github.com/repos/WotFace/ShowFace/keys{/key_id}","collaborators_url":"https://api.github.com/repos/WotFace/ShowFace/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/WotFace/ShowFace/teams","hooks_url":"https://api.github.com/repos/WotFace/ShowFace/hooks","issue_events_url":"https://api.github.com/repos/WotFace/ShowFace/issues/events{/number}","events_url":"https://api.github.com/repos/WotFace/ShowFace/events","assignees_url":"https://api.github.com/repos/WotFace/ShowFace/assignees{/user}","branches_url":"https://api.github.com/repos/WotFace/ShowFace/branches{/branch}","tags_url":"https://api.github.com/repos/WotFace/ShowFace/tags","blobs_url":"https://api.github.com/repos/WotFace/ShowFace/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/WotFace/ShowFace/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/WotFace/ShowFace/git/refs{/sha}","trees_url":"https://api.github.com/repos/WotFace/ShowFace/git/trees{/sha}","statuses_url":"https://api.github.com/repos/WotFace/ShowFace/statuses/{sha}","languages_url":"https://api.github.com/repos/WotFace/ShowFace/languages","stargazers_url":"https://api.github.com/repos/WotFace/ShowFace/stargazers","contributors_url":"https://api.github.com/repos/WotFace/ShowFace/contributors","subscribers_url":"https://api.github.com/repos/WotFace/ShowFace/subscribers","subscription_url":"https://api.github.com/repos/WotFace/ShowFace/subscription","commits_url":"https://api.github.com/repos/WotFace/ShowFace/commits{/sha}","git_commits_url":"https://api.github.com/repos/WotFace/ShowFace/git/commits{/sha}","comments_url":"https://api.github.com/repos/WotFace/ShowFace/comments{/number}","issue_comment_url":"https://api.github.com/repos/WotFace/ShowFace/issues/comments{/number}","contents_url":"https://api.github.com/repos/WotFace/ShowFace/contents/{+path}","compare_url":"https://api.github.com/repos/WotFace/ShowFace/compare/{base}...{head}","merges_url":"https://api.github.com/repos/WotFace/ShowFace/merges","archive_url":"https://api.github.com/repos/WotFace/ShowFace/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/WotFace/ShowFace/downloads","issues_url":"https://api.github.com/repos/WotFace/ShowFace/issues{/number}","pulls_url":"https://api.github.com/repos/WotFace/ShowFace/pulls{/number}","milestones_url":"https://api.github.com/repos/WotFace/ShowFace/milestones{/number}","notifications_url":"https://api.github.com/repos/WotFace/ShowFace/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/WotFace/ShowFace/labels{/name}","releases_url":"https://api.github.com/repos/WotFace/ShowFace/releases{/id}","deployments_url":"https://api.github.com/repos/WotFace/ShowFace/deployments","created_at":"2018-09-08T04:49:09Z","updated_at":"2018-09-19T15:09:35Z","pushed_at":"2018-10-03T07:56:13Z","git_url":"git://github.com/WotFace/ShowFace.git","ssh_url":"git@github.com:WotFace/ShowFace.git","clone_url":"https://github.com/WotFace/ShowFace.git","svn_url":"https://github.com/WotFace/ShowFace","homepage":"https://app.showface.io","size":830,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":2,"license":null,"forks":0,"open_issues":2,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/WotFace/ShowFace/pulls/3"},"html":{"href":"https://github.com/WotFace/ShowFace/pull/3"},"issue":{"href":"https://api.github.com/repos/WotFace/ShowFace/issues/3"},"comments":{"href":"https://api.github.com/repos/WotFace/ShowFace/issues/3/comments"},"review_comments":{"href":"https://api.github.com/repos/WotFace/ShowFace/pulls/3/comments"},"review_comment":{"href":"https://api.github.com/repos/WotFace/ShowFace/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/WotFace/ShowFace/pulls/3/commits"},"statuses":{"href":"https://api.github.com/repos/WotFace/ShowFace/statuses/4b97d60b0d55a8c0b5d94edafc3abf46eaf06aaf"}},"author_association":"COLLABORATOR","merged":false,"mergeable":null,"rebaseable":null,"mergeable_state":"unknown","merged_by":null,"comments":0,"review_comments":0,"maintainer_can_modify":false,"commits":1,"additions":1338,"deletions":0,"changed_files":3}}
{"actor":{"display_login":"taneliang"}}