GitHub PullRequestReviewCommentEvent at 2014-11-01 12:09:49
Repository: fizteh-java-2014
Actor: volodden
Payload: {"action":"created","comment":{"url":"https://api.github.com/repos/dkomanov/fizteh-java-2014/pulls/comments/19703859","id":19703859,"diff_hunk":"@@ -0,0 +1,117 @@\n+package ru.fizteh.fivt.students.maxim_gotovchits.multi_file_hash_map;\n+\n+import java.util.Map;\n+\n+public class BatchMode extends Command {\n+    void batchModeFunction(String commands, Map<String, String> storage, String[] cmdBuffer) throws Exception {\n+        String tableName = new String();\n+        commands = commands.replaceAll(\"\\\\s+\", \" \");\n+        String [] commandsSeq = commands.split(\";\");\n+        for (int ind = 0; ind < commandsSeq.length; ++ind) {\n+            commandsSeq[ind] = commandsSeq[ind].replaceAll(\"\\\\W\", \" \");\n+            commandsSeq[ind] = commandsSeq[ind].replaceAll(\"\\\\s+\", \" \");\n+        }\n+        for (Integer bufInd = 0; bufInd < commandsSeq.length; ++bufInd) {\n+            if (commandsSeq[bufInd].equals(\"\\\\s+\")) {\n+                Integer look = 0;\n+                for (int tmpInd = 0; tmpInd < commandsSeq.length; ++tmpInd) {\n+                    if (!commandsSeq[tmpInd].equals(\"s\\\\+\")) {\n+                        commandsSeq[look] = commandsSeq[tmpInd];\n+                    }\n+                    ++look;\n+                }\n+                break;\n+            }\n+        }\n+        Integer parseInd = -1;\n+        while (parseInd < commandsSeq.length) {\n+            ++parseInd;\n+            if (parseInd >= commandsSeq.length) {\n+                break;\n+            }\n+            cmdBuffer = commandsSeq[parseInd].split(\" \");\n+            if (cmdBuffer.length == 0) {\n+                continue;\n+            }\n+            for (Integer bufInd = 0; bufInd < cmdBuffer.length; ++bufInd) {\n+                cmdBuffer[bufInd] = cmdBuffer[bufInd].replaceAll(\"\\\\s+\", \"\");\n+            }\n+            if (cmdBuffer[0].equals(\"\") && cmdBuffer.length > 1) {\n+                String temp = new String();\n+                for (Integer k = 1; k < cmdBuffer.length; ++k) {\n+                    temp += cmdBuffer[k];\n+                    if (k != cmdBuffer.length - 1) {\n+                        temp += \" \";\n+                    }\n+                }\n+                cmdBuffer = temp.split(\" \");\n+            }\n+            if (isCommand(cmdBuffer[0])) {\n+                if (cmdBuffer[0].equals(\"put\")) {\n+                    if (flag) {\n+                        new Put().putFunction(storage, cmdBuffer);\n+                    } else {\n+                        System.out.println(\"no table\");\n+                    }\n+                }\n+                if (cmdBuffer[0].equals(\"get\")) {\n+                    if (flag) {\n+                        new Get().getFunction(storage, cmdBuffer, tableName);","path":"src/ru/fizteh/fivt/students/MaximGotovchits/MultiFileHashMap/BatchMode.java","position":59,"original_position":59,"commit_id":"09aadda794e4e7fb2254a73355918e02a2534c59","original_commit_id":"09aadda794e4e7fb2254a73355918e02a2534c59","user":{"login":"volodden","id":8759062,"avatar_url":"https://avatars.githubusercontent.com/u/8759062?v=2","gravatar_id":"","url":"https://api.github.com/users/volodden","html_url":"https://github.com/volodden","followers_url":"https://api.github.com/users/volodden/followers","following_url":"https://api.github.com/users/volodden/following{/other_user}","gists_url":"https://api.github.com/users/volodden/gists{/gist_id}","starred_url":"https://api.github.com/users/volodden/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/volodden/subscriptions","organizations_url":"https://api.github.com/users/volodden/orgs","repos_url":"https://api.github.com/users/volodden/repos","events_url":"https://api.github.com/users/volodden/events{/privacy}","received_events_url":"https://api.github.com/users/volodden/received_events","type":"User","site_admin":false},"body":"Немного не понятно, почему в некоторые методы ты \"отправляешь\" tableName, а в другие - нет, хотя принцип работы у них аналогичный (например: put - get).","created_at":"2014-11-01T12:09:49Z","updated_at":"2014-11-01T12:09:49Z","html_url":"https://github.com/dkomanov/fizteh-java-2014/pull/281#discussion_r19703859","pull_request_url":"https://api.github.com/repos/dkomanov/fizteh-java-2014/pulls/281","_links":{"self":{"href":"https://api.github.com/repos/dkomanov/fizteh-java-2014/pulls/comments/19703859"},"html":{"href":"https://github.com/dkomanov/fizteh-java-2014/pull/281#discussion_r19703859"},"pull_request":{"href":"https://api.github.com/repos/dkomanov/fizteh-java-2014/pulls/281"}}},"pull_request":{"url":"https://api.github.com/repos/dkomanov/fizteh-java-2014/pulls/281","id":23321934,"html_url":"https://github.com/dkomanov/fizteh-java-2014/pull/281","diff_url":"https://github.com/dkomanov/fizteh-java-2014/pull/281.diff","patch_url":"https://github.com/dkomanov/fizteh-java-2014/pull/281.patch","issue_url":"https://api.github.com/repos/dkomanov/fizteh-java-2014/issues/281","number":281,"state":"open","locked":false,"title":"Готовчиц Максим, 396, MultiFileHashMap","user":{"login":"MaximGotovchits","id":8759433,"avatar_url":"https://avatars.githubusercontent.com/u/8759433?v=2","gravatar_id":"","url":"https://api.github.com/users/MaximGotovchits","html_url":"https://github.com/MaximGotovchits","followers_url":"https://api.github.com/users/MaximGotovchits/followers","following_url":"https://api.github.com/users/MaximGotovchits/following{/other_user}","gists_url":"https://api.github.com/users/MaximGotovchits/gists{/gist_id}","starred_url":"https://api.github.com/users/MaximGotovchits/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/MaximGotovchits/subscriptions","organizations_url":"https://api.github.com/users/MaximGotovchits/orgs","repos_url":"https://api.github.com/users/MaximGotovchits/repos","events_url":"https://api.github.com/users/MaximGotovchits/events{/privacy}","received_events_url":"https://api.github.com/users/MaximGotovchits/received_events","type":"User","site_admin":false},"body":"","created_at":"2014-10-24T20:19:18Z","updated_at":"2014-11-01T12:09:49Z","closed_at":null,"merged_at":null,"merge_commit_sha":"15af9ed058b2ea7a8e99d593a55d2298757d76fc","assignee":{"login":"vpavlenko","id":1491908,"avatar_url":"https://avatars.githubusercontent.com/u/1491908?v=2","gravatar_id":"","url":"https://api.github.com/users/vpavlenko","html_url":"https://github.com/vpavlenko","followers_url":"https://api.github.com/users/vpavlenko/followers","following_url":"https://api.github.com/users/vpavlenko/following{/other_user}","gists_url":"https://api.github.com/users/vpavlenko/gists{/gist_id}","starred_url":"https://api.github.com/users/vpavlenko/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vpavlenko/subscriptions","organizations_url":"https://api.github.com/users/vpavlenko/orgs","repos_url":"https://api.github.com/users/vpavlenko/repos","events_url":"https://api.github.com/users/vpavlenko/events{/privacy}","received_events_url":"https://api.github.com/users/vpavlenko/received_events","type":"User","site_admin":false},"milestone":null,"commits_url":"https://api.github.com/repos/dkomanov/fizteh-java-2014/pulls/281/commits","review_comments_url":"https://api.github.com/repos/dkomanov/fizteh-java-2014/pulls/281/comments","review_comment_url":"https://api.github.com/repos/dkomanov/fizteh-java-2014/pulls/comments/{number}","comments_url":"https://api.github.com/repos/dkomanov/fizteh-java-2014/issues/281/comments","statuses_url":"https://api.github.com/repos/dkomanov/fizteh-java-2014/statuses/09aadda794e4e7fb2254a73355918e02a2534c59","head":{"label":"MaximGotovchits:multifilemap","ref":"multifilemap","sha":"09aadda794e4e7fb2254a73355918e02a2534c59","user":{"login":"MaximGotovchits","id":8759433,"avatar_url":"https://avatars.githubusercontent.com/u/8759433?v=2","gravatar_id":"","url":"https://api.github.com/users/MaximGotovchits","html_url":"https://github.com/MaximGotovchits","followers_url":"https://api.github.com/users/MaximGotovchits/followers","following_url":"https://api.github.com/users/MaximGotovchits/following{/other_user}","gists_url":"https://api.github.com/users/MaximGotovchits/gists{/gist_id}","starred_url":"https://api.github.com/users/MaximGotovchits/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/MaximGotovchits/subscriptions","organizations_url":"https://api.github.com/users/MaximGotovchits/orgs","repos_url":"https://api.github.com/users/MaximGotovchits/repos","events_url":"https://api.github.com/users/MaximGotovchits/events{/privacy}","received_events_url":"https://api.github.com/users/MaximGotovchits/received_events","type":"User","site_admin":false},"repo":{"id":24696170,"name":"fizteh-java-2014","full_name":"MaximGotovchits/fizteh-java-2014","owner":{"login":"MaximGotovchits","id":8759433,"avatar_url":"https://avatars.githubusercontent.com/u/8759433?v=2","gravatar_id":"","url":"https://api.github.com/users/MaximGotovchits","html_url":"https://github.com/MaximGotovchits","followers_url":"https://api.github.com/users/MaximGotovchits/followers","following_url":"https://api.github.com/users/MaximGotovchits/following{/other_user}","gists_url":"https://api.github.com/users/MaximGotovchits/gists{/gist_id}","starred_url":"https://api.github.com/users/MaximGotovchits/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/MaximGotovchits/subscriptions","organizations_url":"https://api.github.com/users/MaximGotovchits/orgs","repos_url":"https://api.github.com/users/MaximGotovchits/repos","events_url":"https://api.github.com/users/MaximGotovchits/events{/privacy}","received_events_url":"https://api.github.com/users/MaximGotovchits/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/MaximGotovchits/fizteh-java-2014","description":"","fork":true,"url":"https://api.github.com/repos/MaximGotovchits/fizteh-java-2014","forks_url":"https://api.github.com/repos/MaximGotovchits/fizteh-java-2014/forks","keys_url":"https://api.github.com/repos/MaximGotovchits/fizteh-java-2014/keys{/key_id}","collaborators_url":"https://api.github.com/repos/MaximGotovchits/fizteh-java-2014/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/MaximGotovchits/fizteh-java-2014/teams","hooks_url":"https://api.github.com/repos/MaximGotovchits/fizteh-java-2014/hooks","issue_events_url":"https://api.github.com/repos/MaximGotovchits/fizteh-java-2014/issues/events{/number}","events_url":"https://api.github.com/repos/MaximGotovchits/fizteh-java-2014/events","assignees_url":"https://api.github.com/repos/MaximGotovchits/fizteh-java-2014/assignees{/user}","branches_url":"https://api.github.com/repos/MaximGotovchits/fizteh-java-2014/branches{/branch}","tags_url":"https://api.github.com/repos/MaximGotovchits/fizteh-java-2014/tags","blobs_url":"https://api.github.com/repos/MaximGotovchits/fizteh-java-2014/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/MaximGotovchits/fizteh-java-2014/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/MaximGotovchits/fizteh-java-2014/git/refs{/sha}","trees_url":"https://api.github.com/repos/MaximGotovchits/fizteh-java-2014/git/trees{/sha}","statuses_url":"https://api.github.com/repos/MaximGotovchits/fizteh-java-2014/statuses/{sha}","languages_url":"https://api.github.com/repos/MaximGotovchits/fizteh-java-2014/languages","stargazers_url":"https://api.github.com/repos/MaximGotovchits/fizteh-java-2014/stargazers","contributors_url":"https://api.github.com/repos/MaximGotovchits/fizteh-java-2014/contributors","subscribers_url":"https://api.github.com/repos/MaximGotovchits/fizteh-java-2014/subscribers","subscription_url":"https://api.github.com/repos/MaximGotovchits/fizteh-java-2014/subscription","commits_url":"https://api.github.com/repos/MaximGotovchits/fizteh-java-2014/commits{/sha}","git_commits_url":"https://api.github.com/repos/MaximGotovchits/fizteh-java-2014/git/commits{/sha}","comments_url":"https://api.github.com/repos/MaximGotovchits/fizteh-java-2014/comments{/number}","issue_comment_url":"https://api.github.com/repos/MaximGotovchits/fizteh-java-2014/issues/comments/{number}","contents_url":"https://api.github.com/repos/MaximGotovchits/fizteh-java-2014/contents/{+path}","compare_url":"https://api.github.com/repos/MaximGotovchits/fizteh-java-2014/compare/{base}...{head}","merges_url":"https://api.github.com/repos/MaximGotovchits/fizteh-java-2014/merges","archive_url":"https://api.github.com/repos/MaximGotovchits/fizteh-java-2014/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/MaximGotovchits/fizteh-java-2014/downloads","issues_url":"https://api.github.com/repos/MaximGotovchits/fizteh-java-2014/issues{/number}","pulls_url":"https://api.github.com/repos/MaximGotovchits/fizteh-java-2014/pulls{/number}","milestones_url":"https://api.github.com/repos/MaximGotovchits/fizteh-java-2014/milestones{/number}","notifications_url":"https://api.github.com/repos/MaximGotovchits/fizteh-java-2014/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/MaximGotovchits/fizteh-java-2014/labels{/name}","releases_url":"https://api.github.com/repos/MaximGotovchits/fizteh-java-2014/releases{/id}","created_at":"2014-10-01T21:29:19Z","updated_at":"2014-10-07T11:00:25Z","pushed_at":"2014-10-28T17:07:48Z","git_url":"git://github.com/MaximGotovchits/fizteh-java-2014.git","ssh_url":"git@github.com:MaximGotovchits/fizteh-java-2014.git","clone_url":"https://github.com/MaximGotovchits/fizteh-java-2014.git","svn_url":"https://github.com/MaximGotovchits/fizteh-java-2014","homepage":null,"size":2238,"stargazers_count":0,"watchers_count":0,"language":"Java","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"dkomanov:master","ref":"master","sha":"8090ce0a1f8720575c93a4792f5d8baa9c4d3dd0","user":{"login":"dkomanov","id":1158662,"avatar_url":"https://avatars.githubusercontent.com/u/1158662?v=2","gravatar_id":"","url":"https://api.github.com/users/dkomanov","html_url":"https://github.com/dkomanov","followers_url":"https://api.github.com/users/dkomanov/followers","following_url":"https://api.github.com/users/dkomanov/following{/other_user}","gists_url":"https://api.github.com/users/dkomanov/gists{/gist_id}","starred_url":"https://api.github.com/users/dkomanov/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dkomanov/subscriptions","organizations_url":"https://api.github.com/users/dkomanov/orgs","repos_url":"https://api.github.com/users/dkomanov/repos","events_url":"https://api.github.com/users/dkomanov/events{/privacy}","received_events_url":"https://api.github.com/users/dkomanov/received_events","type":"User","site_admin":false},"repo":{"id":23866876,"name":"fizteh-java-2014","full_name":"dkomanov/fizteh-java-2014","owner":{"login":"dkomanov","id":1158662,"avatar_url":"https://avatars.githubusercontent.com/u/1158662?v=2","gravatar_id":"","url":"https://api.github.com/users/dkomanov","html_url":"https://github.com/dkomanov","followers_url":"https://api.github.com/users/dkomanov/followers","following_url":"https://api.github.com/users/dkomanov/following{/other_user}","gists_url":"https://api.github.com/users/dkomanov/gists{/gist_id}","starred_url":"https://api.github.com/users/dkomanov/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dkomanov/subscriptions","organizations_url":"https://api.github.com/users/dkomanov/orgs","repos_url":"https://api.github.com/users/dkomanov/repos","events_url":"https://api.github.com/users/dkomanov/events{/privacy}","received_events_url":"https://api.github.com/users/dkomanov/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/dkomanov/fizteh-java-2014","description":"","fork":false,"url":"https://api.github.com/repos/dkomanov/fizteh-java-2014","forks_url":"https://api.github.com/repos/dkomanov/fizteh-java-2014/forks","keys_url":"https://api.github.com/repos/dkomanov/fizteh-java-2014/keys{/key_id}","collaborators_url":"https://api.github.com/repos/dkomanov/fizteh-java-2014/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/dkomanov/fizteh-java-2014/teams","hooks_url":"https://api.github.com/repos/dkomanov/fizteh-java-2014/hooks","issue_events_url":"https://api.github.com/repos/dkomanov/fizteh-java-2014/issues/events{/number}","events_url":"https://api.github.com/repos/dkomanov/fizteh-java-2014/events","assignees_url":"https://api.github.com/repos/dkomanov/fizteh-java-2014/assignees{/user}","branches_url":"https://api.github.com/repos/dkomanov/fizteh-java-2014/branches{/branch}","tags_url":"https://api.github.com/repos/dkomanov/fizteh-java-2014/tags","blobs_url":"https://api.github.com/repos/dkomanov/fizteh-java-2014/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/dkomanov/fizteh-java-2014/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/dkomanov/fizteh-java-2014/git/refs{/sha}","trees_url":"https://api.github.com/repos/dkomanov/fizteh-java-2014/git/trees{/sha}","statuses_url":"https://api.github.com/repos/dkomanov/fizteh-java-2014/statuses/{sha}","languages_url":"https://api.github.com/repos/dkomanov/fizteh-java-2014/languages","stargazers_url":"https://api.github.com/repos/dkomanov/fizteh-java-2014/stargazers","contributors_url":"https://api.github.com/repos/dkomanov/fizteh-java-2014/contributors","subscribers_url":"https://api.github.com/repos/dkomanov/fizteh-java-2014/subscribers","subscription_url":"https://api.github.com/repos/dkomanov/fizteh-java-2014/subscription","commits_url":"https://api.github.com/repos/dkomanov/fizteh-java-2014/commits{/sha}","git_commits_url":"https://api.github.com/repos/dkomanov/fizteh-java-2014/git/commits{/sha}","comments_url":"https://api.github.com/repos/dkomanov/fizteh-java-2014/comments{/number}","issue_comment_url":"https://api.github.com/repos/dkomanov/fizteh-java-2014/issues/comments/{number}","contents_url":"https://api.github.com/repos/dkomanov/fizteh-java-2014/contents/{+path}","compare_url":"https://api.github.com/repos/dkomanov/fizteh-java-2014/compare/{base}...{head}","merges_url":"https://api.github.com/repos/dkomanov/fizteh-java-2014/merges","archive_url":"https://api.github.com/repos/dkomanov/fizteh-java-2014/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/dkomanov/fizteh-java-2014/downloads","issues_url":"https://api.github.com/repos/dkomanov/fizteh-java-2014/issues{/number}","pulls_url":"https://api.github.com/repos/dkomanov/fizteh-java-2014/pulls{/number}","milestones_url":"https://api.github.com/repos/dkomanov/fizteh-java-2014/milestones{/number}","notifications_url":"https://api.github.com/repos/dkomanov/fizteh-java-2014/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/dkomanov/fizteh-java-2014/labels{/name}","releases_url":"https://api.github.com/repos/dkomanov/fizteh-java-2014/releases{/id}","created_at":"2014-09-10T08:32:49Z","updated_at":"2014-10-23T21:36:51Z","pushed_at":"2014-10-27T21:01:47Z","git_url":"git://github.com/dkomanov/fizteh-java-2014.git","ssh_url":"git@github.com:dkomanov/fizteh-java-2014.git","clone_url":"https://github.com/dkomanov/fizteh-java-2014.git","svn_url":"https://github.com/dkomanov/fizteh-java-2014","homepage":null,"size":16233,"stargazers_count":5,"watchers_count":5,"language":"Java","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":85,"mirror_url":null,"open_issues_count":87,"forks":85,"open_issues":87,"watchers":5,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/dkomanov/fizteh-java-2014/pulls/281"},"html":{"href":"https://github.com/dkomanov/fizteh-java-2014/pull/281"},"issue":{"href":"https://api.github.com/repos/dkomanov/fizteh-java-2014/issues/281"},"comments":{"href":"https://api.github.com/repos/dkomanov/fizteh-java-2014/issues/281/comments"},"review_comments":{"href":"https://api.github.com/repos/dkomanov/fizteh-java-2014/pulls/281/comments"},"review_comment":{"href":"https://api.github.com/repos/dkomanov/fizteh-java-2014/pulls/comments/{number}"},"commits":{"href":"https://api.github.com/repos/dkomanov/fizteh-java-2014/pulls/281/commits"},"statuses":{"href":"https://api.github.com/repos/dkomanov/fizteh-java-2014/statuses/09aadda794e4e7fb2254a73355918e02a2534c59"}}}}