{"action":"created","comment":{"url":"https://api.github.com/repos/SunnyDisposish/infection/pulls/comments/79465047","id":79465047,"diff_hunk":"@@ -0,0 +1,166 @@\n+from itertools import combinations\n+\n+class User(object):\n+    LAST_STABLE_VERSION = 1.0\n+    def __init__(self, uid):\n+        self.uid = uid\n+        self.version = self.LAST_STABLE_VERSION\n+        # coaches and students are sets of uids\n+        self.coaches = set()\n+        self.students = set()\n+        # school id\n+        self.school = None\n+\n+    def __repr__(self):\n+        return str(self.__dict__)\n+\n+\n+class School(object):\n+    def __init__(self, sid, users):\n+        # A 'school' is just a connected component of the coaching graph.\n+        self.users = users\n+        self.sid = sid","path":"infection.py","position":22,"original_position":22,"commit_id":"4292fdc64c60de923f84d25597d14fb66139474b","original_commit_id":"4292fdc64c60de923f84d25597d14fb66139474b","user":{"login":"SunnyDisposish","id":22227143,"avatar_url":"https://avatars.githubusercontent.com/u/22227143?v=3","gravatar_id":"","url":"https://api.github.com/users/SunnyDisposish","html_url":"https://github.com/SunnyDisposish","followers_url":"https://api.github.com/users/SunnyDisposish/followers","following_url":"https://api.github.com/users/SunnyDisposish/following{/other_user}","gists_url":"https://api.github.com/users/SunnyDisposish/gists{/gist_id}","starred_url":"https://api.github.com/users/SunnyDisposish/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/SunnyDisposish/subscriptions","organizations_url":"https://api.github.com/users/SunnyDisposish/orgs","repos_url":"https://api.github.com/users/SunnyDisposish/repos","events_url":"https://api.github.com/users/SunnyDisposish/events{/privacy}","received_events_url":"https://api.github.com/users/SunnyDisposish/received_events","type":"User","site_admin":false},"body":"comment sid is school id","created_at":"2016-09-19T19:04:00Z","updated_at":"2016-09-19T19:04:00Z","html_url":"https://github.com/SunnyDisposish/infection/pull/1#discussion_r79465047","pull_request_url":"https://api.github.com/repos/SunnyDisposish/infection/pulls/1","_links":{"self":{"href":"https://api.github.com/repos/SunnyDisposish/infection/pulls/comments/79465047"},"html":{"href":"https://github.com/SunnyDisposish/infection/pull/1#discussion_r79465047"},"pull_request":{"href":"https://api.github.com/repos/SunnyDisposish/infection/pulls/1"}}},"pull_request":{"url":"https://api.github.com/repos/SunnyDisposish/infection/pulls/1","id":85849391,"html_url":"https://github.com/SunnyDisposish/infection/pull/1","diff_url":"https://github.com/SunnyDisposish/infection/pull/1.diff","patch_url":"https://github.com/SunnyDisposish/infection/pull/1.patch","issue_url":"https://api.github.com/repos/SunnyDisposish/infection/issues/1","number":1,"state":"open","locked":false,"title":"submitted to Khan Academy","user":{"login":"SunnyDisposish","id":22227143,"avatar_url":"https://avatars.githubusercontent.com/u/22227143?v=3","gravatar_id":"","url":"https://api.github.com/users/SunnyDisposish","html_url":"https://github.com/SunnyDisposish","followers_url":"https://api.github.com/users/SunnyDisposish/followers","following_url":"https://api.github.com/users/SunnyDisposish/following{/other_user}","gists_url":"https://api.github.com/users/SunnyDisposish/gists{/gist_id}","starred_url":"https://api.github.com/users/SunnyDisposish/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/SunnyDisposish/subscriptions","organizations_url":"https://api.github.com/users/SunnyDisposish/orgs","repos_url":"https://api.github.com/users/SunnyDisposish/repos","events_url":"https://api.github.com/users/SunnyDisposish/events{/privacy}","received_events_url":"https://api.github.com/users/SunnyDisposish/received_events","type":"User","site_admin":false},"body":"","created_at":"2016-09-19T18:57:41Z","updated_at":"2016-09-19T19:04:00Z","closed_at":null,"merged_at":null,"merge_commit_sha":"1942ba338ceb665b0d159e932e8c44d789f3a555","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/SunnyDisposish/infection/pulls/1/commits","review_comments_url":"https://api.github.com/repos/SunnyDisposish/infection/pulls/1/comments","review_comment_url":"https://api.github.com/repos/SunnyDisposish/infection/pulls/comments{/number}","comments_url":"https://api.github.com/repos/SunnyDisposish/infection/issues/1/comments","statuses_url":"https://api.github.com/repos/SunnyDisposish/infection/statuses/4292fdc64c60de923f84d25597d14fb66139474b","head":{"label":"SunnyDisposish:submitted","ref":"submitted","sha":"4292fdc64c60de923f84d25597d14fb66139474b","user":{"login":"SunnyDisposish","id":22227143,"avatar_url":"https://avatars.githubusercontent.com/u/22227143?v=3","gravatar_id":"","url":"https://api.github.com/users/SunnyDisposish","html_url":"https://github.com/SunnyDisposish","followers_url":"https://api.github.com/users/SunnyDisposish/followers","following_url":"https://api.github.com/users/SunnyDisposish/following{/other_user}","gists_url":"https://api.github.com/users/SunnyDisposish/gists{/gist_id}","starred_url":"https://api.github.com/users/SunnyDisposish/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/SunnyDisposish/subscriptions","organizations_url":"https://api.github.com/users/SunnyDisposish/orgs","repos_url":"https://api.github.com/users/SunnyDisposish/repos","events_url":"https://api.github.com/users/SunnyDisposish/events{/privacy}","received_events_url":"https://api.github.com/users/SunnyDisposish/received_events","type":"User","site_admin":false},"repo":{"id":68634564,"name":"infection","full_name":"SunnyDisposish/infection","owner":{"login":"SunnyDisposish","id":22227143,"avatar_url":"https://avatars.githubusercontent.com/u/22227143?v=3","gravatar_id":"","url":"https://api.github.com/users/SunnyDisposish","html_url":"https://github.com/SunnyDisposish","followers_url":"https://api.github.com/users/SunnyDisposish/followers","following_url":"https://api.github.com/users/SunnyDisposish/following{/other_user}","gists_url":"https://api.github.com/users/SunnyDisposish/gists{/gist_id}","starred_url":"https://api.github.com/users/SunnyDisposish/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/SunnyDisposish/subscriptions","organizations_url":"https://api.github.com/users/SunnyDisposish/orgs","repos_url":"https://api.github.com/users/SunnyDisposish/repos","events_url":"https://api.github.com/users/SunnyDisposish/events{/privacy}","received_events_url":"https://api.github.com/users/SunnyDisposish/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/SunnyDisposish/infection","description":null,"fork":false,"url":"https://api.github.com/repos/SunnyDisposish/infection","forks_url":"https://api.github.com/repos/SunnyDisposish/infection/forks","keys_url":"https://api.github.com/repos/SunnyDisposish/infection/keys{/key_id}","collaborators_url":"https://api.github.com/repos/SunnyDisposish/infection/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/SunnyDisposish/infection/teams","hooks_url":"https://api.github.com/repos/SunnyDisposish/infection/hooks","issue_events_url":"https://api.github.com/repos/SunnyDisposish/infection/issues/events{/number}","events_url":"https://api.github.com/repos/SunnyDisposish/infection/events","assignees_url":"https://api.github.com/repos/SunnyDisposish/infection/assignees{/user}","branches_url":"https://api.github.com/repos/SunnyDisposish/infection/branches{/branch}","tags_url":"https://api.github.com/repos/SunnyDisposish/infection/tags","blobs_url":"https://api.github.com/repos/SunnyDisposish/infection/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/SunnyDisposish/infection/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/SunnyDisposish/infection/git/refs{/sha}","trees_url":"https://api.github.com/repos/SunnyDisposish/infection/git/trees{/sha}","statuses_url":"https://api.github.com/repos/SunnyDisposish/infection/statuses/{sha}","languages_url":"https://api.github.com/repos/SunnyDisposish/infection/languages","stargazers_url":"https://api.github.com/repos/SunnyDisposish/infection/stargazers","contributors_url":"https://api.github.com/repos/SunnyDisposish/infection/contributors","subscribers_url":"https://api.github.com/repos/SunnyDisposish/infection/subscribers","subscription_url":"https://api.github.com/repos/SunnyDisposish/infection/subscription","commits_url":"https://api.github.com/repos/SunnyDisposish/infection/commits{/sha}","git_commits_url":"https://api.github.com/repos/SunnyDisposish/infection/git/commits{/sha}","comments_url":"https://api.github.com/repos/SunnyDisposish/infection/comments{/number}","issue_comment_url":"https://api.github.com/repos/SunnyDisposish/infection/issues/comments{/number}","contents_url":"https://api.github.com/repos/SunnyDisposish/infection/contents/{+path}","compare_url":"https://api.github.com/repos/SunnyDisposish/infection/compare/{base}...{head}","merges_url":"https://api.github.com/repos/SunnyDisposish/infection/merges","archive_url":"https://api.github.com/repos/SunnyDisposish/infection/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/SunnyDisposish/infection/downloads","issues_url":"https://api.github.com/repos/SunnyDisposish/infection/issues{/number}","pulls_url":"https://api.github.com/repos/SunnyDisposish/infection/pulls{/number}","milestones_url":"https://api.github.com/repos/SunnyDisposish/infection/milestones{/number}","notifications_url":"https://api.github.com/repos/SunnyDisposish/infection/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/SunnyDisposish/infection/labels{/name}","releases_url":"https://api.github.com/repos/SunnyDisposish/infection/releases{/id}","deployments_url":"https://api.github.com/repos/SunnyDisposish/infection/deployments","created_at":"2016-09-19T18:33:38Z","updated_at":"2016-09-19T18:33:38Z","pushed_at":"2016-09-19T18:57:41Z","git_url":"git://github.com/SunnyDisposish/infection.git","ssh_url":"git@github.com:SunnyDisposish/infection.git","clone_url":"https://github.com/SunnyDisposish/infection.git","svn_url":"https://github.com/SunnyDisposish/infection","homepage":null,"size":0,"stargazers_count":0,"watchers_count":0,"language":null,"has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":1,"forks":0,"open_issues":1,"watchers":0,"default_branch":"master"}},"base":{"label":"SunnyDisposish:master","ref":"master","sha":"ffae11653059ee5e6bb278846d19ca77905b848a","user":{"login":"SunnyDisposish","id":22227143,"avatar_url":"https://avatars.githubusercontent.com/u/22227143?v=3","gravatar_id":"","url":"https://api.github.com/users/SunnyDisposish","html_url":"https://github.com/SunnyDisposish","followers_url":"https://api.github.com/users/SunnyDisposish/followers","following_url":"https://api.github.com/users/SunnyDisposish/following{/other_user}","gists_url":"https://api.github.com/users/SunnyDisposish/gists{/gist_id}","starred_url":"https://api.github.com/users/SunnyDisposish/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/SunnyDisposish/subscriptions","organizations_url":"https://api.github.com/users/SunnyDisposish/orgs","repos_url":"https://api.github.com/users/SunnyDisposish/repos","events_url":"https://api.github.com/users/SunnyDisposish/events{/privacy}","received_events_url":"https://api.github.com/users/SunnyDisposish/received_events","type":"User","site_admin":false},"repo":{"id":68634564,"name":"infection","full_name":"SunnyDisposish/infection","owner":{"login":"SunnyDisposish","id":22227143,"avatar_url":"https://avatars.githubusercontent.com/u/22227143?v=3","gravatar_id":"","url":"https://api.github.com/users/SunnyDisposish","html_url":"https://github.com/SunnyDisposish","followers_url":"https://api.github.com/users/SunnyDisposish/followers","following_url":"https://api.github.com/users/SunnyDisposish/following{/other_user}","gists_url":"https://api.github.com/users/SunnyDisposish/gists{/gist_id}","starred_url":"https://api.github.com/users/SunnyDisposish/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/SunnyDisposish/subscriptions","organizations_url":"https://api.github.com/users/SunnyDisposish/orgs","repos_url":"https://api.github.com/users/SunnyDisposish/repos","events_url":"https://api.github.com/users/SunnyDisposish/events{/privacy}","received_events_url":"https://api.github.com/users/SunnyDisposish/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/SunnyDisposish/infection","description":null,"fork":false,"url":"https://api.github.com/repos/SunnyDisposish/infection","forks_url":"https://api.github.com/repos/SunnyDisposish/infection/forks","keys_url":"https://api.github.com/repos/SunnyDisposish/infection/keys{/key_id}","collaborators_url":"https://api.github.com/repos/SunnyDisposish/infection/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/SunnyDisposish/infection/teams","hooks_url":"https://api.github.com/repos/SunnyDisposish/infection/hooks","issue_events_url":"https://api.github.com/repos/SunnyDisposish/infection/issues/events{/number}","events_url":"https://api.github.com/repos/SunnyDisposish/infection/events","assignees_url":"https://api.github.com/repos/SunnyDisposish/infection/assignees{/user}","branches_url":"https://api.github.com/repos/SunnyDisposish/infection/branches{/branch}","tags_url":"https://api.github.com/repos/SunnyDisposish/infection/tags","blobs_url":"https://api.github.com/repos/SunnyDisposish/infection/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/SunnyDisposish/infection/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/SunnyDisposish/infection/git/refs{/sha}","trees_url":"https://api.github.com/repos/SunnyDisposish/infection/git/trees{/sha}","statuses_url":"https://api.github.com/repos/SunnyDisposish/infection/statuses/{sha}","languages_url":"https://api.github.com/repos/SunnyDisposish/infection/languages","stargazers_url":"https://api.github.com/repos/SunnyDisposish/infection/stargazers","contributors_url":"https://api.github.com/repos/SunnyDisposish/infection/contributors","subscribers_url":"https://api.github.com/repos/SunnyDisposish/infection/subscribers","subscription_url":"https://api.github.com/repos/SunnyDisposish/infection/subscription","commits_url":"https://api.github.com/repos/SunnyDisposish/infection/commits{/sha}","git_commits_url":"https://api.github.com/repos/SunnyDisposish/infection/git/commits{/sha}","comments_url":"https://api.github.com/repos/SunnyDisposish/infection/comments{/number}","issue_comment_url":"https://api.github.com/repos/SunnyDisposish/infection/issues/comments{/number}","contents_url":"https://api.github.com/repos/SunnyDisposish/infection/contents/{+path}","compare_url":"https://api.github.com/repos/SunnyDisposish/infection/compare/{base}...{head}","merges_url":"https://api.github.com/repos/SunnyDisposish/infection/merges","archive_url":"https://api.github.com/repos/SunnyDisposish/infection/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/SunnyDisposish/infection/downloads","issues_url":"https://api.github.com/repos/SunnyDisposish/infection/issues{/number}","pulls_url":"https://api.github.com/repos/SunnyDisposish/infection/pulls{/number}","milestones_url":"https://api.github.com/repos/SunnyDisposish/infection/milestones{/number}","notifications_url":"https://api.github.com/repos/SunnyDisposish/infection/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/SunnyDisposish/infection/labels{/name}","releases_url":"https://api.github.com/repos/SunnyDisposish/infection/releases{/id}","deployments_url":"https://api.github.com/repos/SunnyDisposish/infection/deployments","created_at":"2016-09-19T18:33:38Z","updated_at":"2016-09-19T18:33:38Z","pushed_at":"2016-09-19T18:57:41Z","git_url":"git://github.com/SunnyDisposish/infection.git","ssh_url":"git@github.com:SunnyDisposish/infection.git","clone_url":"https://github.com/SunnyDisposish/infection.git","svn_url":"https://github.com/SunnyDisposish/infection","homepage":null,"size":0,"stargazers_count":0,"watchers_count":0,"language":null,"has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":1,"forks":0,"open_issues":1,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/SunnyDisposish/infection/pulls/1"},"html":{"href":"https://github.com/SunnyDisposish/infection/pull/1"},"issue":{"href":"https://api.github.com/repos/SunnyDisposish/infection/issues/1"},"comments":{"href":"https://api.github.com/repos/SunnyDisposish/infection/issues/1/comments"},"review_comments":{"href":"https://api.github.com/repos/SunnyDisposish/infection/pulls/1/comments"},"review_comment":{"href":"https://api.github.com/repos/SunnyDisposish/infection/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/SunnyDisposish/infection/pulls/1/commits"},"statuses":{"href":"https://api.github.com/repos/SunnyDisposish/infection/statuses/4292fdc64c60de923f84d25597d14fb66139474b"}}}}
{"actor":{"display_login":"SunnyDisposish"}}