{"action":"created","comment":{"url":"https://api.github.com/repos/tmc-cli/tmc-cli/pulls/comments/32916168","id":32916168,"diff_hunk":"@@ -110,4 +72,31 @@ public void checkData() throws ProtocolException {\n             throw new ProtocolException(\"pwd not supplied\");\n         }\n     }\n+\n+    @Override\n+    public SubmissionResult call() throws ProtocolException, IOException, ParseException, ExpiredException, IllegalArgumentException, ZipException, InterruptedException {\n+        checkData();\n+        interpreter = getInterpreter();\n+        String returnUrl = submitter.submit((String) data.get(\"path\"));\n+        return interpreter.getSubmissionResult(returnUrl);\n+    }\n+\n+    @Override\n+    public Optional<String> parseData(Object data) {\n+        try {\n+            SubmissionResult submissionResult = (SubmissionResult) data;\n+            String output = \"\";\n+            output = interpreter.resultSummary(true);\n+            if (submissionResult.isAllTestsPassed()) {\n+                List<FeedbackQuestion> feedback = submissionResult.getFeedbackQuestions();\n+                if (feedback != null && !feedback.isEmpty()) {\n+                    output += \"Please give feedback:\";\n+                    output += feedback + submissionResult.getFeedbackAnswerUrl();\n+                }\n+            }","path":"src/main/java/hy/tmc/cli/frontend/communication/commands/Submit.java","position":127,"original_position":127,"commit_id":"d6ee70b7f802cddfbe1c91a9af1113a1261a5ae1","original_commit_id":"d6ee70b7f802cddfbe1c91a9af1113a1261a5ae1","user":{"login":"wakr","id":8407920,"avatar_url":"https://avatars.githubusercontent.com/u/8407920?v=3","gravatar_id":"","url":"https://api.github.com/users/wakr","html_url":"https://github.com/wakr","followers_url":"https://api.github.com/users/wakr/followers","following_url":"https://api.github.com/users/wakr/following{/other_user}","gists_url":"https://api.github.com/users/wakr/gists{/gist_id}","starred_url":"https://api.github.com/users/wakr/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/wakr/subscriptions","organizations_url":"https://api.github.com/users/wakr/orgs","repos_url":"https://api.github.com/users/wakr/repos","events_url":"https://api.github.com/users/wakr/events{/privacy}","received_events_url":"https://api.github.com/users/wakr/received_events","type":"User","site_admin":false},"body":"Can this be refactored?","created_at":"2015-06-22T09:06:32Z","updated_at":"2015-06-22T09:06:32Z","html_url":"https://github.com/tmc-cli/tmc-cli/pull/49#discussion_r32916168","pull_request_url":"https://api.github.com/repos/tmc-cli/tmc-cli/pulls/49","_links":{"self":{"href":"https://api.github.com/repos/tmc-cli/tmc-cli/pulls/comments/32916168"},"html":{"href":"https://github.com/tmc-cli/tmc-cli/pull/49#discussion_r32916168"},"pull_request":{"href":"https://api.github.com/repos/tmc-cli/tmc-cli/pulls/49"}}},"pull_request":{"url":"https://api.github.com/repos/tmc-cli/tmc-cli/pulls/49","id":38209786,"html_url":"https://github.com/tmc-cli/tmc-cli/pull/49","diff_url":"https://github.com/tmc-cli/tmc-cli/pull/49.diff","patch_url":"https://github.com/tmc-cli/tmc-cli/pull/49.patch","issue_url":"https://api.github.com/repos/tmc-cli/tmc-cli/issues/49","number":49,"state":"open","locked":false,"title":"Command threads","user":{"login":"Coolnesss","id":4622983,"avatar_url":"https://avatars.githubusercontent.com/u/4622983?v=3","gravatar_id":"","url":"https://api.github.com/users/Coolnesss","html_url":"https://github.com/Coolnesss","followers_url":"https://api.github.com/users/Coolnesss/followers","following_url":"https://api.github.com/users/Coolnesss/following{/other_user}","gists_url":"https://api.github.com/users/Coolnesss/gists{/gist_id}","starred_url":"https://api.github.com/users/Coolnesss/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Coolnesss/subscriptions","organizations_url":"https://api.github.com/users/Coolnesss/orgs","repos_url":"https://api.github.com/users/Coolnesss/repos","events_url":"https://api.github.com/users/Coolnesss/events{/privacy}","received_events_url":"https://api.github.com/users/Coolnesss/received_events","type":"User","site_admin":false},"body":"Threading works fully. Completely re-factored architecture. TMC Core has been refactored and is completelty operational, and has full javadoc coverage. Feedback doesn't work. It's tests have been disabled.","created_at":"2015-06-22T08:36:08Z","updated_at":"2015-06-22T09:06:32Z","closed_at":null,"merged_at":null,"merge_commit_sha":"2c94d6fdab3a94302393dddbc254e171abe9d8b7","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/tmc-cli/tmc-cli/pulls/49/commits","review_comments_url":"https://api.github.com/repos/tmc-cli/tmc-cli/pulls/49/comments","review_comment_url":"https://api.github.com/repos/tmc-cli/tmc-cli/pulls/comments{/number}","comments_url":"https://api.github.com/repos/tmc-cli/tmc-cli/issues/49/comments","statuses_url":"https://api.github.com/repos/tmc-cli/tmc-cli/statuses/d6ee70b7f802cddfbe1c91a9af1113a1261a5ae1","head":{"label":"tmc-cli:command_threads","ref":"command_threads","sha":"d6ee70b7f802cddfbe1c91a9af1113a1261a5ae1","user":{"login":"tmc-cli","id":12210845,"avatar_url":"https://avatars.githubusercontent.com/u/12210845?v=3","gravatar_id":"","url":"https://api.github.com/users/tmc-cli","html_url":"https://github.com/tmc-cli","followers_url":"https://api.github.com/users/tmc-cli/followers","following_url":"https://api.github.com/users/tmc-cli/following{/other_user}","gists_url":"https://api.github.com/users/tmc-cli/gists{/gist_id}","starred_url":"https://api.github.com/users/tmc-cli/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tmc-cli/subscriptions","organizations_url":"https://api.github.com/users/tmc-cli/orgs","repos_url":"https://api.github.com/users/tmc-cli/repos","events_url":"https://api.github.com/users/tmc-cli/events{/privacy}","received_events_url":"https://api.github.com/users/tmc-cli/received_events","type":"Organization","site_admin":false},"repo":{"id":35415454,"name":"tmc-cli","full_name":"tmc-cli/tmc-cli","owner":{"login":"tmc-cli","id":12210845,"avatar_url":"https://avatars.githubusercontent.com/u/12210845?v=3","gravatar_id":"","url":"https://api.github.com/users/tmc-cli","html_url":"https://github.com/tmc-cli","followers_url":"https://api.github.com/users/tmc-cli/followers","following_url":"https://api.github.com/users/tmc-cli/following{/other_user}","gists_url":"https://api.github.com/users/tmc-cli/gists{/gist_id}","starred_url":"https://api.github.com/users/tmc-cli/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tmc-cli/subscriptions","organizations_url":"https://api.github.com/users/tmc-cli/orgs","repos_url":"https://api.github.com/users/tmc-cli/repos","events_url":"https://api.github.com/users/tmc-cli/events{/privacy}","received_events_url":"https://api.github.com/users/tmc-cli/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/tmc-cli/tmc-cli","description":"Command Line client for Test My Code","fork":false,"url":"https://api.github.com/repos/tmc-cli/tmc-cli","forks_url":"https://api.github.com/repos/tmc-cli/tmc-cli/forks","keys_url":"https://api.github.com/repos/tmc-cli/tmc-cli/keys{/key_id}","collaborators_url":"https://api.github.com/repos/tmc-cli/tmc-cli/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/tmc-cli/tmc-cli/teams","hooks_url":"https://api.github.com/repos/tmc-cli/tmc-cli/hooks","issue_events_url":"https://api.github.com/repos/tmc-cli/tmc-cli/issues/events{/number}","events_url":"https://api.github.com/repos/tmc-cli/tmc-cli/events","assignees_url":"https://api.github.com/repos/tmc-cli/tmc-cli/assignees{/user}","branches_url":"https://api.github.com/repos/tmc-cli/tmc-cli/branches{/branch}","tags_url":"https://api.github.com/repos/tmc-cli/tmc-cli/tags","blobs_url":"https://api.github.com/repos/tmc-cli/tmc-cli/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/tmc-cli/tmc-cli/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/tmc-cli/tmc-cli/git/refs{/sha}","trees_url":"https://api.github.com/repos/tmc-cli/tmc-cli/git/trees{/sha}","statuses_url":"https://api.github.com/repos/tmc-cli/tmc-cli/statuses/{sha}","languages_url":"https://api.github.com/repos/tmc-cli/tmc-cli/languages","stargazers_url":"https://api.github.com/repos/tmc-cli/tmc-cli/stargazers","contributors_url":"https://api.github.com/repos/tmc-cli/tmc-cli/contributors","subscribers_url":"https://api.github.com/repos/tmc-cli/tmc-cli/subscribers","subscription_url":"https://api.github.com/repos/tmc-cli/tmc-cli/subscription","commits_url":"https://api.github.com/repos/tmc-cli/tmc-cli/commits{/sha}","git_commits_url":"https://api.github.com/repos/tmc-cli/tmc-cli/git/commits{/sha}","comments_url":"https://api.github.com/repos/tmc-cli/tmc-cli/comments{/number}","issue_comment_url":"https://api.github.com/repos/tmc-cli/tmc-cli/issues/comments{/number}","contents_url":"https://api.github.com/repos/tmc-cli/tmc-cli/contents/{+path}","compare_url":"https://api.github.com/repos/tmc-cli/tmc-cli/compare/{base}...{head}","merges_url":"https://api.github.com/repos/tmc-cli/tmc-cli/merges","archive_url":"https://api.github.com/repos/tmc-cli/tmc-cli/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/tmc-cli/tmc-cli/downloads","issues_url":"https://api.github.com/repos/tmc-cli/tmc-cli/issues{/number}","pulls_url":"https://api.github.com/repos/tmc-cli/tmc-cli/pulls{/number}","milestones_url":"https://api.github.com/repos/tmc-cli/tmc-cli/milestones{/number}","notifications_url":"https://api.github.com/repos/tmc-cli/tmc-cli/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/tmc-cli/tmc-cli/labels{/name}","releases_url":"https://api.github.com/repos/tmc-cli/tmc-cli/releases{/id}","created_at":"2015-05-11T09:51:02Z","updated_at":"2015-06-07T09:49:54Z","pushed_at":"2015-06-22T08:52:34Z","git_url":"git://github.com/tmc-cli/tmc-cli.git","ssh_url":"git@github.com:tmc-cli/tmc-cli.git","clone_url":"https://github.com/tmc-cli/tmc-cli.git","svn_url":"https://github.com/tmc-cli/tmc-cli","homepage":"","size":52971,"stargazers_count":1,"watchers_count":1,"language":"Java","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":3,"forks":0,"open_issues":3,"watchers":1,"default_branch":"master"}},"base":{"label":"tmc-cli:master","ref":"master","sha":"0378d05468b53ac96cdac6997da9f86df9a703d0","user":{"login":"tmc-cli","id":12210845,"avatar_url":"https://avatars.githubusercontent.com/u/12210845?v=3","gravatar_id":"","url":"https://api.github.com/users/tmc-cli","html_url":"https://github.com/tmc-cli","followers_url":"https://api.github.com/users/tmc-cli/followers","following_url":"https://api.github.com/users/tmc-cli/following{/other_user}","gists_url":"https://api.github.com/users/tmc-cli/gists{/gist_id}","starred_url":"https://api.github.com/users/tmc-cli/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tmc-cli/subscriptions","organizations_url":"https://api.github.com/users/tmc-cli/orgs","repos_url":"https://api.github.com/users/tmc-cli/repos","events_url":"https://api.github.com/users/tmc-cli/events{/privacy}","received_events_url":"https://api.github.com/users/tmc-cli/received_events","type":"Organization","site_admin":false},"repo":{"id":35415454,"name":"tmc-cli","full_name":"tmc-cli/tmc-cli","owner":{"login":"tmc-cli","id":12210845,"avatar_url":"https://avatars.githubusercontent.com/u/12210845?v=3","gravatar_id":"","url":"https://api.github.com/users/tmc-cli","html_url":"https://github.com/tmc-cli","followers_url":"https://api.github.com/users/tmc-cli/followers","following_url":"https://api.github.com/users/tmc-cli/following{/other_user}","gists_url":"https://api.github.com/users/tmc-cli/gists{/gist_id}","starred_url":"https://api.github.com/users/tmc-cli/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tmc-cli/subscriptions","organizations_url":"https://api.github.com/users/tmc-cli/orgs","repos_url":"https://api.github.com/users/tmc-cli/repos","events_url":"https://api.github.com/users/tmc-cli/events{/privacy}","received_events_url":"https://api.github.com/users/tmc-cli/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/tmc-cli/tmc-cli","description":"Command Line client for Test My Code","fork":false,"url":"https://api.github.com/repos/tmc-cli/tmc-cli","forks_url":"https://api.github.com/repos/tmc-cli/tmc-cli/forks","keys_url":"https://api.github.com/repos/tmc-cli/tmc-cli/keys{/key_id}","collaborators_url":"https://api.github.com/repos/tmc-cli/tmc-cli/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/tmc-cli/tmc-cli/teams","hooks_url":"https://api.github.com/repos/tmc-cli/tmc-cli/hooks","issue_events_url":"https://api.github.com/repos/tmc-cli/tmc-cli/issues/events{/number}","events_url":"https://api.github.com/repos/tmc-cli/tmc-cli/events","assignees_url":"https://api.github.com/repos/tmc-cli/tmc-cli/assignees{/user}","branches_url":"https://api.github.com/repos/tmc-cli/tmc-cli/branches{/branch}","tags_url":"https://api.github.com/repos/tmc-cli/tmc-cli/tags","blobs_url":"https://api.github.com/repos/tmc-cli/tmc-cli/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/tmc-cli/tmc-cli/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/tmc-cli/tmc-cli/git/refs{/sha}","trees_url":"https://api.github.com/repos/tmc-cli/tmc-cli/git/trees{/sha}","statuses_url":"https://api.github.com/repos/tmc-cli/tmc-cli/statuses/{sha}","languages_url":"https://api.github.com/repos/tmc-cli/tmc-cli/languages","stargazers_url":"https://api.github.com/repos/tmc-cli/tmc-cli/stargazers","contributors_url":"https://api.github.com/repos/tmc-cli/tmc-cli/contributors","subscribers_url":"https://api.github.com/repos/tmc-cli/tmc-cli/subscribers","subscription_url":"https://api.github.com/repos/tmc-cli/tmc-cli/subscription","commits_url":"https://api.github.com/repos/tmc-cli/tmc-cli/commits{/sha}","git_commits_url":"https://api.github.com/repos/tmc-cli/tmc-cli/git/commits{/sha}","comments_url":"https://api.github.com/repos/tmc-cli/tmc-cli/comments{/number}","issue_comment_url":"https://api.github.com/repos/tmc-cli/tmc-cli/issues/comments{/number}","contents_url":"https://api.github.com/repos/tmc-cli/tmc-cli/contents/{+path}","compare_url":"https://api.github.com/repos/tmc-cli/tmc-cli/compare/{base}...{head}","merges_url":"https://api.github.com/repos/tmc-cli/tmc-cli/merges","archive_url":"https://api.github.com/repos/tmc-cli/tmc-cli/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/tmc-cli/tmc-cli/downloads","issues_url":"https://api.github.com/repos/tmc-cli/tmc-cli/issues{/number}","pulls_url":"https://api.github.com/repos/tmc-cli/tmc-cli/pulls{/number}","milestones_url":"https://api.github.com/repos/tmc-cli/tmc-cli/milestones{/number}","notifications_url":"https://api.github.com/repos/tmc-cli/tmc-cli/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/tmc-cli/tmc-cli/labels{/name}","releases_url":"https://api.github.com/repos/tmc-cli/tmc-cli/releases{/id}","created_at":"2015-05-11T09:51:02Z","updated_at":"2015-06-07T09:49:54Z","pushed_at":"2015-06-22T08:52:34Z","git_url":"git://github.com/tmc-cli/tmc-cli.git","ssh_url":"git@github.com:tmc-cli/tmc-cli.git","clone_url":"https://github.com/tmc-cli/tmc-cli.git","svn_url":"https://github.com/tmc-cli/tmc-cli","homepage":"","size":52971,"stargazers_count":1,"watchers_count":1,"language":"Java","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":3,"forks":0,"open_issues":3,"watchers":1,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/tmc-cli/tmc-cli/pulls/49"},"html":{"href":"https://github.com/tmc-cli/tmc-cli/pull/49"},"issue":{"href":"https://api.github.com/repos/tmc-cli/tmc-cli/issues/49"},"comments":{"href":"https://api.github.com/repos/tmc-cli/tmc-cli/issues/49/comments"},"review_comments":{"href":"https://api.github.com/repos/tmc-cli/tmc-cli/pulls/49/comments"},"review_comment":{"href":"https://api.github.com/repos/tmc-cli/tmc-cli/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/tmc-cli/tmc-cli/pulls/49/commits"},"statuses":{"href":"https://api.github.com/repos/tmc-cli/tmc-cli/statuses/d6ee70b7f802cddfbe1c91a9af1113a1261a5ae1"}}}}