{"action":"created","comment":{"url":"https://api.github.com/repos/oppia/oppia/pulls/comments/46024489","id":46024489,"diff_hunk":"@@ -67,6 +67,20 @@ def get_by_normalized_username(cls, normalized_username):\n             cls.normalized_username == normalized_username).get()\n \n \n+class UserContributionsModel(base_models.BaseModel):\n+    \"\"\"Tracks statistics for a particular user.\n+    Includes subsequently deleted and private explorations.\n+\n+    Instances of this class are keyed by the user id.\n+    \"\"\"\n+    # IDs of explorations that this user has created.\n+    created_explorations = ndb.TextProperty(repeated=True, \n+        indexed=True, default=None)\n+    # IDs of explorations that this user has created.","path":"core/storage/user/gae_models.py","position":13,"original_position":13,"commit_id":"dc06c66d6284730549f0d844af937e376045b21d","original_commit_id":"dc06c66d6284730549f0d844af937e376045b21d","user":{"login":"seanlip","id":10575562,"avatar_url":"https://avatars.githubusercontent.com/u/10575562?v=3","gravatar_id":"","url":"https://api.github.com/users/seanlip","html_url":"https://github.com/seanlip","followers_url":"https://api.github.com/users/seanlip/followers","following_url":"https://api.github.com/users/seanlip/following{/other_user}","gists_url":"https://api.github.com/users/seanlip/gists{/gist_id}","starred_url":"https://api.github.com/users/seanlip/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/seanlip/subscriptions","organizations_url":"https://api.github.com/users/seanlip/orgs","repos_url":"https://api.github.com/users/seanlip/repos","events_url":"https://api.github.com/users/seanlip/events{/privacy}","received_events_url":"https://api.github.com/users/seanlip/received_events","type":"User","site_admin":false},"body":"IDs of explorations that this user has made a positive (i.e. non-revert) commit to. This includes private explorations and explorations that subsequently get deleted.","created_at":"2015-11-27T08:06:44Z","updated_at":"2015-11-27T08:06:44Z","html_url":"https://github.com/oppia/oppia/pull/1176#discussion_r46024489","pull_request_url":"https://api.github.com/repos/oppia/oppia/pulls/1176","_links":{"self":{"href":"https://api.github.com/repos/oppia/oppia/pulls/comments/46024489"},"html":{"href":"https://github.com/oppia/oppia/pull/1176#discussion_r46024489"},"pull_request":{"href":"https://api.github.com/repos/oppia/oppia/pulls/1176"}}},"pull_request":{"url":"https://api.github.com/repos/oppia/oppia/pulls/1176","id":51953461,"html_url":"https://github.com/oppia/oppia/pull/1176","diff_url":"https://github.com/oppia/oppia/pull/1176.diff","patch_url":"https://github.com/oppia/oppia/pull/1176.patch","issue_url":"https://api.github.com/repos/oppia/oppia/issues/1176","number":1176,"state":"open","locked":false,"title":"Now pulls to front-end (with tests), does realtime updates, passes tests; addressed comments","user":{"login":"hernandz","id":11132318,"avatar_url":"https://avatars.githubusercontent.com/u/11132318?v=3","gravatar_id":"","url":"https://api.github.com/users/hernandz","html_url":"https://github.com/hernandz","followers_url":"https://api.github.com/users/hernandz/followers","following_url":"https://api.github.com/users/hernandz/following{/other_user}","gists_url":"https://api.github.com/users/hernandz/gists{/gist_id}","starred_url":"https://api.github.com/users/hernandz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hernandz/subscriptions","organizations_url":"https://api.github.com/users/hernandz/orgs","repos_url":"https://api.github.com/users/hernandz/repos","events_url":"https://api.github.com/users/hernandz/events{/privacy}","received_events_url":"https://api.github.com/users/hernandz/received_events","type":"User","site_admin":false},"body":"","created_at":"2015-11-27T01:36:49Z","updated_at":"2015-11-27T08:06:44Z","closed_at":null,"merged_at":null,"merge_commit_sha":"c0fd7ea2199112a4c12093bb5d240a4a96d94ea3","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/oppia/oppia/pulls/1176/commits","review_comments_url":"https://api.github.com/repos/oppia/oppia/pulls/1176/comments","review_comment_url":"https://api.github.com/repos/oppia/oppia/pulls/comments{/number}","comments_url":"https://api.github.com/repos/oppia/oppia/issues/1176/comments","statuses_url":"https://api.github.com/repos/oppia/oppia/statuses/dc06c66d6284730549f0d844af937e376045b21d","head":{"label":"hernandz:usercontributions","ref":"usercontributions","sha":"dc06c66d6284730549f0d844af937e376045b21d","user":{"login":"hernandz","id":11132318,"avatar_url":"https://avatars.githubusercontent.com/u/11132318?v=3","gravatar_id":"","url":"https://api.github.com/users/hernandz","html_url":"https://github.com/hernandz","followers_url":"https://api.github.com/users/hernandz/followers","following_url":"https://api.github.com/users/hernandz/following{/other_user}","gists_url":"https://api.github.com/users/hernandz/gists{/gist_id}","starred_url":"https://api.github.com/users/hernandz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hernandz/subscriptions","organizations_url":"https://api.github.com/users/hernandz/orgs","repos_url":"https://api.github.com/users/hernandz/repos","events_url":"https://api.github.com/users/hernandz/events{/privacy}","received_events_url":"https://api.github.com/users/hernandz/received_events","type":"User","site_admin":false},"repo":{"id":45274634,"name":"oppia","full_name":"hernandz/oppia","owner":{"login":"hernandz","id":11132318,"avatar_url":"https://avatars.githubusercontent.com/u/11132318?v=3","gravatar_id":"","url":"https://api.github.com/users/hernandz","html_url":"https://github.com/hernandz","followers_url":"https://api.github.com/users/hernandz/followers","following_url":"https://api.github.com/users/hernandz/following{/other_user}","gists_url":"https://api.github.com/users/hernandz/gists{/gist_id}","starred_url":"https://api.github.com/users/hernandz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hernandz/subscriptions","organizations_url":"https://api.github.com/users/hernandz/orgs","repos_url":"https://api.github.com/users/hernandz/repos","events_url":"https://api.github.com/users/hernandz/events{/privacy}","received_events_url":"https://api.github.com/users/hernandz/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/hernandz/oppia","description":"Tool for collaboratively building interactive tutors.","fork":true,"url":"https://api.github.com/repos/hernandz/oppia","forks_url":"https://api.github.com/repos/hernandz/oppia/forks","keys_url":"https://api.github.com/repos/hernandz/oppia/keys{/key_id}","collaborators_url":"https://api.github.com/repos/hernandz/oppia/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/hernandz/oppia/teams","hooks_url":"https://api.github.com/repos/hernandz/oppia/hooks","issue_events_url":"https://api.github.com/repos/hernandz/oppia/issues/events{/number}","events_url":"https://api.github.com/repos/hernandz/oppia/events","assignees_url":"https://api.github.com/repos/hernandz/oppia/assignees{/user}","branches_url":"https://api.github.com/repos/hernandz/oppia/branches{/branch}","tags_url":"https://api.github.com/repos/hernandz/oppia/tags","blobs_url":"https://api.github.com/repos/hernandz/oppia/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/hernandz/oppia/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/hernandz/oppia/git/refs{/sha}","trees_url":"https://api.github.com/repos/hernandz/oppia/git/trees{/sha}","statuses_url":"https://api.github.com/repos/hernandz/oppia/statuses/{sha}","languages_url":"https://api.github.com/repos/hernandz/oppia/languages","stargazers_url":"https://api.github.com/repos/hernandz/oppia/stargazers","contributors_url":"https://api.github.com/repos/hernandz/oppia/contributors","subscribers_url":"https://api.github.com/repos/hernandz/oppia/subscribers","subscription_url":"https://api.github.com/repos/hernandz/oppia/subscription","commits_url":"https://api.github.com/repos/hernandz/oppia/commits{/sha}","git_commits_url":"https://api.github.com/repos/hernandz/oppia/git/commits{/sha}","comments_url":"https://api.github.com/repos/hernandz/oppia/comments{/number}","issue_comment_url":"https://api.github.com/repos/hernandz/oppia/issues/comments{/number}","contents_url":"https://api.github.com/repos/hernandz/oppia/contents/{+path}","compare_url":"https://api.github.com/repos/hernandz/oppia/compare/{base}...{head}","merges_url":"https://api.github.com/repos/hernandz/oppia/merges","archive_url":"https://api.github.com/repos/hernandz/oppia/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/hernandz/oppia/downloads","issues_url":"https://api.github.com/repos/hernandz/oppia/issues{/number}","pulls_url":"https://api.github.com/repos/hernandz/oppia/pulls{/number}","milestones_url":"https://api.github.com/repos/hernandz/oppia/milestones{/number}","notifications_url":"https://api.github.com/repos/hernandz/oppia/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/hernandz/oppia/labels{/name}","releases_url":"https://api.github.com/repos/hernandz/oppia/releases{/id}","created_at":"2015-10-30T20:21:00Z","updated_at":"2015-10-30T20:21:05Z","pushed_at":"2015-11-27T01:32:30Z","git_url":"git://github.com/hernandz/oppia.git","ssh_url":"git@github.com:hernandz/oppia.git","clone_url":"https://github.com/hernandz/oppia.git","svn_url":"https://github.com/hernandz/oppia","homepage":"https://www.oppia.org","size":38410,"stargazers_count":0,"watchers_count":0,"language":"Python","has_issues":false,"has_downloads":false,"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":"develop"}},"base":{"label":"oppia:develop","ref":"develop","sha":"019d99ab41d8cc6d61bf6035d29e11826df1322c","user":{"login":"oppia","id":11620230,"avatar_url":"https://avatars.githubusercontent.com/u/11620230?v=3","gravatar_id":"","url":"https://api.github.com/users/oppia","html_url":"https://github.com/oppia","followers_url":"https://api.github.com/users/oppia/followers","following_url":"https://api.github.com/users/oppia/following{/other_user}","gists_url":"https://api.github.com/users/oppia/gists{/gist_id}","starred_url":"https://api.github.com/users/oppia/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/oppia/subscriptions","organizations_url":"https://api.github.com/users/oppia/orgs","repos_url":"https://api.github.com/users/oppia/repos","events_url":"https://api.github.com/users/oppia/events{/privacy}","received_events_url":"https://api.github.com/users/oppia/received_events","type":"Organization","site_admin":false},"repo":{"id":40687563,"name":"oppia","full_name":"oppia/oppia","owner":{"login":"oppia","id":11620230,"avatar_url":"https://avatars.githubusercontent.com/u/11620230?v=3","gravatar_id":"","url":"https://api.github.com/users/oppia","html_url":"https://github.com/oppia","followers_url":"https://api.github.com/users/oppia/followers","following_url":"https://api.github.com/users/oppia/following{/other_user}","gists_url":"https://api.github.com/users/oppia/gists{/gist_id}","starred_url":"https://api.github.com/users/oppia/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/oppia/subscriptions","organizations_url":"https://api.github.com/users/oppia/orgs","repos_url":"https://api.github.com/users/oppia/repos","events_url":"https://api.github.com/users/oppia/events{/privacy}","received_events_url":"https://api.github.com/users/oppia/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/oppia/oppia","description":"Tool for collaboratively building interactive tutors.","fork":false,"url":"https://api.github.com/repos/oppia/oppia","forks_url":"https://api.github.com/repos/oppia/oppia/forks","keys_url":"https://api.github.com/repos/oppia/oppia/keys{/key_id}","collaborators_url":"https://api.github.com/repos/oppia/oppia/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/oppia/oppia/teams","hooks_url":"https://api.github.com/repos/oppia/oppia/hooks","issue_events_url":"https://api.github.com/repos/oppia/oppia/issues/events{/number}","events_url":"https://api.github.com/repos/oppia/oppia/events","assignees_url":"https://api.github.com/repos/oppia/oppia/assignees{/user}","branches_url":"https://api.github.com/repos/oppia/oppia/branches{/branch}","tags_url":"https://api.github.com/repos/oppia/oppia/tags","blobs_url":"https://api.github.com/repos/oppia/oppia/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/oppia/oppia/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/oppia/oppia/git/refs{/sha}","trees_url":"https://api.github.com/repos/oppia/oppia/git/trees{/sha}","statuses_url":"https://api.github.com/repos/oppia/oppia/statuses/{sha}","languages_url":"https://api.github.com/repos/oppia/oppia/languages","stargazers_url":"https://api.github.com/repos/oppia/oppia/stargazers","contributors_url":"https://api.github.com/repos/oppia/oppia/contributors","subscribers_url":"https://api.github.com/repos/oppia/oppia/subscribers","subscription_url":"https://api.github.com/repos/oppia/oppia/subscription","commits_url":"https://api.github.com/repos/oppia/oppia/commits{/sha}","git_commits_url":"https://api.github.com/repos/oppia/oppia/git/commits{/sha}","comments_url":"https://api.github.com/repos/oppia/oppia/comments{/number}","issue_comment_url":"https://api.github.com/repos/oppia/oppia/issues/comments{/number}","contents_url":"https://api.github.com/repos/oppia/oppia/contents/{+path}","compare_url":"https://api.github.com/repos/oppia/oppia/compare/{base}...{head}","merges_url":"https://api.github.com/repos/oppia/oppia/merges","archive_url":"https://api.github.com/repos/oppia/oppia/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/oppia/oppia/downloads","issues_url":"https://api.github.com/repos/oppia/oppia/issues{/number}","pulls_url":"https://api.github.com/repos/oppia/oppia/pulls{/number}","milestones_url":"https://api.github.com/repos/oppia/oppia/milestones{/number}","notifications_url":"https://api.github.com/repos/oppia/oppia/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/oppia/oppia/labels{/name}","releases_url":"https://api.github.com/repos/oppia/oppia/releases{/id}","created_at":"2015-08-14T00:16:14Z","updated_at":"2015-11-22T21:46:00Z","pushed_at":"2015-11-27T08:06:05Z","git_url":"git://github.com/oppia/oppia.git","ssh_url":"git@github.com:oppia/oppia.git","clone_url":"https://github.com/oppia/oppia.git","svn_url":"https://github.com/oppia/oppia","homepage":"https://www.oppia.org","size":43880,"stargazers_count":58,"watchers_count":58,"language":"Python","has_issues":true,"has_downloads":false,"has_wiki":true,"has_pages":false,"forks_count":75,"mirror_url":null,"open_issues_count":226,"forks":75,"open_issues":226,"watchers":58,"default_branch":"develop"}},"_links":{"self":{"href":"https://api.github.com/repos/oppia/oppia/pulls/1176"},"html":{"href":"https://github.com/oppia/oppia/pull/1176"},"issue":{"href":"https://api.github.com/repos/oppia/oppia/issues/1176"},"comments":{"href":"https://api.github.com/repos/oppia/oppia/issues/1176/comments"},"review_comments":{"href":"https://api.github.com/repos/oppia/oppia/pulls/1176/comments"},"review_comment":{"href":"https://api.github.com/repos/oppia/oppia/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/oppia/oppia/pulls/1176/commits"},"statuses":{"href":"https://api.github.com/repos/oppia/oppia/statuses/dc06c66d6284730549f0d844af937e376045b21d"}}}}