GitHub PullRequestReviewCommentEvent at 2014-12-10 23:14:27
Repository: Team4
Actor: jeremyprice
Payload: {"action":"created","comment":{"url":"https://api.github.com/repos/jeremyprice/Team4/pulls/comments/21646749","id":21646749,"diff_hunk":"@@ -0,0 +1,37 @@\n+from flask import Flask\n+from flask import request\n+from flask import render_template\n+from algorithms.statistical import get_keyword\n+from nltk.tokenize import word_tokenize\n+import json\n+\n+app = Flask(__name__)\n+\n+\n+@app.route('/')\n+def index():\n+    return render_template('index.html')\n+\n+\n+@app.route('/keywords', methods=['POST'])\n+def get_keywords():\n+    if request.method == 'POST':\n+        text = request.form['text']\n+        return json.dumps(get_keyword(text))\n+    else:\n+        return 'Something has gone terribly wrong.'\n+    \n+    \n+@app.route('/keyword_output', methods=['POST'])\n+def keyword_output():\n+    if request.method == 'POST':\n+        text = request.form['text']\n+        tokenized_text = word_tokenize(text)\n+        keywords = get_keyword(text)\n+        return render_template('output.html', hashtags=keywords, text=text, tokenized_text=tokenized_text)\n+    else:\n+        return 'Something has gone terribly wrong.'\n+\n+\n+if __name__ == '__main__':\n+    app.run(debug=True)","path":"src/ExactAbstract.py","position":37,"original_position":37,"commit_id":"e35c6d132f9cfd2ca5365c8239ba053c47c377d9","original_commit_id":"e35c6d132f9cfd2ca5365c8239ba053c47c377d9","user":{"login":"jeremyprice","id":7376590,"avatar_url":"https://avatars.githubusercontent.com/u/7376590?v=3","gravatar_id":"","url":"https://api.github.com/users/jeremyprice","html_url":"https://github.com/jeremyprice","followers_url":"https://api.github.com/users/jeremyprice/followers","following_url":"https://api.github.com/users/jeremyprice/following{/other_user}","gists_url":"https://api.github.com/users/jeremyprice/gists{/gist_id}","starred_url":"https://api.github.com/users/jeremyprice/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jeremyprice/subscriptions","organizations_url":"https://api.github.com/users/jeremyprice/orgs","repos_url":"https://api.github.com/users/jeremyprice/repos","events_url":"https://api.github.com/users/jeremyprice/events{/privacy}","received_events_url":"https://api.github.com/users/jeremyprice/received_events","type":"User","site_admin":false},"body":"Can we add the debug flag as a command line option?  That way we can run it in debug mode on the staging box and non-debug mode in production.  For now we can use simple command line parsing, something like:\r\n```python\r\nimport sys\r\n\r\nif __name__ == '__main__':\r\n    if len(sys.argv) > 1 and sys.argv[1] == \"-d\":\r\n        debug = True\r\n    else:\r\n        debug = False\r\n    app.run(debug=debug)\r\n```","created_at":"2014-12-10T23:14:27Z","updated_at":"2014-12-10T23:14:27Z","html_url":"https://github.com/jeremyprice/Team4/pull/11#discussion_r21646749","pull_request_url":"https://api.github.com/repos/jeremyprice/Team4/pulls/11","_links":{"self":{"href":"https://api.github.com/repos/jeremyprice/Team4/pulls/comments/21646749"},"html":{"href":"https://github.com/jeremyprice/Team4/pull/11#discussion_r21646749"},"pull_request":{"href":"https://api.github.com/repos/jeremyprice/Team4/pulls/11"}}},"pull_request":{"url":"https://api.github.com/repos/jeremyprice/Team4/pulls/11","id":25862488,"html_url":"https://github.com/jeremyprice/Team4/pull/11","diff_url":"https://github.com/jeremyprice/Team4/pull/11.diff","patch_url":"https://github.com/jeremyprice/Team4/pull/11.patch","issue_url":"https://api.github.com/repos/jeremyprice/Team4/issues/11","number":11,"state":"open","locked":false,"title":"DO NOT MERGE: Code review pull request","user":{"login":"jeremyprice","id":7376590,"avatar_url":"https://avatars.githubusercontent.com/u/7376590?v=3","gravatar_id":"","url":"https://api.github.com/users/jeremyprice","html_url":"https://github.com/jeremyprice","followers_url":"https://api.github.com/users/jeremyprice/followers","following_url":"https://api.github.com/users/jeremyprice/following{/other_user}","gists_url":"https://api.github.com/users/jeremyprice/gists{/gist_id}","starred_url":"https://api.github.com/users/jeremyprice/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jeremyprice/subscriptions","organizations_url":"https://api.github.com/users/jeremyprice/orgs","repos_url":"https://api.github.com/users/jeremyprice/repos","events_url":"https://api.github.com/users/jeremyprice/events{/privacy}","received_events_url":"https://api.github.com/users/jeremyprice/received_events","type":"User","site_admin":false},"body":"This is a pull request that compares the latest master code to the beginning of time.  This allows for a code review of all the files.\r\n\r\nJeremy will provide comments and suggestions for the code here.  The comments and suggestions should be addressed in new development using the process outlined in the [Development and Deployment Procedure](https://github.com/jeremyprice/Team4/wiki/Deployment-Procedure).  Do not make any commits on this code_review branch.\r\n\r\nThe method to create this code review pull request is documented in [How to do a full code review on GitHub](http://astrofrog.github.io/blog/2013/04/10/how-to-conduct-a-full-code-review-on-github/).\r\n\r\nDO NOT MERGE THIS PULL REQUEST!","created_at":"2014-12-10T22:51:31Z","updated_at":"2014-12-10T23:14:27Z","closed_at":null,"merged_at":null,"merge_commit_sha":"8e8f5dd7355f3edc73e0f6e4da203d99c45d4353","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/jeremyprice/Team4/pulls/11/commits","review_comments_url":"https://api.github.com/repos/jeremyprice/Team4/pulls/11/comments","review_comment_url":"https://api.github.com/repos/jeremyprice/Team4/pulls/comments/{number}","comments_url":"https://api.github.com/repos/jeremyprice/Team4/issues/11/comments","statuses_url":"https://api.github.com/repos/jeremyprice/Team4/statuses/e35c6d132f9cfd2ca5365c8239ba053c47c377d9","head":{"label":"jeremyprice:master","ref":"master","sha":"e35c6d132f9cfd2ca5365c8239ba053c47c377d9","user":{"login":"jeremyprice","id":7376590,"avatar_url":"https://avatars.githubusercontent.com/u/7376590?v=3","gravatar_id":"","url":"https://api.github.com/users/jeremyprice","html_url":"https://github.com/jeremyprice","followers_url":"https://api.github.com/users/jeremyprice/followers","following_url":"https://api.github.com/users/jeremyprice/following{/other_user}","gists_url":"https://api.github.com/users/jeremyprice/gists{/gist_id}","starred_url":"https://api.github.com/users/jeremyprice/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jeremyprice/subscriptions","organizations_url":"https://api.github.com/users/jeremyprice/orgs","repos_url":"https://api.github.com/users/jeremyprice/repos","events_url":"https://api.github.com/users/jeremyprice/events{/privacy}","received_events_url":"https://api.github.com/users/jeremyprice/received_events","type":"User","site_admin":false},"repo":{"id":21675955,"name":"Team4","full_name":"jeremyprice/Team4","owner":{"login":"jeremyprice","id":7376590,"avatar_url":"https://avatars.githubusercontent.com/u/7376590?v=3","gravatar_id":"","url":"https://api.github.com/users/jeremyprice","html_url":"https://github.com/jeremyprice","followers_url":"https://api.github.com/users/jeremyprice/followers","following_url":"https://api.github.com/users/jeremyprice/following{/other_user}","gists_url":"https://api.github.com/users/jeremyprice/gists{/gist_id}","starred_url":"https://api.github.com/users/jeremyprice/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jeremyprice/subscriptions","organizations_url":"https://api.github.com/users/jeremyprice/orgs","repos_url":"https://api.github.com/users/jeremyprice/repos","events_url":"https://api.github.com/users/jeremyprice/events{/privacy}","received_events_url":"https://api.github.com/users/jeremyprice/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/jeremyprice/Team4","description":"2015 RHIT CSSE Team 4","fork":false,"url":"https://api.github.com/repos/jeremyprice/Team4","forks_url":"https://api.github.com/repos/jeremyprice/Team4/forks","keys_url":"https://api.github.com/repos/jeremyprice/Team4/keys{/key_id}","collaborators_url":"https://api.github.com/repos/jeremyprice/Team4/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/jeremyprice/Team4/teams","hooks_url":"https://api.github.com/repos/jeremyprice/Team4/hooks","issue_events_url":"https://api.github.com/repos/jeremyprice/Team4/issues/events{/number}","events_url":"https://api.github.com/repos/jeremyprice/Team4/events","assignees_url":"https://api.github.com/repos/jeremyprice/Team4/assignees{/user}","branches_url":"https://api.github.com/repos/jeremyprice/Team4/branches{/branch}","tags_url":"https://api.github.com/repos/jeremyprice/Team4/tags","blobs_url":"https://api.github.com/repos/jeremyprice/Team4/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/jeremyprice/Team4/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/jeremyprice/Team4/git/refs{/sha}","trees_url":"https://api.github.com/repos/jeremyprice/Team4/git/trees{/sha}","statuses_url":"https://api.github.com/repos/jeremyprice/Team4/statuses/{sha}","languages_url":"https://api.github.com/repos/jeremyprice/Team4/languages","stargazers_url":"https://api.github.com/repos/jeremyprice/Team4/stargazers","contributors_url":"https://api.github.com/repos/jeremyprice/Team4/contributors","subscribers_url":"https://api.github.com/repos/jeremyprice/Team4/subscribers","subscription_url":"https://api.github.com/repos/jeremyprice/Team4/subscription","commits_url":"https://api.github.com/repos/jeremyprice/Team4/commits{/sha}","git_commits_url":"https://api.github.com/repos/jeremyprice/Team4/git/commits{/sha}","comments_url":"https://api.github.com/repos/jeremyprice/Team4/comments{/number}","issue_comment_url":"https://api.github.com/repos/jeremyprice/Team4/issues/comments/{number}","contents_url":"https://api.github.com/repos/jeremyprice/Team4/contents/{+path}","compare_url":"https://api.github.com/repos/jeremyprice/Team4/compare/{base}...{head}","merges_url":"https://api.github.com/repos/jeremyprice/Team4/merges","archive_url":"https://api.github.com/repos/jeremyprice/Team4/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/jeremyprice/Team4/downloads","issues_url":"https://api.github.com/repos/jeremyprice/Team4/issues{/number}","pulls_url":"https://api.github.com/repos/jeremyprice/Team4/pulls{/number}","milestones_url":"https://api.github.com/repos/jeremyprice/Team4/milestones{/number}","notifications_url":"https://api.github.com/repos/jeremyprice/Team4/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/jeremyprice/Team4/labels{/name}","releases_url":"https://api.github.com/repos/jeremyprice/Team4/releases{/id}","created_at":"2014-07-10T02:11:57Z","updated_at":"2014-12-09T03:25:25Z","pushed_at":"2014-12-10T22:41:56Z","git_url":"git://github.com/jeremyprice/Team4.git","ssh_url":"git@github.com:jeremyprice/Team4.git","clone_url":"https://github.com/jeremyprice/Team4.git","svn_url":"https://github.com/jeremyprice/Team4","homepage":null,"size":660,"stargazers_count":0,"watchers_count":0,"language":"Python","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":"jeremyprice:code_review","ref":"code_review","sha":"dcd7666328cc8e85d3003e4ea1eff333ee8d394c","user":{"login":"jeremyprice","id":7376590,"avatar_url":"https://avatars.githubusercontent.com/u/7376590?v=3","gravatar_id":"","url":"https://api.github.com/users/jeremyprice","html_url":"https://github.com/jeremyprice","followers_url":"https://api.github.com/users/jeremyprice/followers","following_url":"https://api.github.com/users/jeremyprice/following{/other_user}","gists_url":"https://api.github.com/users/jeremyprice/gists{/gist_id}","starred_url":"https://api.github.com/users/jeremyprice/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jeremyprice/subscriptions","organizations_url":"https://api.github.com/users/jeremyprice/orgs","repos_url":"https://api.github.com/users/jeremyprice/repos","events_url":"https://api.github.com/users/jeremyprice/events{/privacy}","received_events_url":"https://api.github.com/users/jeremyprice/received_events","type":"User","site_admin":false},"repo":{"id":21675955,"name":"Team4","full_name":"jeremyprice/Team4","owner":{"login":"jeremyprice","id":7376590,"avatar_url":"https://avatars.githubusercontent.com/u/7376590?v=3","gravatar_id":"","url":"https://api.github.com/users/jeremyprice","html_url":"https://github.com/jeremyprice","followers_url":"https://api.github.com/users/jeremyprice/followers","following_url":"https://api.github.com/users/jeremyprice/following{/other_user}","gists_url":"https://api.github.com/users/jeremyprice/gists{/gist_id}","starred_url":"https://api.github.com/users/jeremyprice/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jeremyprice/subscriptions","organizations_url":"https://api.github.com/users/jeremyprice/orgs","repos_url":"https://api.github.com/users/jeremyprice/repos","events_url":"https://api.github.com/users/jeremyprice/events{/privacy}","received_events_url":"https://api.github.com/users/jeremyprice/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/jeremyprice/Team4","description":"2015 RHIT CSSE Team 4","fork":false,"url":"https://api.github.com/repos/jeremyprice/Team4","forks_url":"https://api.github.com/repos/jeremyprice/Team4/forks","keys_url":"https://api.github.com/repos/jeremyprice/Team4/keys{/key_id}","collaborators_url":"https://api.github.com/repos/jeremyprice/Team4/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/jeremyprice/Team4/teams","hooks_url":"https://api.github.com/repos/jeremyprice/Team4/hooks","issue_events_url":"https://api.github.com/repos/jeremyprice/Team4/issues/events{/number}","events_url":"https://api.github.com/repos/jeremyprice/Team4/events","assignees_url":"https://api.github.com/repos/jeremyprice/Team4/assignees{/user}","branches_url":"https://api.github.com/repos/jeremyprice/Team4/branches{/branch}","tags_url":"https://api.github.com/repos/jeremyprice/Team4/tags","blobs_url":"https://api.github.com/repos/jeremyprice/Team4/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/jeremyprice/Team4/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/jeremyprice/Team4/git/refs{/sha}","trees_url":"https://api.github.com/repos/jeremyprice/Team4/git/trees{/sha}","statuses_url":"https://api.github.com/repos/jeremyprice/Team4/statuses/{sha}","languages_url":"https://api.github.com/repos/jeremyprice/Team4/languages","stargazers_url":"https://api.github.com/repos/jeremyprice/Team4/stargazers","contributors_url":"https://api.github.com/repos/jeremyprice/Team4/contributors","subscribers_url":"https://api.github.com/repos/jeremyprice/Team4/subscribers","subscription_url":"https://api.github.com/repos/jeremyprice/Team4/subscription","commits_url":"https://api.github.com/repos/jeremyprice/Team4/commits{/sha}","git_commits_url":"https://api.github.com/repos/jeremyprice/Team4/git/commits{/sha}","comments_url":"https://api.github.com/repos/jeremyprice/Team4/comments{/number}","issue_comment_url":"https://api.github.com/repos/jeremyprice/Team4/issues/comments/{number}","contents_url":"https://api.github.com/repos/jeremyprice/Team4/contents/{+path}","compare_url":"https://api.github.com/repos/jeremyprice/Team4/compare/{base}...{head}","merges_url":"https://api.github.com/repos/jeremyprice/Team4/merges","archive_url":"https://api.github.com/repos/jeremyprice/Team4/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/jeremyprice/Team4/downloads","issues_url":"https://api.github.com/repos/jeremyprice/Team4/issues{/number}","pulls_url":"https://api.github.com/repos/jeremyprice/Team4/pulls{/number}","milestones_url":"https://api.github.com/repos/jeremyprice/Team4/milestones{/number}","notifications_url":"https://api.github.com/repos/jeremyprice/Team4/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/jeremyprice/Team4/labels{/name}","releases_url":"https://api.github.com/repos/jeremyprice/Team4/releases{/id}","created_at":"2014-07-10T02:11:57Z","updated_at":"2014-12-09T03:25:25Z","pushed_at":"2014-12-10T22:41:56Z","git_url":"git://github.com/jeremyprice/Team4.git","ssh_url":"git@github.com:jeremyprice/Team4.git","clone_url":"https://github.com/jeremyprice/Team4.git","svn_url":"https://github.com/jeremyprice/Team4","homepage":null,"size":660,"stargazers_count":0,"watchers_count":0,"language":"Python","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/jeremyprice/Team4/pulls/11"},"html":{"href":"https://github.com/jeremyprice/Team4/pull/11"},"issue":{"href":"https://api.github.com/repos/jeremyprice/Team4/issues/11"},"comments":{"href":"https://api.github.com/repos/jeremyprice/Team4/issues/11/comments"},"review_comments":{"href":"https://api.github.com/repos/jeremyprice/Team4/pulls/11/comments"},"review_comment":{"href":"https://api.github.com/repos/jeremyprice/Team4/pulls/comments/{number}"},"commits":{"href":"https://api.github.com/repos/jeremyprice/Team4/pulls/11/commits"},"statuses":{"href":"https://api.github.com/repos/jeremyprice/Team4/statuses/e35c6d132f9cfd2ca5365c8239ba053c47c377d9"}}}}