{"action":"created","comment":{"url":"https://api.github.com/repos/msopentechcn/open-hackathon/pulls/comments/24646329","id":24646329,"diff_hunk":"@@ -0,0 +1,179 @@\n+# -*- coding:utf8 -*-\n+# encoding = utf-8\n+import sys\n+import urllib2\n+\n+sys.path.append(\"..\")\n+from app.functions import get_remote, get_config, convert\n+from app.log import log\n+from user_mgr import user_manager\n+import json\n+from app.constants import OAUTH_PROVIDER\n+\n+\n+class LoginUser:","path":"open-hackathon-adminUI/src/app/admin/login_background.py","position":14,"original_position":14,"commit_id":"5e9401b7b1125364120601095cf75485ffbecc73","original_commit_id":"5e9401b7b1125364120601095cf75485ffbecc73","user":{"login":"juniwang","id":8814383,"avatar_url":"https://avatars.githubusercontent.com/u/8814383?v=3","gravatar_id":"","url":"https://api.github.com/users/juniwang","html_url":"https://github.com/juniwang","followers_url":"https://api.github.com/users/juniwang/followers","following_url":"https://api.github.com/users/juniwang/following{/other_user}","gists_url":"https://api.github.com/users/juniwang/gists{/gist_id}","starred_url":"https://api.github.com/users/juniwang/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/juniwang/subscriptions","organizations_url":"https://api.github.com/users/juniwang/orgs","repos_url":"https://api.github.com/users/juniwang/repos","events_url":"https://api.github.com/users/juniwang/events{/privacy}","received_events_url":"https://api.github.com/users/juniwang/received_events","type":"User","site_admin":false},"body":"I'm confused by the two duplicated `LoginUser`. They are of the same code. What's the purpose?","created_at":"2015-02-13T06:18:01Z","updated_at":"2015-02-13T06:18:01Z","html_url":"https://github.com/msopentechcn/open-hackathon/pull/149#discussion_r24646329","pull_request_url":"https://api.github.com/repos/msopentechcn/open-hackathon/pulls/149","_links":{"self":{"href":"https://api.github.com/repos/msopentechcn/open-hackathon/pulls/comments/24646329"},"html":{"href":"https://github.com/msopentechcn/open-hackathon/pull/149#discussion_r24646329"},"pull_request":{"href":"https://api.github.com/repos/msopentechcn/open-hackathon/pulls/149"}}},"pull_request":{"url":"https://api.github.com/repos/msopentechcn/open-hackathon/pulls/149","id":29235997,"html_url":"https://github.com/msopentechcn/open-hackathon/pull/149","diff_url":"https://github.com/msopentechcn/open-hackathon/pull/149.diff","patch_url":"https://github.com/msopentechcn/open-hackathon/pull/149.patch","issue_url":"https://api.github.com/repos/msopentechcn/open-hackathon/issues/149","number":149,"state":"open","locked":false,"title":"admin github login ","user":{"login":"mshubian","id":10021488,"avatar_url":"https://avatars.githubusercontent.com/u/10021488?v=3","gravatar_id":"","url":"https://api.github.com/users/mshubian","html_url":"https://github.com/mshubian","followers_url":"https://api.github.com/users/mshubian/followers","following_url":"https://api.github.com/users/mshubian/following{/other_user}","gists_url":"https://api.github.com/users/mshubian/gists{/gist_id}","starred_url":"https://api.github.com/users/mshubian/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mshubian/subscriptions","organizations_url":"https://api.github.com/users/mshubian/orgs","repos_url":"https://api.github.com/users/mshubian/repos","events_url":"https://api.github.com/users/mshubian/events{/privacy}","received_events_url":"https://api.github.com/users/mshubian/received_events","type":"User","site_admin":false},"body":"","created_at":"2015-02-13T02:32:54Z","updated_at":"2015-02-13T06:18:01Z","closed_at":null,"merged_at":null,"merge_commit_sha":"4bd12b5a2aefb132a63575f652989602cf9d987d","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/msopentechcn/open-hackathon/pulls/149/commits","review_comments_url":"https://api.github.com/repos/msopentechcn/open-hackathon/pulls/149/comments","review_comment_url":"https://api.github.com/repos/msopentechcn/open-hackathon/pulls/comments/{number}","comments_url":"https://api.github.com/repos/msopentechcn/open-hackathon/issues/149/comments","statuses_url":"https://api.github.com/repos/msopentechcn/open-hackathon/statuses/5e9401b7b1125364120601095cf75485ffbecc73","head":{"label":"mshubian:master","ref":"master","sha":"5e9401b7b1125364120601095cf75485ffbecc73","user":{"login":"mshubian","id":10021488,"avatar_url":"https://avatars.githubusercontent.com/u/10021488?v=3","gravatar_id":"","url":"https://api.github.com/users/mshubian","html_url":"https://github.com/mshubian","followers_url":"https://api.github.com/users/mshubian/followers","following_url":"https://api.github.com/users/mshubian/following{/other_user}","gists_url":"https://api.github.com/users/mshubian/gists{/gist_id}","starred_url":"https://api.github.com/users/mshubian/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mshubian/subscriptions","organizations_url":"https://api.github.com/users/mshubian/orgs","repos_url":"https://api.github.com/users/mshubian/repos","events_url":"https://api.github.com/users/mshubian/events{/privacy}","received_events_url":"https://api.github.com/users/mshubian/received_events","type":"User","site_admin":false},"repo":{"id":27369112,"name":"open-hackathon","full_name":"mshubian/open-hackathon","owner":{"login":"mshubian","id":10021488,"avatar_url":"https://avatars.githubusercontent.com/u/10021488?v=3","gravatar_id":"","url":"https://api.github.com/users/mshubian","html_url":"https://github.com/mshubian","followers_url":"https://api.github.com/users/mshubian/followers","following_url":"https://api.github.com/users/mshubian/following{/other_user}","gists_url":"https://api.github.com/users/mshubian/gists{/gist_id}","starred_url":"https://api.github.com/users/mshubian/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mshubian/subscriptions","organizations_url":"https://api.github.com/users/mshubian/orgs","repos_url":"https://api.github.com/users/mshubian/repos","events_url":"https://api.github.com/users/mshubian/events{/privacy}","received_events_url":"https://api.github.com/users/mshubian/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/mshubian/open-hackathon","description":"Open Source Software Laboratory","fork":true,"url":"https://api.github.com/repos/mshubian/open-hackathon","forks_url":"https://api.github.com/repos/mshubian/open-hackathon/forks","keys_url":"https://api.github.com/repos/mshubian/open-hackathon/keys{/key_id}","collaborators_url":"https://api.github.com/repos/mshubian/open-hackathon/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/mshubian/open-hackathon/teams","hooks_url":"https://api.github.com/repos/mshubian/open-hackathon/hooks","issue_events_url":"https://api.github.com/repos/mshubian/open-hackathon/issues/events{/number}","events_url":"https://api.github.com/repos/mshubian/open-hackathon/events","assignees_url":"https://api.github.com/repos/mshubian/open-hackathon/assignees{/user}","branches_url":"https://api.github.com/repos/mshubian/open-hackathon/branches{/branch}","tags_url":"https://api.github.com/repos/mshubian/open-hackathon/tags","blobs_url":"https://api.github.com/repos/mshubian/open-hackathon/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/mshubian/open-hackathon/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/mshubian/open-hackathon/git/refs{/sha}","trees_url":"https://api.github.com/repos/mshubian/open-hackathon/git/trees{/sha}","statuses_url":"https://api.github.com/repos/mshubian/open-hackathon/statuses/{sha}","languages_url":"https://api.github.com/repos/mshubian/open-hackathon/languages","stargazers_url":"https://api.github.com/repos/mshubian/open-hackathon/stargazers","contributors_url":"https://api.github.com/repos/mshubian/open-hackathon/contributors","subscribers_url":"https://api.github.com/repos/mshubian/open-hackathon/subscribers","subscription_url":"https://api.github.com/repos/mshubian/open-hackathon/subscription","commits_url":"https://api.github.com/repos/mshubian/open-hackathon/commits{/sha}","git_commits_url":"https://api.github.com/repos/mshubian/open-hackathon/git/commits{/sha}","comments_url":"https://api.github.com/repos/mshubian/open-hackathon/comments{/number}","issue_comment_url":"https://api.github.com/repos/mshubian/open-hackathon/issues/comments/{number}","contents_url":"https://api.github.com/repos/mshubian/open-hackathon/contents/{+path}","compare_url":"https://api.github.com/repos/mshubian/open-hackathon/compare/{base}...{head}","merges_url":"https://api.github.com/repos/mshubian/open-hackathon/merges","archive_url":"https://api.github.com/repos/mshubian/open-hackathon/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/mshubian/open-hackathon/downloads","issues_url":"https://api.github.com/repos/mshubian/open-hackathon/issues{/number}","pulls_url":"https://api.github.com/repos/mshubian/open-hackathon/pulls{/number}","milestones_url":"https://api.github.com/repos/mshubian/open-hackathon/milestones{/number}","notifications_url":"https://api.github.com/repos/mshubian/open-hackathon/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/mshubian/open-hackathon/labels{/name}","releases_url":"https://api.github.com/repos/mshubian/open-hackathon/releases{/id}","created_at":"2014-12-01T08:07:40Z","updated_at":"2015-02-13T01:58:18Z","pushed_at":"2015-02-13T01:58:18Z","git_url":"git://github.com/mshubian/open-hackathon.git","ssh_url":"git@github.com:mshubian/open-hackathon.git","clone_url":"https://github.com/mshubian/open-hackathon.git","svn_url":"https://github.com/mshubian/open-hackathon","homepage":null,"size":6344,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","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":"master"}},"base":{"label":"msopentechcn:master","ref":"master","sha":"c1115d3a97fdf112ad6830f373b2fb78a4593b5a","user":{"login":"msopentechcn","id":8188262,"avatar_url":"https://avatars.githubusercontent.com/u/8188262?v=3","gravatar_id":"","url":"https://api.github.com/users/msopentechcn","html_url":"https://github.com/msopentechcn","followers_url":"https://api.github.com/users/msopentechcn/followers","following_url":"https://api.github.com/users/msopentechcn/following{/other_user}","gists_url":"https://api.github.com/users/msopentechcn/gists{/gist_id}","starred_url":"https://api.github.com/users/msopentechcn/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/msopentechcn/subscriptions","organizations_url":"https://api.github.com/users/msopentechcn/orgs","repos_url":"https://api.github.com/users/msopentechcn/repos","events_url":"https://api.github.com/users/msopentechcn/events{/privacy}","received_events_url":"https://api.github.com/users/msopentechcn/received_events","type":"Organization","site_admin":false},"repo":{"id":21931750,"name":"open-hackathon","full_name":"msopentechcn/open-hackathon","owner":{"login":"msopentechcn","id":8188262,"avatar_url":"https://avatars.githubusercontent.com/u/8188262?v=3","gravatar_id":"","url":"https://api.github.com/users/msopentechcn","html_url":"https://github.com/msopentechcn","followers_url":"https://api.github.com/users/msopentechcn/followers","following_url":"https://api.github.com/users/msopentechcn/following{/other_user}","gists_url":"https://api.github.com/users/msopentechcn/gists{/gist_id}","starred_url":"https://api.github.com/users/msopentechcn/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/msopentechcn/subscriptions","organizations_url":"https://api.github.com/users/msopentechcn/orgs","repos_url":"https://api.github.com/users/msopentechcn/repos","events_url":"https://api.github.com/users/msopentechcn/events{/privacy}","received_events_url":"https://api.github.com/users/msopentechcn/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/msopentechcn/open-hackathon","description":"Open Hackathon Platform","fork":false,"url":"https://api.github.com/repos/msopentechcn/open-hackathon","forks_url":"https://api.github.com/repos/msopentechcn/open-hackathon/forks","keys_url":"https://api.github.com/repos/msopentechcn/open-hackathon/keys{/key_id}","collaborators_url":"https://api.github.com/repos/msopentechcn/open-hackathon/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/msopentechcn/open-hackathon/teams","hooks_url":"https://api.github.com/repos/msopentechcn/open-hackathon/hooks","issue_events_url":"https://api.github.com/repos/msopentechcn/open-hackathon/issues/events{/number}","events_url":"https://api.github.com/repos/msopentechcn/open-hackathon/events","assignees_url":"https://api.github.com/repos/msopentechcn/open-hackathon/assignees{/user}","branches_url":"https://api.github.com/repos/msopentechcn/open-hackathon/branches{/branch}","tags_url":"https://api.github.com/repos/msopentechcn/open-hackathon/tags","blobs_url":"https://api.github.com/repos/msopentechcn/open-hackathon/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/msopentechcn/open-hackathon/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/msopentechcn/open-hackathon/git/refs{/sha}","trees_url":"https://api.github.com/repos/msopentechcn/open-hackathon/git/trees{/sha}","statuses_url":"https://api.github.com/repos/msopentechcn/open-hackathon/statuses/{sha}","languages_url":"https://api.github.com/repos/msopentechcn/open-hackathon/languages","stargazers_url":"https://api.github.com/repos/msopentechcn/open-hackathon/stargazers","contributors_url":"https://api.github.com/repos/msopentechcn/open-hackathon/contributors","subscribers_url":"https://api.github.com/repos/msopentechcn/open-hackathon/subscribers","subscription_url":"https://api.github.com/repos/msopentechcn/open-hackathon/subscription","commits_url":"https://api.github.com/repos/msopentechcn/open-hackathon/commits{/sha}","git_commits_url":"https://api.github.com/repos/msopentechcn/open-hackathon/git/commits{/sha}","comments_url":"https://api.github.com/repos/msopentechcn/open-hackathon/comments{/number}","issue_comment_url":"https://api.github.com/repos/msopentechcn/open-hackathon/issues/comments/{number}","contents_url":"https://api.github.com/repos/msopentechcn/open-hackathon/contents/{+path}","compare_url":"https://api.github.com/repos/msopentechcn/open-hackathon/compare/{base}...{head}","merges_url":"https://api.github.com/repos/msopentechcn/open-hackathon/merges","archive_url":"https://api.github.com/repos/msopentechcn/open-hackathon/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/msopentechcn/open-hackathon/downloads","issues_url":"https://api.github.com/repos/msopentechcn/open-hackathon/issues{/number}","pulls_url":"https://api.github.com/repos/msopentechcn/open-hackathon/pulls{/number}","milestones_url":"https://api.github.com/repos/msopentechcn/open-hackathon/milestones{/number}","notifications_url":"https://api.github.com/repos/msopentechcn/open-hackathon/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/msopentechcn/open-hackathon/labels{/name}","releases_url":"https://api.github.com/repos/msopentechcn/open-hackathon/releases{/id}","created_at":"2014-07-17T06:53:26Z","updated_at":"2015-02-12T02:35:18Z","pushed_at":"2015-02-12T02:43:53Z","git_url":"git://github.com/msopentechcn/open-hackathon.git","ssh_url":"git@github.com:msopentechcn/open-hackathon.git","clone_url":"https://github.com/msopentechcn/open-hackathon.git","svn_url":"https://github.com/msopentechcn/open-hackathon","homepage":"","size":7521,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":10,"mirror_url":null,"open_issues_count":2,"forks":10,"open_issues":2,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/msopentechcn/open-hackathon/pulls/149"},"html":{"href":"https://github.com/msopentechcn/open-hackathon/pull/149"},"issue":{"href":"https://api.github.com/repos/msopentechcn/open-hackathon/issues/149"},"comments":{"href":"https://api.github.com/repos/msopentechcn/open-hackathon/issues/149/comments"},"review_comments":{"href":"https://api.github.com/repos/msopentechcn/open-hackathon/pulls/149/comments"},"review_comment":{"href":"https://api.github.com/repos/msopentechcn/open-hackathon/pulls/comments/{number}"},"commits":{"href":"https://api.github.com/repos/msopentechcn/open-hackathon/pulls/149/commits"},"statuses":{"href":"https://api.github.com/repos/msopentechcn/open-hackathon/statuses/5e9401b7b1125364120601095cf75485ffbecc73"}}}}