{"action":"created","comment":{"url":"https://api.github.com/repos/csula-students/cs-3220-summer-2017-roshib/pulls/comments/128688622","pull_request_review_id":51391334,"id":128688622,"diff_hunk":"@@ -0,0 +1,45 @@\n+import java.io.*;\n+import java.util.List;\n+import java.util.Random;\n+import java.util.ArrayList;\n+import javax.servlet.*;\n+import javax.servlet.http.*;\n+import javax.servlet.annotation.WebServlet;\n+\n+@WebServlet(loadOnStartup = 1, urlPatterns = { \"/suggest/restaurants/random\" })\n+public class RandomRestaurantServlet  extends HttpServlet {\n+\t\n+\n+\tpublic Restaurant getRandomRestaurant(List<Restaurant> list) {\n+\t\treturn list.get(new Random().nextInt(list.size()));\n+\t}\n+\n+\tpublic void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {\n+\t\tPrintWriter out = response.getWriter();\n+\t\tList<Restaurant> entries = (List<Restaurant>) getServletContext().getAttribute(\"entries\");","path":"Restaurant/src/RandomRestaurantServlet.java","position":19,"original_position":19,"commit_id":"347137a3ce8778cfecb35d24ef0d2076c275fd78","original_commit_id":"347137a3ce8778cfecb35d24ef0d2076c275fd78","user":{"login":"rcliao","id":2566047,"avatar_url":"https://avatars1.githubusercontent.com/u/2566047?v=4","gravatar_id":"","url":"https://api.github.com/users/rcliao","html_url":"https://github.com/rcliao","followers_url":"https://api.github.com/users/rcliao/followers","following_url":"https://api.github.com/users/rcliao/following{/other_user}","gists_url":"https://api.github.com/users/rcliao/gists{/gist_id}","starred_url":"https://api.github.com/users/rcliao/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rcliao/subscriptions","organizations_url":"https://api.github.com/users/rcliao/orgs","repos_url":"https://api.github.com/users/rcliao/repos","events_url":"https://api.github.com/users/rcliao/events{/privacy}","received_events_url":"https://api.github.com/users/rcliao/received_events","type":"User","site_admin":false},"body":"This is due to the fact that application scope is shared across all Servlets.","created_at":"2017-07-21T05:50:02Z","updated_at":"2017-07-21T05:51:22Z","html_url":"https://github.com/csula-students/cs-3220-summer-2017-roshib/pull/9#discussion_r128688622","pull_request_url":"https://api.github.com/repos/csula-students/cs-3220-summer-2017-roshib/pulls/9","_links":{"self":{"href":"https://api.github.com/repos/csula-students/cs-3220-summer-2017-roshib/pulls/comments/128688622"},"html":{"href":"https://github.com/csula-students/cs-3220-summer-2017-roshib/pull/9#discussion_r128688622"},"pull_request":{"href":"https://api.github.com/repos/csula-students/cs-3220-summer-2017-roshib/pulls/9"}}},"pull_request":{"url":"https://api.github.com/repos/csula-students/cs-3220-summer-2017-roshib/pulls/9","id":129539172,"html_url":"https://github.com/csula-students/cs-3220-summer-2017-roshib/pull/9","diff_url":"https://github.com/csula-students/cs-3220-summer-2017-roshib/pull/9.diff","patch_url":"https://github.com/csula-students/cs-3220-summer-2017-roshib/pull/9.patch","issue_url":"https://api.github.com/repos/csula-students/cs-3220-summer-2017-roshib/issues/9","number":9,"state":"open","locked":false,"title":"Midterm","user":{"login":"roshib","id":29165529,"avatar_url":"https://avatars3.githubusercontent.com/u/29165529?v=4","gravatar_id":"","url":"https://api.github.com/users/roshib","html_url":"https://github.com/roshib","followers_url":"https://api.github.com/users/roshib/followers","following_url":"https://api.github.com/users/roshib/following{/other_user}","gists_url":"https://api.github.com/users/roshib/gists{/gist_id}","starred_url":"https://api.github.com/users/roshib/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/roshib/subscriptions","organizations_url":"https://api.github.com/users/roshib/orgs","repos_url":"https://api.github.com/users/roshib/repos","events_url":"https://api.github.com/users/roshib/events{/privacy}","received_events_url":"https://api.github.com/users/roshib/received_events","type":"User","site_admin":false},"body":"I'm done only with tip calculator.","created_at":"2017-07-08T19:12:58Z","updated_at":"2017-07-21T05:51:22Z","closed_at":null,"merged_at":null,"merge_commit_sha":"6518e0f3cb32173a911c201640126ae9cd719a70","assignee":null,"assignees":[],"requested_reviewers":[],"milestone":null,"commits_url":"https://api.github.com/repos/csula-students/cs-3220-summer-2017-roshib/pulls/9/commits","review_comments_url":"https://api.github.com/repos/csula-students/cs-3220-summer-2017-roshib/pulls/9/comments","review_comment_url":"https://api.github.com/repos/csula-students/cs-3220-summer-2017-roshib/pulls/comments{/number}","comments_url":"https://api.github.com/repos/csula-students/cs-3220-summer-2017-roshib/issues/9/comments","statuses_url":"https://api.github.com/repos/csula-students/cs-3220-summer-2017-roshib/statuses/347137a3ce8778cfecb35d24ef0d2076c275fd78","head":{"label":"csula-students:midterm","ref":"midterm","sha":"347137a3ce8778cfecb35d24ef0d2076c275fd78","user":{"login":"csula-students","id":18237553,"avatar_url":"https://avatars3.githubusercontent.com/u/18237553?v=4","gravatar_id":"","url":"https://api.github.com/users/csula-students","html_url":"https://github.com/csula-students","followers_url":"https://api.github.com/users/csula-students/followers","following_url":"https://api.github.com/users/csula-students/following{/other_user}","gists_url":"https://api.github.com/users/csula-students/gists{/gist_id}","starred_url":"https://api.github.com/users/csula-students/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/csula-students/subscriptions","organizations_url":"https://api.github.com/users/csula-students/orgs","repos_url":"https://api.github.com/users/csula-students/repos","events_url":"https://api.github.com/users/csula-students/events{/privacy}","received_events_url":"https://api.github.com/users/csula-students/received_events","type":"Organization","site_admin":false},"repo":{"id":93266022,"name":"cs-3220-summer-2017-roshib","full_name":"csula-students/cs-3220-summer-2017-roshib","owner":{"login":"csula-students","id":18237553,"avatar_url":"https://avatars3.githubusercontent.com/u/18237553?v=4","gravatar_id":"","url":"https://api.github.com/users/csula-students","html_url":"https://github.com/csula-students","followers_url":"https://api.github.com/users/csula-students/followers","following_url":"https://api.github.com/users/csula-students/following{/other_user}","gists_url":"https://api.github.com/users/csula-students/gists{/gist_id}","starred_url":"https://api.github.com/users/csula-students/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/csula-students/subscriptions","organizations_url":"https://api.github.com/users/csula-students/orgs","repos_url":"https://api.github.com/users/csula-students/repos","events_url":"https://api.github.com/users/csula-students/events{/privacy}","received_events_url":"https://api.github.com/users/csula-students/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/csula-students/cs-3220-summer-2017-roshib","description":"cs-3220-summer-2017-roshib created by GitHub Classroom","fork":false,"url":"https://api.github.com/repos/csula-students/cs-3220-summer-2017-roshib","forks_url":"https://api.github.com/repos/csula-students/cs-3220-summer-2017-roshib/forks","keys_url":"https://api.github.com/repos/csula-students/cs-3220-summer-2017-roshib/keys{/key_id}","collaborators_url":"https://api.github.com/repos/csula-students/cs-3220-summer-2017-roshib/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/csula-students/cs-3220-summer-2017-roshib/teams","hooks_url":"https://api.github.com/repos/csula-students/cs-3220-summer-2017-roshib/hooks","issue_events_url":"https://api.github.com/repos/csula-students/cs-3220-summer-2017-roshib/issues/events{/number}","events_url":"https://api.github.com/repos/csula-students/cs-3220-summer-2017-roshib/events","assignees_url":"https://api.github.com/repos/csula-students/cs-3220-summer-2017-roshib/assignees{/user}","branches_url":"https://api.github.com/repos/csula-students/cs-3220-summer-2017-roshib/branches{/branch}","tags_url":"https://api.github.com/repos/csula-students/cs-3220-summer-2017-roshib/tags","blobs_url":"https://api.github.com/repos/csula-students/cs-3220-summer-2017-roshib/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/csula-students/cs-3220-summer-2017-roshib/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/csula-students/cs-3220-summer-2017-roshib/git/refs{/sha}","trees_url":"https://api.github.com/repos/csula-students/cs-3220-summer-2017-roshib/git/trees{/sha}","statuses_url":"https://api.github.com/repos/csula-students/cs-3220-summer-2017-roshib/statuses/{sha}","languages_url":"https://api.github.com/repos/csula-students/cs-3220-summer-2017-roshib/languages","stargazers_url":"https://api.github.com/repos/csula-students/cs-3220-summer-2017-roshib/stargazers","contributors_url":"https://api.github.com/repos/csula-students/cs-3220-summer-2017-roshib/contributors","subscribers_url":"https://api.github.com/repos/csula-students/cs-3220-summer-2017-roshib/subscribers","subscription_url":"https://api.github.com/repos/csula-students/cs-3220-summer-2017-roshib/subscription","commits_url":"https://api.github.com/repos/csula-students/cs-3220-summer-2017-roshib/commits{/sha}","git_commits_url":"https://api.github.com/repos/csula-students/cs-3220-summer-2017-roshib/git/commits{/sha}","comments_url":"https://api.github.com/repos/csula-students/cs-3220-summer-2017-roshib/comments{/number}","issue_comment_url":"https://api.github.com/repos/csula-students/cs-3220-summer-2017-roshib/issues/comments{/number}","contents_url":"https://api.github.com/repos/csula-students/cs-3220-summer-2017-roshib/contents/{+path}","compare_url":"https://api.github.com/repos/csula-students/cs-3220-summer-2017-roshib/compare/{base}...{head}","merges_url":"https://api.github.com/repos/csula-students/cs-3220-summer-2017-roshib/merges","archive_url":"https://api.github.com/repos/csula-students/cs-3220-summer-2017-roshib/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/csula-students/cs-3220-summer-2017-roshib/downloads","issues_url":"https://api.github.com/repos/csula-students/cs-3220-summer-2017-roshib/issues{/number}","pulls_url":"https://api.github.com/repos/csula-students/cs-3220-summer-2017-roshib/pulls{/number}","milestones_url":"https://api.github.com/repos/csula-students/cs-3220-summer-2017-roshib/milestones{/number}","notifications_url":"https://api.github.com/repos/csula-students/cs-3220-summer-2017-roshib/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/csula-students/cs-3220-summer-2017-roshib/labels{/name}","releases_url":"https://api.github.com/repos/csula-students/cs-3220-summer-2017-roshib/releases{/id}","deployments_url":"https://api.github.com/repos/csula-students/cs-3220-summer-2017-roshib/deployments","created_at":"2017-06-03T18:15:13Z","updated_at":"2017-06-03T19:58:38Z","pushed_at":"2017-07-08T20:22:15Z","git_url":"git://github.com/csula-students/cs-3220-summer-2017-roshib.git","ssh_url":"git@github.com:csula-students/cs-3220-summer-2017-roshib.git","clone_url":"https://github.com/csula-students/cs-3220-summer-2017-roshib.git","svn_url":"https://github.com/csula-students/cs-3220-summer-2017-roshib","homepage":null,"size":125,"stargazers_count":0,"watchers_count":0,"language":"HTML","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":0,"mirror_url":null,"open_issues_count":2,"forks":0,"open_issues":2,"watchers":0,"default_branch":"master"}},"base":{"label":"csula-students:master","ref":"master","sha":"2675b88a2ebe6efa5278bbd7e028735eb081c956","user":{"login":"csula-students","id":18237553,"avatar_url":"https://avatars3.githubusercontent.com/u/18237553?v=4","gravatar_id":"","url":"https://api.github.com/users/csula-students","html_url":"https://github.com/csula-students","followers_url":"https://api.github.com/users/csula-students/followers","following_url":"https://api.github.com/users/csula-students/following{/other_user}","gists_url":"https://api.github.com/users/csula-students/gists{/gist_id}","starred_url":"https://api.github.com/users/csula-students/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/csula-students/subscriptions","organizations_url":"https://api.github.com/users/csula-students/orgs","repos_url":"https://api.github.com/users/csula-students/repos","events_url":"https://api.github.com/users/csula-students/events{/privacy}","received_events_url":"https://api.github.com/users/csula-students/received_events","type":"Organization","site_admin":false},"repo":{"id":93266022,"name":"cs-3220-summer-2017-roshib","full_name":"csula-students/cs-3220-summer-2017-roshib","owner":{"login":"csula-students","id":18237553,"avatar_url":"https://avatars3.githubusercontent.com/u/18237553?v=4","gravatar_id":"","url":"https://api.github.com/users/csula-students","html_url":"https://github.com/csula-students","followers_url":"https://api.github.com/users/csula-students/followers","following_url":"https://api.github.com/users/csula-students/following{/other_user}","gists_url":"https://api.github.com/users/csula-students/gists{/gist_id}","starred_url":"https://api.github.com/users/csula-students/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/csula-students/subscriptions","organizations_url":"https://api.github.com/users/csula-students/orgs","repos_url":"https://api.github.com/users/csula-students/repos","events_url":"https://api.github.com/users/csula-students/events{/privacy}","received_events_url":"https://api.github.com/users/csula-students/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/csula-students/cs-3220-summer-2017-roshib","description":"cs-3220-summer-2017-roshib created by GitHub Classroom","fork":false,"url":"https://api.github.com/repos/csula-students/cs-3220-summer-2017-roshib","forks_url":"https://api.github.com/repos/csula-students/cs-3220-summer-2017-roshib/forks","keys_url":"https://api.github.com/repos/csula-students/cs-3220-summer-2017-roshib/keys{/key_id}","collaborators_url":"https://api.github.com/repos/csula-students/cs-3220-summer-2017-roshib/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/csula-students/cs-3220-summer-2017-roshib/teams","hooks_url":"https://api.github.com/repos/csula-students/cs-3220-summer-2017-roshib/hooks","issue_events_url":"https://api.github.com/repos/csula-students/cs-3220-summer-2017-roshib/issues/events{/number}","events_url":"https://api.github.com/repos/csula-students/cs-3220-summer-2017-roshib/events","assignees_url":"https://api.github.com/repos/csula-students/cs-3220-summer-2017-roshib/assignees{/user}","branches_url":"https://api.github.com/repos/csula-students/cs-3220-summer-2017-roshib/branches{/branch}","tags_url":"https://api.github.com/repos/csula-students/cs-3220-summer-2017-roshib/tags","blobs_url":"https://api.github.com/repos/csula-students/cs-3220-summer-2017-roshib/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/csula-students/cs-3220-summer-2017-roshib/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/csula-students/cs-3220-summer-2017-roshib/git/refs{/sha}","trees_url":"https://api.github.com/repos/csula-students/cs-3220-summer-2017-roshib/git/trees{/sha}","statuses_url":"https://api.github.com/repos/csula-students/cs-3220-summer-2017-roshib/statuses/{sha}","languages_url":"https://api.github.com/repos/csula-students/cs-3220-summer-2017-roshib/languages","stargazers_url":"https://api.github.com/repos/csula-students/cs-3220-summer-2017-roshib/stargazers","contributors_url":"https://api.github.com/repos/csula-students/cs-3220-summer-2017-roshib/contributors","subscribers_url":"https://api.github.com/repos/csula-students/cs-3220-summer-2017-roshib/subscribers","subscription_url":"https://api.github.com/repos/csula-students/cs-3220-summer-2017-roshib/subscription","commits_url":"https://api.github.com/repos/csula-students/cs-3220-summer-2017-roshib/commits{/sha}","git_commits_url":"https://api.github.com/repos/csula-students/cs-3220-summer-2017-roshib/git/commits{/sha}","comments_url":"https://api.github.com/repos/csula-students/cs-3220-summer-2017-roshib/comments{/number}","issue_comment_url":"https://api.github.com/repos/csula-students/cs-3220-summer-2017-roshib/issues/comments{/number}","contents_url":"https://api.github.com/repos/csula-students/cs-3220-summer-2017-roshib/contents/{+path}","compare_url":"https://api.github.com/repos/csula-students/cs-3220-summer-2017-roshib/compare/{base}...{head}","merges_url":"https://api.github.com/repos/csula-students/cs-3220-summer-2017-roshib/merges","archive_url":"https://api.github.com/repos/csula-students/cs-3220-summer-2017-roshib/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/csula-students/cs-3220-summer-2017-roshib/downloads","issues_url":"https://api.github.com/repos/csula-students/cs-3220-summer-2017-roshib/issues{/number}","pulls_url":"https://api.github.com/repos/csula-students/cs-3220-summer-2017-roshib/pulls{/number}","milestones_url":"https://api.github.com/repos/csula-students/cs-3220-summer-2017-roshib/milestones{/number}","notifications_url":"https://api.github.com/repos/csula-students/cs-3220-summer-2017-roshib/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/csula-students/cs-3220-summer-2017-roshib/labels{/name}","releases_url":"https://api.github.com/repos/csula-students/cs-3220-summer-2017-roshib/releases{/id}","deployments_url":"https://api.github.com/repos/csula-students/cs-3220-summer-2017-roshib/deployments","created_at":"2017-06-03T18:15:13Z","updated_at":"2017-06-03T19:58:38Z","pushed_at":"2017-07-08T20:22:15Z","git_url":"git://github.com/csula-students/cs-3220-summer-2017-roshib.git","ssh_url":"git@github.com:csula-students/cs-3220-summer-2017-roshib.git","clone_url":"https://github.com/csula-students/cs-3220-summer-2017-roshib.git","svn_url":"https://github.com/csula-students/cs-3220-summer-2017-roshib","homepage":null,"size":125,"stargazers_count":0,"watchers_count":0,"language":"HTML","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":0,"mirror_url":null,"open_issues_count":2,"forks":0,"open_issues":2,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/csula-students/cs-3220-summer-2017-roshib/pulls/9"},"html":{"href":"https://github.com/csula-students/cs-3220-summer-2017-roshib/pull/9"},"issue":{"href":"https://api.github.com/repos/csula-students/cs-3220-summer-2017-roshib/issues/9"},"comments":{"href":"https://api.github.com/repos/csula-students/cs-3220-summer-2017-roshib/issues/9/comments"},"review_comments":{"href":"https://api.github.com/repos/csula-students/cs-3220-summer-2017-roshib/pulls/9/comments"},"review_comment":{"href":"https://api.github.com/repos/csula-students/cs-3220-summer-2017-roshib/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/csula-students/cs-3220-summer-2017-roshib/pulls/9/commits"},"statuses":{"href":"https://api.github.com/repos/csula-students/cs-3220-summer-2017-roshib/statuses/347137a3ce8778cfecb35d24ef0d2076c275fd78"}}}}
{"actor":{"display_login":"rcliao"}}