{"action":"created","comment":{"url":"https://api.github.com/repos/chiamyehwern/PQuiz/pulls/comments/69234988","id":69234988,"diff_hunk":"@@ -0,0 +1,104 @@\n+package project.pquiz;\r\n+//Contains all answers for one question//\r\n+import java.util.ArrayList;\r\n+\r\n+public class AnswerSet {\r\n+\tprivate int questionNumber; //never set\r\n+\tprivate ArrayList<Integer> answerOrder;\r\n+\tprivate ArrayList<Answer> ansSet;\r\n+\tprivate ArrayList<Integer> shuffledAnswerOrder;\r\n+\tprivate ArrayList<Answer> shuffledAnsSet;\r\n+\tint count;\r\n+\r\n+\tpublic AnswerSet() {\r\n+\t\tcount = 0;\r\n+\t\tanswerOrder = new ArrayList<Integer>();\r\n+\t\tansSet = new ArrayList<Answer>();\r\n+\t}\r\n+\t\r\n+\tpublic AnswerSet(AnswerSet aSet) {\r\n+\t\tthis(aSet, -1); //-1 to indicate questionNumber not set\r\n+\t}\r\n+\t\r\n+\tpublic AnswerSet(AnswerSet aSet, int quesNum) {\r\n+\t\tcount = 0;\r\n+\t\tquestionNumber = quesNum;\r\n+\t\tanswerOrder = new ArrayList<Integer>();\r\n+\t\tansSet = new ArrayList<Answer>();\r\n+\t\tfor (int i = 0; i < aSet.size(); i++) {\r\n+\t\t\tansSet.add(aSet.getAnswer(i));\r\n+\t\t\t//answerOrder.add(i); taken away to add the getOrder method and next line\r\n+\t\t\tanswerOrder.add(aSet.getOrder(i));\r\n+\t\t\tcount++;\r\n+\t\t}\r\n+\t}\r\n+\r\n+\tpublic void addAnswer(Answer ans) {\r\n+\t\tanswerOrder.add(count);\r\n+\t\tansSet.add(ans);\r\n+\t\tcount++;\r\n+\t}\r\n+\r\n+\tpublic void addQuestionNumber(int i) {\r\n+\t\tquestionNumber = i;//should make constructor to accept this ?\r\n+\t}\r\n+\r\n+\tpublic Answer getAnswer(int num) {\r\n+\t\treturn ansSet.get(num);\r\n+\t}\r\n+\t\r\n+\tpublic Integer getOrder(int num){\r\n+\t\treturn answerOrder.get(num);\r\n+\t}\r\n+\t\r\n+\tpublic int getQuestionNumber() {\r\n+\t\treturn questionNumber;\r\n+\t}\r\n+\t\r\n+\tpublic String getStringAnswer(int num) {\r\n+\t\treturn ansSet.get(num).toString();\r\n+\t}\r\n+\r\n+\tpublic ArrayList<Answer> getAnswerSet() {\r\n+\t\treturn ansSet;\r\n+\t}\r\n+\r\n+\tpublic ArrayList<Integer> getAnswerOrder() {\r\n+\t\treturn answerOrder;\r\n+\t}\r\n+\r\n+\tpublic int size() {\r\n+\t\treturn ansSet.size();\r\n+\t}\r\n+\t\r\n+\tpublic void randomizeAnswers() {\r\n+\t\tshuffledAnswerOrder = new ValueShuffler(this.size()).getShuffledValues();\r\n+\t\tshuffledAnsSet = new ArrayList<Answer>();\r\n+\t\tfor (int i = 0; i < this.size(); i++) {\r\n+\t\t\tshuffledAnsSet.add(ansSet.get(shuffledAnswerOrder.get(i)));\r\n+\t\t}\r\n+\t\tansSet = shuffledAnsSet;\r","path":"PQuiz/src/project/pquiz/AnswerSet.java","position":80,"original_position":80,"commit_id":"c7f641824bf3a5c761d2590381eec5e4dc488e69","original_commit_id":"c7f641824bf3a5c761d2590381eec5e4dc488e69","user":{"login":"takchienchiam","id":8826864,"avatar_url":"https://avatars.githubusercontent.com/u/8826864?v=3","gravatar_id":"","url":"https://api.github.com/users/takchienchiam","html_url":"https://github.com/takchienchiam","followers_url":"https://api.github.com/users/takchienchiam/followers","following_url":"https://api.github.com/users/takchienchiam/following{/other_user}","gists_url":"https://api.github.com/users/takchienchiam/gists{/gist_id}","starred_url":"https://api.github.com/users/takchienchiam/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/takchienchiam/subscriptions","organizations_url":"https://api.github.com/users/takchienchiam/orgs","repos_url":"https://api.github.com/users/takchienchiam/repos","events_url":"https://api.github.com/users/takchienchiam/events{/privacy}","received_events_url":"https://api.github.com/users/takchienchiam/received_events","type":"User","site_admin":false},"body":"this seems suspiscious","created_at":"2016-07-01T01:05:34Z","updated_at":"2016-07-01T01:05:34Z","html_url":"https://github.com/chiamyehwern/PQuiz/pull/1#discussion_r69234988","pull_request_url":"https://api.github.com/repos/chiamyehwern/PQuiz/pulls/1","_links":{"self":{"href":"https://api.github.com/repos/chiamyehwern/PQuiz/pulls/comments/69234988"},"html":{"href":"https://github.com/chiamyehwern/PQuiz/pull/1#discussion_r69234988"},"pull_request":{"href":"https://api.github.com/repos/chiamyehwern/PQuiz/pulls/1"}}},"pull_request":{"url":"https://api.github.com/repos/chiamyehwern/PQuiz/pulls/1","id":75912266,"html_url":"https://github.com/chiamyehwern/PQuiz/pull/1","diff_url":"https://github.com/chiamyehwern/PQuiz/pull/1.diff","patch_url":"https://github.com/chiamyehwern/PQuiz/pull/1.patch","issue_url":"https://api.github.com/repos/chiamyehwern/PQuiz/issues/1","number":1,"state":"open","locked":false,"title":"Adding Files","user":{"login":"chiamyehwern","id":18014122,"avatar_url":"https://avatars.githubusercontent.com/u/18014122?v=3","gravatar_id":"","url":"https://api.github.com/users/chiamyehwern","html_url":"https://github.com/chiamyehwern","followers_url":"https://api.github.com/users/chiamyehwern/followers","following_url":"https://api.github.com/users/chiamyehwern/following{/other_user}","gists_url":"https://api.github.com/users/chiamyehwern/gists{/gist_id}","starred_url":"https://api.github.com/users/chiamyehwern/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/chiamyehwern/subscriptions","organizations_url":"https://api.github.com/users/chiamyehwern/orgs","repos_url":"https://api.github.com/users/chiamyehwern/repos","events_url":"https://api.github.com/users/chiamyehwern/events{/privacy}","received_events_url":"https://api.github.com/users/chiamyehwern/received_events","type":"User","site_admin":false},"body":"","created_at":"2016-07-01T00:40:25Z","updated_at":"2016-07-01T01:05:34Z","closed_at":null,"merged_at":null,"merge_commit_sha":"b05b54dafb70770c9d237c0f80dcfd5207ceed57","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/chiamyehwern/PQuiz/pulls/1/commits","review_comments_url":"https://api.github.com/repos/chiamyehwern/PQuiz/pulls/1/comments","review_comment_url":"https://api.github.com/repos/chiamyehwern/PQuiz/pulls/comments{/number}","comments_url":"https://api.github.com/repos/chiamyehwern/PQuiz/issues/1/comments","statuses_url":"https://api.github.com/repos/chiamyehwern/PQuiz/statuses/c7f641824bf3a5c761d2590381eec5e4dc488e69","head":{"label":"chiamyehwern:Upload","ref":"Upload","sha":"c7f641824bf3a5c761d2590381eec5e4dc488e69","user":{"login":"chiamyehwern","id":18014122,"avatar_url":"https://avatars.githubusercontent.com/u/18014122?v=3","gravatar_id":"","url":"https://api.github.com/users/chiamyehwern","html_url":"https://github.com/chiamyehwern","followers_url":"https://api.github.com/users/chiamyehwern/followers","following_url":"https://api.github.com/users/chiamyehwern/following{/other_user}","gists_url":"https://api.github.com/users/chiamyehwern/gists{/gist_id}","starred_url":"https://api.github.com/users/chiamyehwern/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/chiamyehwern/subscriptions","organizations_url":"https://api.github.com/users/chiamyehwern/orgs","repos_url":"https://api.github.com/users/chiamyehwern/repos","events_url":"https://api.github.com/users/chiamyehwern/events{/privacy}","received_events_url":"https://api.github.com/users/chiamyehwern/received_events","type":"User","site_admin":false},"repo":{"id":62350902,"name":"PQuiz","full_name":"chiamyehwern/PQuiz","owner":{"login":"chiamyehwern","id":18014122,"avatar_url":"https://avatars.githubusercontent.com/u/18014122?v=3","gravatar_id":"","url":"https://api.github.com/users/chiamyehwern","html_url":"https://github.com/chiamyehwern","followers_url":"https://api.github.com/users/chiamyehwern/followers","following_url":"https://api.github.com/users/chiamyehwern/following{/other_user}","gists_url":"https://api.github.com/users/chiamyehwern/gists{/gist_id}","starred_url":"https://api.github.com/users/chiamyehwern/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/chiamyehwern/subscriptions","organizations_url":"https://api.github.com/users/chiamyehwern/orgs","repos_url":"https://api.github.com/users/chiamyehwern/repos","events_url":"https://api.github.com/users/chiamyehwern/events{/privacy}","received_events_url":"https://api.github.com/users/chiamyehwern/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/chiamyehwern/PQuiz","description":null,"fork":false,"url":"https://api.github.com/repos/chiamyehwern/PQuiz","forks_url":"https://api.github.com/repos/chiamyehwern/PQuiz/forks","keys_url":"https://api.github.com/repos/chiamyehwern/PQuiz/keys{/key_id}","collaborators_url":"https://api.github.com/repos/chiamyehwern/PQuiz/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/chiamyehwern/PQuiz/teams","hooks_url":"https://api.github.com/repos/chiamyehwern/PQuiz/hooks","issue_events_url":"https://api.github.com/repos/chiamyehwern/PQuiz/issues/events{/number}","events_url":"https://api.github.com/repos/chiamyehwern/PQuiz/events","assignees_url":"https://api.github.com/repos/chiamyehwern/PQuiz/assignees{/user}","branches_url":"https://api.github.com/repos/chiamyehwern/PQuiz/branches{/branch}","tags_url":"https://api.github.com/repos/chiamyehwern/PQuiz/tags","blobs_url":"https://api.github.com/repos/chiamyehwern/PQuiz/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/chiamyehwern/PQuiz/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/chiamyehwern/PQuiz/git/refs{/sha}","trees_url":"https://api.github.com/repos/chiamyehwern/PQuiz/git/trees{/sha}","statuses_url":"https://api.github.com/repos/chiamyehwern/PQuiz/statuses/{sha}","languages_url":"https://api.github.com/repos/chiamyehwern/PQuiz/languages","stargazers_url":"https://api.github.com/repos/chiamyehwern/PQuiz/stargazers","contributors_url":"https://api.github.com/repos/chiamyehwern/PQuiz/contributors","subscribers_url":"https://api.github.com/repos/chiamyehwern/PQuiz/subscribers","subscription_url":"https://api.github.com/repos/chiamyehwern/PQuiz/subscription","commits_url":"https://api.github.com/repos/chiamyehwern/PQuiz/commits{/sha}","git_commits_url":"https://api.github.com/repos/chiamyehwern/PQuiz/git/commits{/sha}","comments_url":"https://api.github.com/repos/chiamyehwern/PQuiz/comments{/number}","issue_comment_url":"https://api.github.com/repos/chiamyehwern/PQuiz/issues/comments{/number}","contents_url":"https://api.github.com/repos/chiamyehwern/PQuiz/contents/{+path}","compare_url":"https://api.github.com/repos/chiamyehwern/PQuiz/compare/{base}...{head}","merges_url":"https://api.github.com/repos/chiamyehwern/PQuiz/merges","archive_url":"https://api.github.com/repos/chiamyehwern/PQuiz/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/chiamyehwern/PQuiz/downloads","issues_url":"https://api.github.com/repos/chiamyehwern/PQuiz/issues{/number}","pulls_url":"https://api.github.com/repos/chiamyehwern/PQuiz/pulls{/number}","milestones_url":"https://api.github.com/repos/chiamyehwern/PQuiz/milestones{/number}","notifications_url":"https://api.github.com/repos/chiamyehwern/PQuiz/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/chiamyehwern/PQuiz/labels{/name}","releases_url":"https://api.github.com/repos/chiamyehwern/PQuiz/releases{/id}","deployments_url":"https://api.github.com/repos/chiamyehwern/PQuiz/deployments","created_at":"2016-07-01T00:38:07Z","updated_at":"2016-07-01T00:38:07Z","pushed_at":"2016-07-01T00:40:25Z","git_url":"git://github.com/chiamyehwern/PQuiz.git","ssh_url":"git@github.com:chiamyehwern/PQuiz.git","clone_url":"https://github.com/chiamyehwern/PQuiz.git","svn_url":"https://github.com/chiamyehwern/PQuiz","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":"chiamyehwern:master","ref":"master","sha":"9efe9556e1776057e530d99d7e6337427a6719a0","user":{"login":"chiamyehwern","id":18014122,"avatar_url":"https://avatars.githubusercontent.com/u/18014122?v=3","gravatar_id":"","url":"https://api.github.com/users/chiamyehwern","html_url":"https://github.com/chiamyehwern","followers_url":"https://api.github.com/users/chiamyehwern/followers","following_url":"https://api.github.com/users/chiamyehwern/following{/other_user}","gists_url":"https://api.github.com/users/chiamyehwern/gists{/gist_id}","starred_url":"https://api.github.com/users/chiamyehwern/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/chiamyehwern/subscriptions","organizations_url":"https://api.github.com/users/chiamyehwern/orgs","repos_url":"https://api.github.com/users/chiamyehwern/repos","events_url":"https://api.github.com/users/chiamyehwern/events{/privacy}","received_events_url":"https://api.github.com/users/chiamyehwern/received_events","type":"User","site_admin":false},"repo":{"id":62350902,"name":"PQuiz","full_name":"chiamyehwern/PQuiz","owner":{"login":"chiamyehwern","id":18014122,"avatar_url":"https://avatars.githubusercontent.com/u/18014122?v=3","gravatar_id":"","url":"https://api.github.com/users/chiamyehwern","html_url":"https://github.com/chiamyehwern","followers_url":"https://api.github.com/users/chiamyehwern/followers","following_url":"https://api.github.com/users/chiamyehwern/following{/other_user}","gists_url":"https://api.github.com/users/chiamyehwern/gists{/gist_id}","starred_url":"https://api.github.com/users/chiamyehwern/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/chiamyehwern/subscriptions","organizations_url":"https://api.github.com/users/chiamyehwern/orgs","repos_url":"https://api.github.com/users/chiamyehwern/repos","events_url":"https://api.github.com/users/chiamyehwern/events{/privacy}","received_events_url":"https://api.github.com/users/chiamyehwern/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/chiamyehwern/PQuiz","description":null,"fork":false,"url":"https://api.github.com/repos/chiamyehwern/PQuiz","forks_url":"https://api.github.com/repos/chiamyehwern/PQuiz/forks","keys_url":"https://api.github.com/repos/chiamyehwern/PQuiz/keys{/key_id}","collaborators_url":"https://api.github.com/repos/chiamyehwern/PQuiz/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/chiamyehwern/PQuiz/teams","hooks_url":"https://api.github.com/repos/chiamyehwern/PQuiz/hooks","issue_events_url":"https://api.github.com/repos/chiamyehwern/PQuiz/issues/events{/number}","events_url":"https://api.github.com/repos/chiamyehwern/PQuiz/events","assignees_url":"https://api.github.com/repos/chiamyehwern/PQuiz/assignees{/user}","branches_url":"https://api.github.com/repos/chiamyehwern/PQuiz/branches{/branch}","tags_url":"https://api.github.com/repos/chiamyehwern/PQuiz/tags","blobs_url":"https://api.github.com/repos/chiamyehwern/PQuiz/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/chiamyehwern/PQuiz/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/chiamyehwern/PQuiz/git/refs{/sha}","trees_url":"https://api.github.com/repos/chiamyehwern/PQuiz/git/trees{/sha}","statuses_url":"https://api.github.com/repos/chiamyehwern/PQuiz/statuses/{sha}","languages_url":"https://api.github.com/repos/chiamyehwern/PQuiz/languages","stargazers_url":"https://api.github.com/repos/chiamyehwern/PQuiz/stargazers","contributors_url":"https://api.github.com/repos/chiamyehwern/PQuiz/contributors","subscribers_url":"https://api.github.com/repos/chiamyehwern/PQuiz/subscribers","subscription_url":"https://api.github.com/repos/chiamyehwern/PQuiz/subscription","commits_url":"https://api.github.com/repos/chiamyehwern/PQuiz/commits{/sha}","git_commits_url":"https://api.github.com/repos/chiamyehwern/PQuiz/git/commits{/sha}","comments_url":"https://api.github.com/repos/chiamyehwern/PQuiz/comments{/number}","issue_comment_url":"https://api.github.com/repos/chiamyehwern/PQuiz/issues/comments{/number}","contents_url":"https://api.github.com/repos/chiamyehwern/PQuiz/contents/{+path}","compare_url":"https://api.github.com/repos/chiamyehwern/PQuiz/compare/{base}...{head}","merges_url":"https://api.github.com/repos/chiamyehwern/PQuiz/merges","archive_url":"https://api.github.com/repos/chiamyehwern/PQuiz/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/chiamyehwern/PQuiz/downloads","issues_url":"https://api.github.com/repos/chiamyehwern/PQuiz/issues{/number}","pulls_url":"https://api.github.com/repos/chiamyehwern/PQuiz/pulls{/number}","milestones_url":"https://api.github.com/repos/chiamyehwern/PQuiz/milestones{/number}","notifications_url":"https://api.github.com/repos/chiamyehwern/PQuiz/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/chiamyehwern/PQuiz/labels{/name}","releases_url":"https://api.github.com/repos/chiamyehwern/PQuiz/releases{/id}","deployments_url":"https://api.github.com/repos/chiamyehwern/PQuiz/deployments","created_at":"2016-07-01T00:38:07Z","updated_at":"2016-07-01T00:38:07Z","pushed_at":"2016-07-01T00:40:25Z","git_url":"git://github.com/chiamyehwern/PQuiz.git","ssh_url":"git@github.com:chiamyehwern/PQuiz.git","clone_url":"https://github.com/chiamyehwern/PQuiz.git","svn_url":"https://github.com/chiamyehwern/PQuiz","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/chiamyehwern/PQuiz/pulls/1"},"html":{"href":"https://github.com/chiamyehwern/PQuiz/pull/1"},"issue":{"href":"https://api.github.com/repos/chiamyehwern/PQuiz/issues/1"},"comments":{"href":"https://api.github.com/repos/chiamyehwern/PQuiz/issues/1/comments"},"review_comments":{"href":"https://api.github.com/repos/chiamyehwern/PQuiz/pulls/1/comments"},"review_comment":{"href":"https://api.github.com/repos/chiamyehwern/PQuiz/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/chiamyehwern/PQuiz/pulls/1/commits"},"statuses":{"href":"https://api.github.com/repos/chiamyehwern/PQuiz/statuses/c7f641824bf3a5c761d2590381eec5e4dc488e69"}}}}
{"actor":{"display_login":"takchienchiam"}}