{"action":"created","comment":{"url":"https://api.github.com/repos/toped/sw-testing-codereview/pulls/comments/58277623","id":58277623,"diff_hunk":"@@ -0,0 +1,155 @@\n+import java.awt.event.ActionEvent;\r\n+import java.awt.event.ActionListener;\r\n+import java.awt.event.KeyEvent;\r\n+import java.awt.event.KeyListener;\r\n+import java.awt.event.WindowAdapter;\r\n+import java.awt.event.WindowEvent;\r\n+import java.io.*;\r\n+import java.net.*;\r\n+\r\n+import javax.swing.*;\r\n+\r\n+\r\n+public class ChatClient extends JFrame implements Runnable {\r\n+\t\r\n+\tSocket socket;\r\n+\tJTextArea ta;\r\n+\tJButton send, logout;\r\n+\tJTextField tf;\r\n+\t\r\n+\tThread thread;\r\n+\t\r\n+\tDataInputStream din;\r\n+\tDataOutputStream dout;\r\n+\t\r\n+\tString LoginName;\r\n+\t\r\n+\tChatClient(String login) throws UnknownHostException, IOException{\r\n+\t\tsuper(login);\r\n+\t\tLoginName = login;\r\n+\t\t\r\n+\t\taddWindowListener(new WindowAdapter(){\r\n+\t\t\tpublic void windowClosing(WindowEvent e){\r\n+\t\t\t\ttry {\r\n+\t\t\t\t\tdout.writeUTF(LoginName + \" \" + \"LOGOUT\");\r\n+\t\t\t\t\tSystem.exit(1);\r\n+\t\t\t\t} catch (IOException e1) {\r\n+\t\t\t\t\t// TODO Auto-generated catch block\r\n+\t\t\t\t\te1.printStackTrace();\r\n+\t\t\t\t}\r\n+\t\t\t}\r\n+\t\t});\r\n+\t\t\r\n+\t\tta = new JTextArea(18, 50);\r\n+\t\ttf = new JTextField(50);\r\n+\t\t\r\n+\t\ttf.addKeyListener(new KeyListener(){\r\n+\r\n+\t\t\t@Override\r\n+\t\t\tpublic void keyTyped(KeyEvent e) {\r\n+\t\t\t\t// TODO Auto-generated method stub\r\n+\t\t\t\t\r\n+\t\t\t}\r\n+\r\n+\t\t\t@Override\r\n+\t\t\tpublic void keyPressed(KeyEvent e) {\r\n+\t\t\t\t// TODO Auto-generated method stub\r\n+\t\t\t\tif(e.getKeyCode() == KeyEvent.VK_ENTER){\r\n+\t\t\t\t\ttry {\r\n+\t\t\t\t\t\tif(tf.getText().length()>0)\r\n+\t\t\t\t\t\t\tdout.writeUTF(LoginName + \" \" + \"DATA \" + tf.getText().toString());\r\n+\t\t\t\t\t\ttf.setText(\"\");\r\n+\t\t\t\t\t} catch (IOException e1) {\r\n+\t\t\t\t\t\t// TODO Auto-generated catch block\r\n+\t\t\t\t\t\te1.printStackTrace();\r\n+\t\t\t\t\t}\r\n+\t\t\t\t}\r\n+\t\t\t}\r\n+\r\n+\t\t\t@Override\r\n+\t\t\tpublic void keyReleased(KeyEvent e) {\r\n+\t\t\t\t// TODO Auto-generated method stub\r\n+\t\t\t\t\r","path":"chatt-app/ChatClient.java","position":72,"original_position":72,"commit_id":"7215e1799cd9139c6baf13c54c48b1c5e56d3250","original_commit_id":"7215e1799cd9139c6baf13c54c48b1c5e56d3250","user":{"login":"hds109","id":16804736,"avatar_url":"https://avatars.githubusercontent.com/u/16804736?v=3","gravatar_id":"","url":"https://api.github.com/users/hds109","html_url":"https://github.com/hds109","followers_url":"https://api.github.com/users/hds109/followers","following_url":"https://api.github.com/users/hds109/following{/other_user}","gists_url":"https://api.github.com/users/hds109/gists{/gist_id}","starred_url":"https://api.github.com/users/hds109/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hds109/subscriptions","organizations_url":"https://api.github.com/users/hds109/orgs","repos_url":"https://api.github.com/users/hds109/repos","events_url":"https://api.github.com/users/hds109/events{/privacy}","received_events_url":"https://api.github.com/users/hds109/received_events","type":"User","site_admin":false},"body":"Omission (O) - Assuming this package is completed code, the keyReleased function was never completed. \r\n\r\nRank 2 - Fix as part of planned debugging sessions","created_at":"2016-04-01T22:43:14Z","updated_at":"2016-04-01T22:43:14Z","html_url":"https://github.com/toped/sw-testing-codereview/pull/2#discussion_r58277623","pull_request_url":"https://api.github.com/repos/toped/sw-testing-codereview/pulls/2","_links":{"self":{"href":"https://api.github.com/repos/toped/sw-testing-codereview/pulls/comments/58277623"},"html":{"href":"https://github.com/toped/sw-testing-codereview/pull/2#discussion_r58277623"},"pull_request":{"href":"https://api.github.com/repos/toped/sw-testing-codereview/pulls/2"}}},"pull_request":{"url":"https://api.github.com/repos/toped/sw-testing-codereview/pulls/2","id":64811061,"html_url":"https://github.com/toped/sw-testing-codereview/pull/2","diff_url":"https://github.com/toped/sw-testing-codereview/pull/2.diff","patch_url":"https://github.com/toped/sw-testing-codereview/pull/2.patch","issue_url":"https://api.github.com/repos/toped/sw-testing-codereview/issues/2","number":2,"state":"open","locked":false,"title":"chatt-app commit","user":{"login":"toped","id":5192506,"avatar_url":"https://avatars.githubusercontent.com/u/5192506?v=3","gravatar_id":"","url":"https://api.github.com/users/toped","html_url":"https://github.com/toped","followers_url":"https://api.github.com/users/toped/followers","following_url":"https://api.github.com/users/toped/following{/other_user}","gists_url":"https://api.github.com/users/toped/gists{/gist_id}","starred_url":"https://api.github.com/users/toped/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/toped/subscriptions","organizations_url":"https://api.github.com/users/toped/orgs","repos_url":"https://api.github.com/users/toped/repos","events_url":"https://api.github.com/users/toped/events{/privacy}","received_events_url":"https://api.github.com/users/toped/received_events","type":"User","site_admin":false},"body":"please review\n\n<!-- Reviewable:start -->\n---\nThis change is [<img src=\"https://reviewable.io/review_button.svg\" height=\"35\" align=\"absmiddle\" alt=\"Reviewable\"/>](https://reviewable.io/reviews/toped/sw-testing-codereview/2)\n<!-- Reviewable:end -->\n","created_at":"2016-03-31T15:36:27Z","updated_at":"2016-04-01T22:43:14Z","closed_at":null,"merged_at":null,"merge_commit_sha":"43d93495b47f480b7e4891cef3e61b127594099d","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/toped/sw-testing-codereview/pulls/2/commits","review_comments_url":"https://api.github.com/repos/toped/sw-testing-codereview/pulls/2/comments","review_comment_url":"https://api.github.com/repos/toped/sw-testing-codereview/pulls/comments{/number}","comments_url":"https://api.github.com/repos/toped/sw-testing-codereview/issues/2/comments","statuses_url":"https://api.github.com/repos/toped/sw-testing-codereview/statuses/7215e1799cd9139c6baf13c54c48b1c5e56d3250","head":{"label":"toped:chatt-app-package","ref":"chatt-app-package","sha":"7215e1799cd9139c6baf13c54c48b1c5e56d3250","user":{"login":"toped","id":5192506,"avatar_url":"https://avatars.githubusercontent.com/u/5192506?v=3","gravatar_id":"","url":"https://api.github.com/users/toped","html_url":"https://github.com/toped","followers_url":"https://api.github.com/users/toped/followers","following_url":"https://api.github.com/users/toped/following{/other_user}","gists_url":"https://api.github.com/users/toped/gists{/gist_id}","starred_url":"https://api.github.com/users/toped/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/toped/subscriptions","organizations_url":"https://api.github.com/users/toped/orgs","repos_url":"https://api.github.com/users/toped/repos","events_url":"https://api.github.com/users/toped/events{/privacy}","received_events_url":"https://api.github.com/users/toped/received_events","type":"User","site_admin":false},"repo":{"id":55160981,"name":"sw-testing-codereview","full_name":"toped/sw-testing-codereview","owner":{"login":"toped","id":5192506,"avatar_url":"https://avatars.githubusercontent.com/u/5192506?v=3","gravatar_id":"","url":"https://api.github.com/users/toped","html_url":"https://github.com/toped","followers_url":"https://api.github.com/users/toped/followers","following_url":"https://api.github.com/users/toped/following{/other_user}","gists_url":"https://api.github.com/users/toped/gists{/gist_id}","starred_url":"https://api.github.com/users/toped/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/toped/subscriptions","organizations_url":"https://api.github.com/users/toped/orgs","repos_url":"https://api.github.com/users/toped/repos","events_url":"https://api.github.com/users/toped/events{/privacy}","received_events_url":"https://api.github.com/users/toped/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/toped/sw-testing-codereview","description":"repo for assignment 2","fork":false,"url":"https://api.github.com/repos/toped/sw-testing-codereview","forks_url":"https://api.github.com/repos/toped/sw-testing-codereview/forks","keys_url":"https://api.github.com/repos/toped/sw-testing-codereview/keys{/key_id}","collaborators_url":"https://api.github.com/repos/toped/sw-testing-codereview/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/toped/sw-testing-codereview/teams","hooks_url":"https://api.github.com/repos/toped/sw-testing-codereview/hooks","issue_events_url":"https://api.github.com/repos/toped/sw-testing-codereview/issues/events{/number}","events_url":"https://api.github.com/repos/toped/sw-testing-codereview/events","assignees_url":"https://api.github.com/repos/toped/sw-testing-codereview/assignees{/user}","branches_url":"https://api.github.com/repos/toped/sw-testing-codereview/branches{/branch}","tags_url":"https://api.github.com/repos/toped/sw-testing-codereview/tags","blobs_url":"https://api.github.com/repos/toped/sw-testing-codereview/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/toped/sw-testing-codereview/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/toped/sw-testing-codereview/git/refs{/sha}","trees_url":"https://api.github.com/repos/toped/sw-testing-codereview/git/trees{/sha}","statuses_url":"https://api.github.com/repos/toped/sw-testing-codereview/statuses/{sha}","languages_url":"https://api.github.com/repos/toped/sw-testing-codereview/languages","stargazers_url":"https://api.github.com/repos/toped/sw-testing-codereview/stargazers","contributors_url":"https://api.github.com/repos/toped/sw-testing-codereview/contributors","subscribers_url":"https://api.github.com/repos/toped/sw-testing-codereview/subscribers","subscription_url":"https://api.github.com/repos/toped/sw-testing-codereview/subscription","commits_url":"https://api.github.com/repos/toped/sw-testing-codereview/commits{/sha}","git_commits_url":"https://api.github.com/repos/toped/sw-testing-codereview/git/commits{/sha}","comments_url":"https://api.github.com/repos/toped/sw-testing-codereview/comments{/number}","issue_comment_url":"https://api.github.com/repos/toped/sw-testing-codereview/issues/comments{/number}","contents_url":"https://api.github.com/repos/toped/sw-testing-codereview/contents/{+path}","compare_url":"https://api.github.com/repos/toped/sw-testing-codereview/compare/{base}...{head}","merges_url":"https://api.github.com/repos/toped/sw-testing-codereview/merges","archive_url":"https://api.github.com/repos/toped/sw-testing-codereview/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/toped/sw-testing-codereview/downloads","issues_url":"https://api.github.com/repos/toped/sw-testing-codereview/issues{/number}","pulls_url":"https://api.github.com/repos/toped/sw-testing-codereview/pulls{/number}","milestones_url":"https://api.github.com/repos/toped/sw-testing-codereview/milestones{/number}","notifications_url":"https://api.github.com/repos/toped/sw-testing-codereview/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/toped/sw-testing-codereview/labels{/name}","releases_url":"https://api.github.com/repos/toped/sw-testing-codereview/releases{/id}","deployments_url":"https://api.github.com/repos/toped/sw-testing-codereview/deployments","created_at":"2016-03-31T15:22:10Z","updated_at":"2016-03-31T15:22:10Z","pushed_at":"2016-04-01T15:54:40Z","git_url":"git://github.com/toped/sw-testing-codereview.git","ssh_url":"git@github.com:toped/sw-testing-codereview.git","clone_url":"https://github.com/toped/sw-testing-codereview.git","svn_url":"https://github.com/toped/sw-testing-codereview","homepage":null,"size":27,"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":5,"forks":0,"open_issues":5,"watchers":0,"default_branch":"master"}},"base":{"label":"toped:master","ref":"master","sha":"f5166a4b8b56befa0781eb4f1b0689865298370a","user":{"login":"toped","id":5192506,"avatar_url":"https://avatars.githubusercontent.com/u/5192506?v=3","gravatar_id":"","url":"https://api.github.com/users/toped","html_url":"https://github.com/toped","followers_url":"https://api.github.com/users/toped/followers","following_url":"https://api.github.com/users/toped/following{/other_user}","gists_url":"https://api.github.com/users/toped/gists{/gist_id}","starred_url":"https://api.github.com/users/toped/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/toped/subscriptions","organizations_url":"https://api.github.com/users/toped/orgs","repos_url":"https://api.github.com/users/toped/repos","events_url":"https://api.github.com/users/toped/events{/privacy}","received_events_url":"https://api.github.com/users/toped/received_events","type":"User","site_admin":false},"repo":{"id":55160981,"name":"sw-testing-codereview","full_name":"toped/sw-testing-codereview","owner":{"login":"toped","id":5192506,"avatar_url":"https://avatars.githubusercontent.com/u/5192506?v=3","gravatar_id":"","url":"https://api.github.com/users/toped","html_url":"https://github.com/toped","followers_url":"https://api.github.com/users/toped/followers","following_url":"https://api.github.com/users/toped/following{/other_user}","gists_url":"https://api.github.com/users/toped/gists{/gist_id}","starred_url":"https://api.github.com/users/toped/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/toped/subscriptions","organizations_url":"https://api.github.com/users/toped/orgs","repos_url":"https://api.github.com/users/toped/repos","events_url":"https://api.github.com/users/toped/events{/privacy}","received_events_url":"https://api.github.com/users/toped/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/toped/sw-testing-codereview","description":"repo for assignment 2","fork":false,"url":"https://api.github.com/repos/toped/sw-testing-codereview","forks_url":"https://api.github.com/repos/toped/sw-testing-codereview/forks","keys_url":"https://api.github.com/repos/toped/sw-testing-codereview/keys{/key_id}","collaborators_url":"https://api.github.com/repos/toped/sw-testing-codereview/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/toped/sw-testing-codereview/teams","hooks_url":"https://api.github.com/repos/toped/sw-testing-codereview/hooks","issue_events_url":"https://api.github.com/repos/toped/sw-testing-codereview/issues/events{/number}","events_url":"https://api.github.com/repos/toped/sw-testing-codereview/events","assignees_url":"https://api.github.com/repos/toped/sw-testing-codereview/assignees{/user}","branches_url":"https://api.github.com/repos/toped/sw-testing-codereview/branches{/branch}","tags_url":"https://api.github.com/repos/toped/sw-testing-codereview/tags","blobs_url":"https://api.github.com/repos/toped/sw-testing-codereview/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/toped/sw-testing-codereview/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/toped/sw-testing-codereview/git/refs{/sha}","trees_url":"https://api.github.com/repos/toped/sw-testing-codereview/git/trees{/sha}","statuses_url":"https://api.github.com/repos/toped/sw-testing-codereview/statuses/{sha}","languages_url":"https://api.github.com/repos/toped/sw-testing-codereview/languages","stargazers_url":"https://api.github.com/repos/toped/sw-testing-codereview/stargazers","contributors_url":"https://api.github.com/repos/toped/sw-testing-codereview/contributors","subscribers_url":"https://api.github.com/repos/toped/sw-testing-codereview/subscribers","subscription_url":"https://api.github.com/repos/toped/sw-testing-codereview/subscription","commits_url":"https://api.github.com/repos/toped/sw-testing-codereview/commits{/sha}","git_commits_url":"https://api.github.com/repos/toped/sw-testing-codereview/git/commits{/sha}","comments_url":"https://api.github.com/repos/toped/sw-testing-codereview/comments{/number}","issue_comment_url":"https://api.github.com/repos/toped/sw-testing-codereview/issues/comments{/number}","contents_url":"https://api.github.com/repos/toped/sw-testing-codereview/contents/{+path}","compare_url":"https://api.github.com/repos/toped/sw-testing-codereview/compare/{base}...{head}","merges_url":"https://api.github.com/repos/toped/sw-testing-codereview/merges","archive_url":"https://api.github.com/repos/toped/sw-testing-codereview/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/toped/sw-testing-codereview/downloads","issues_url":"https://api.github.com/repos/toped/sw-testing-codereview/issues{/number}","pulls_url":"https://api.github.com/repos/toped/sw-testing-codereview/pulls{/number}","milestones_url":"https://api.github.com/repos/toped/sw-testing-codereview/milestones{/number}","notifications_url":"https://api.github.com/repos/toped/sw-testing-codereview/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/toped/sw-testing-codereview/labels{/name}","releases_url":"https://api.github.com/repos/toped/sw-testing-codereview/releases{/id}","deployments_url":"https://api.github.com/repos/toped/sw-testing-codereview/deployments","created_at":"2016-03-31T15:22:10Z","updated_at":"2016-03-31T15:22:10Z","pushed_at":"2016-04-01T15:54:40Z","git_url":"git://github.com/toped/sw-testing-codereview.git","ssh_url":"git@github.com:toped/sw-testing-codereview.git","clone_url":"https://github.com/toped/sw-testing-codereview.git","svn_url":"https://github.com/toped/sw-testing-codereview","homepage":null,"size":27,"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":5,"forks":0,"open_issues":5,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/toped/sw-testing-codereview/pulls/2"},"html":{"href":"https://github.com/toped/sw-testing-codereview/pull/2"},"issue":{"href":"https://api.github.com/repos/toped/sw-testing-codereview/issues/2"},"comments":{"href":"https://api.github.com/repos/toped/sw-testing-codereview/issues/2/comments"},"review_comments":{"href":"https://api.github.com/repos/toped/sw-testing-codereview/pulls/2/comments"},"review_comment":{"href":"https://api.github.com/repos/toped/sw-testing-codereview/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/toped/sw-testing-codereview/pulls/2/commits"},"statuses":{"href":"https://api.github.com/repos/toped/sw-testing-codereview/statuses/7215e1799cd9139c6baf13c54c48b1c5e56d3250"}}}}