{"action":"created","comment":{"url":"https://api.github.com/repos/sanya1111/KP_Suggestions/pulls/comments/54003184","id":54003184,"diff_hunk":"@@ -0,0 +1,252 @@\n+package ru.kpsug.db;\n+\n+import java.io.BufferedReader;\n+import java.io.FileInputStream;\n+import java.io.IOException;\n+import java.io.InputStreamReader;\n+import java.sql.Connection;\n+import java.sql.DriverManager;\n+import java.sql.ResultSet;\n+import java.sql.SQLException;\n+import java.sql.Statement;\n+import java.util.ArrayList;\n+import java.util.Arrays;\n+import java.util.Map;\n+import java.util.Map.Entry;\n+import java.util.TreeMap;\n+\n+import org.json.simple.JSONArray;\n+import org.json.simple.JSONValue;\n+import org.json.simple.parser.JSONParser;\n+import org.json.simple.parser.ParseException;\n+\n+import ru.kpsug.utils.ConfigParser;\n+\n+public class DBOperator {\n+    private String host = \"127.0.0.1\";","path":"src/ru/kpsug/db/DBOperator.java","position":26,"original_position":26,"commit_id":"a2b6fecb785708552a12316d570007b1ed507cbb","original_commit_id":"a2b6fecb785708552a12316d570007b1ed507cbb","user":{"login":"eabatalov","id":623590,"avatar_url":"https://avatars.githubusercontent.com/u/623590?v=3","gravatar_id":"","url":"https://api.github.com/users/eabatalov","html_url":"https://github.com/eabatalov","followers_url":"https://api.github.com/users/eabatalov/followers","following_url":"https://api.github.com/users/eabatalov/following{/other_user}","gists_url":"https://api.github.com/users/eabatalov/gists{/gist_id}","starred_url":"https://api.github.com/users/eabatalov/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/eabatalov/subscriptions","organizations_url":"https://api.github.com/users/eabatalov/orgs","repos_url":"https://api.github.com/users/eabatalov/repos","events_url":"https://api.github.com/users/eabatalov/events{/privacy}","received_events_url":"https://api.github.com/users/eabatalov/received_events","type":"User","site_admin":false},"body":"This db things are usually kept in config files. Because app usually run in different environments (release/testing at least)","created_at":"2016-02-24T20:44:29Z","updated_at":"2016-02-24T20:44:29Z","html_url":"https://github.com/sanya1111/KP_Suggestions/pull/1#discussion_r54003184","pull_request_url":"https://api.github.com/repos/sanya1111/KP_Suggestions/pulls/1","_links":{"self":{"href":"https://api.github.com/repos/sanya1111/KP_Suggestions/pulls/comments/54003184"},"html":{"href":"https://github.com/sanya1111/KP_Suggestions/pull/1#discussion_r54003184"},"pull_request":{"href":"https://api.github.com/repos/sanya1111/KP_Suggestions/pulls/1"}}},"pull_request":{"url":"https://api.github.com/repos/sanya1111/KP_Suggestions/pulls/1","id":60523186,"html_url":"https://github.com/sanya1111/KP_Suggestions/pull/1","diff_url":"https://github.com/sanya1111/KP_Suggestions/pull/1.diff","patch_url":"https://github.com/sanya1111/KP_Suggestions/pull/1.patch","issue_url":"https://api.github.com/repos/sanya1111/KP_Suggestions/issues/1","number":1,"state":"open","locked":false,"title":"Review 1","user":{"login":"eabatalov","id":623590,"avatar_url":"https://avatars.githubusercontent.com/u/623590?v=3","gravatar_id":"","url":"https://api.github.com/users/eabatalov","html_url":"https://github.com/eabatalov","followers_url":"https://api.github.com/users/eabatalov/followers","following_url":"https://api.github.com/users/eabatalov/following{/other_user}","gists_url":"https://api.github.com/users/eabatalov/gists{/gist_id}","starred_url":"https://api.github.com/users/eabatalov/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/eabatalov/subscriptions","organizations_url":"https://api.github.com/users/eabatalov/orgs","repos_url":"https://api.github.com/users/eabatalov/repos","events_url":"https://api.github.com/users/eabatalov/events{/privacy}","received_events_url":"https://api.github.com/users/eabatalov/received_events","type":"User","site_admin":false},"body":"","created_at":"2016-02-24T15:11:43Z","updated_at":"2016-02-24T20:44:29Z","closed_at":null,"merged_at":null,"merge_commit_sha":"46257023c927ef9ea4f907e90c58bac0810abbaa","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/sanya1111/KP_Suggestions/pulls/1/commits","review_comments_url":"https://api.github.com/repos/sanya1111/KP_Suggestions/pulls/1/comments","review_comment_url":"https://api.github.com/repos/sanya1111/KP_Suggestions/pulls/comments{/number}","comments_url":"https://api.github.com/repos/sanya1111/KP_Suggestions/issues/1/comments","statuses_url":"https://api.github.com/repos/sanya1111/KP_Suggestions/statuses/a2b6fecb785708552a12316d570007b1ed507cbb","head":{"label":"sanya1111:review","ref":"review","sha":"a2b6fecb785708552a12316d570007b1ed507cbb","user":{"login":"sanya1111","id":8517156,"avatar_url":"https://avatars.githubusercontent.com/u/8517156?v=3","gravatar_id":"","url":"https://api.github.com/users/sanya1111","html_url":"https://github.com/sanya1111","followers_url":"https://api.github.com/users/sanya1111/followers","following_url":"https://api.github.com/users/sanya1111/following{/other_user}","gists_url":"https://api.github.com/users/sanya1111/gists{/gist_id}","starred_url":"https://api.github.com/users/sanya1111/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sanya1111/subscriptions","organizations_url":"https://api.github.com/users/sanya1111/orgs","repos_url":"https://api.github.com/users/sanya1111/repos","events_url":"https://api.github.com/users/sanya1111/events{/privacy}","received_events_url":"https://api.github.com/users/sanya1111/received_events","type":"User","site_admin":false},"repo":{"id":44680753,"name":"KP_Suggestions","full_name":"sanya1111/KP_Suggestions","owner":{"login":"sanya1111","id":8517156,"avatar_url":"https://avatars.githubusercontent.com/u/8517156?v=3","gravatar_id":"","url":"https://api.github.com/users/sanya1111","html_url":"https://github.com/sanya1111","followers_url":"https://api.github.com/users/sanya1111/followers","following_url":"https://api.github.com/users/sanya1111/following{/other_user}","gists_url":"https://api.github.com/users/sanya1111/gists{/gist_id}","starred_url":"https://api.github.com/users/sanya1111/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sanya1111/subscriptions","organizations_url":"https://api.github.com/users/sanya1111/orgs","repos_url":"https://api.github.com/users/sanya1111/repos","events_url":"https://api.github.com/users/sanya1111/events{/privacy}","received_events_url":"https://api.github.com/users/sanya1111/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/sanya1111/KP_Suggestions","description":"","fork":false,"url":"https://api.github.com/repos/sanya1111/KP_Suggestions","forks_url":"https://api.github.com/repos/sanya1111/KP_Suggestions/forks","keys_url":"https://api.github.com/repos/sanya1111/KP_Suggestions/keys{/key_id}","collaborators_url":"https://api.github.com/repos/sanya1111/KP_Suggestions/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/sanya1111/KP_Suggestions/teams","hooks_url":"https://api.github.com/repos/sanya1111/KP_Suggestions/hooks","issue_events_url":"https://api.github.com/repos/sanya1111/KP_Suggestions/issues/events{/number}","events_url":"https://api.github.com/repos/sanya1111/KP_Suggestions/events","assignees_url":"https://api.github.com/repos/sanya1111/KP_Suggestions/assignees{/user}","branches_url":"https://api.github.com/repos/sanya1111/KP_Suggestions/branches{/branch}","tags_url":"https://api.github.com/repos/sanya1111/KP_Suggestions/tags","blobs_url":"https://api.github.com/repos/sanya1111/KP_Suggestions/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/sanya1111/KP_Suggestions/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/sanya1111/KP_Suggestions/git/refs{/sha}","trees_url":"https://api.github.com/repos/sanya1111/KP_Suggestions/git/trees{/sha}","statuses_url":"https://api.github.com/repos/sanya1111/KP_Suggestions/statuses/{sha}","languages_url":"https://api.github.com/repos/sanya1111/KP_Suggestions/languages","stargazers_url":"https://api.github.com/repos/sanya1111/KP_Suggestions/stargazers","contributors_url":"https://api.github.com/repos/sanya1111/KP_Suggestions/contributors","subscribers_url":"https://api.github.com/repos/sanya1111/KP_Suggestions/subscribers","subscription_url":"https://api.github.com/repos/sanya1111/KP_Suggestions/subscription","commits_url":"https://api.github.com/repos/sanya1111/KP_Suggestions/commits{/sha}","git_commits_url":"https://api.github.com/repos/sanya1111/KP_Suggestions/git/commits{/sha}","comments_url":"https://api.github.com/repos/sanya1111/KP_Suggestions/comments{/number}","issue_comment_url":"https://api.github.com/repos/sanya1111/KP_Suggestions/issues/comments{/number}","contents_url":"https://api.github.com/repos/sanya1111/KP_Suggestions/contents/{+path}","compare_url":"https://api.github.com/repos/sanya1111/KP_Suggestions/compare/{base}...{head}","merges_url":"https://api.github.com/repos/sanya1111/KP_Suggestions/merges","archive_url":"https://api.github.com/repos/sanya1111/KP_Suggestions/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/sanya1111/KP_Suggestions/downloads","issues_url":"https://api.github.com/repos/sanya1111/KP_Suggestions/issues{/number}","pulls_url":"https://api.github.com/repos/sanya1111/KP_Suggestions/pulls{/number}","milestones_url":"https://api.github.com/repos/sanya1111/KP_Suggestions/milestones{/number}","notifications_url":"https://api.github.com/repos/sanya1111/KP_Suggestions/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/sanya1111/KP_Suggestions/labels{/name}","releases_url":"https://api.github.com/repos/sanya1111/KP_Suggestions/releases{/id}","deployments_url":"https://api.github.com/repos/sanya1111/KP_Suggestions/deployments","created_at":"2015-10-21T14:11:53Z","updated_at":"2015-10-21T14:12:46Z","pushed_at":"2016-02-24T15:11:44Z","git_url":"git://github.com/sanya1111/KP_Suggestions.git","ssh_url":"git@github.com:sanya1111/KP_Suggestions.git","clone_url":"https://github.com/sanya1111/KP_Suggestions.git","svn_url":"https://github.com/sanya1111/KP_Suggestions","homepage":null,"size":5289,"stargazers_count":0,"watchers_count":0,"language":"Java","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":"sanya1111:empty","ref":"empty","sha":"c656916a0278055d498c87c4dd12b36b82bdc347","user":{"login":"sanya1111","id":8517156,"avatar_url":"https://avatars.githubusercontent.com/u/8517156?v=3","gravatar_id":"","url":"https://api.github.com/users/sanya1111","html_url":"https://github.com/sanya1111","followers_url":"https://api.github.com/users/sanya1111/followers","following_url":"https://api.github.com/users/sanya1111/following{/other_user}","gists_url":"https://api.github.com/users/sanya1111/gists{/gist_id}","starred_url":"https://api.github.com/users/sanya1111/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sanya1111/subscriptions","organizations_url":"https://api.github.com/users/sanya1111/orgs","repos_url":"https://api.github.com/users/sanya1111/repos","events_url":"https://api.github.com/users/sanya1111/events{/privacy}","received_events_url":"https://api.github.com/users/sanya1111/received_events","type":"User","site_admin":false},"repo":{"id":44680753,"name":"KP_Suggestions","full_name":"sanya1111/KP_Suggestions","owner":{"login":"sanya1111","id":8517156,"avatar_url":"https://avatars.githubusercontent.com/u/8517156?v=3","gravatar_id":"","url":"https://api.github.com/users/sanya1111","html_url":"https://github.com/sanya1111","followers_url":"https://api.github.com/users/sanya1111/followers","following_url":"https://api.github.com/users/sanya1111/following{/other_user}","gists_url":"https://api.github.com/users/sanya1111/gists{/gist_id}","starred_url":"https://api.github.com/users/sanya1111/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sanya1111/subscriptions","organizations_url":"https://api.github.com/users/sanya1111/orgs","repos_url":"https://api.github.com/users/sanya1111/repos","events_url":"https://api.github.com/users/sanya1111/events{/privacy}","received_events_url":"https://api.github.com/users/sanya1111/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/sanya1111/KP_Suggestions","description":"","fork":false,"url":"https://api.github.com/repos/sanya1111/KP_Suggestions","forks_url":"https://api.github.com/repos/sanya1111/KP_Suggestions/forks","keys_url":"https://api.github.com/repos/sanya1111/KP_Suggestions/keys{/key_id}","collaborators_url":"https://api.github.com/repos/sanya1111/KP_Suggestions/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/sanya1111/KP_Suggestions/teams","hooks_url":"https://api.github.com/repos/sanya1111/KP_Suggestions/hooks","issue_events_url":"https://api.github.com/repos/sanya1111/KP_Suggestions/issues/events{/number}","events_url":"https://api.github.com/repos/sanya1111/KP_Suggestions/events","assignees_url":"https://api.github.com/repos/sanya1111/KP_Suggestions/assignees{/user}","branches_url":"https://api.github.com/repos/sanya1111/KP_Suggestions/branches{/branch}","tags_url":"https://api.github.com/repos/sanya1111/KP_Suggestions/tags","blobs_url":"https://api.github.com/repos/sanya1111/KP_Suggestions/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/sanya1111/KP_Suggestions/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/sanya1111/KP_Suggestions/git/refs{/sha}","trees_url":"https://api.github.com/repos/sanya1111/KP_Suggestions/git/trees{/sha}","statuses_url":"https://api.github.com/repos/sanya1111/KP_Suggestions/statuses/{sha}","languages_url":"https://api.github.com/repos/sanya1111/KP_Suggestions/languages","stargazers_url":"https://api.github.com/repos/sanya1111/KP_Suggestions/stargazers","contributors_url":"https://api.github.com/repos/sanya1111/KP_Suggestions/contributors","subscribers_url":"https://api.github.com/repos/sanya1111/KP_Suggestions/subscribers","subscription_url":"https://api.github.com/repos/sanya1111/KP_Suggestions/subscription","commits_url":"https://api.github.com/repos/sanya1111/KP_Suggestions/commits{/sha}","git_commits_url":"https://api.github.com/repos/sanya1111/KP_Suggestions/git/commits{/sha}","comments_url":"https://api.github.com/repos/sanya1111/KP_Suggestions/comments{/number}","issue_comment_url":"https://api.github.com/repos/sanya1111/KP_Suggestions/issues/comments{/number}","contents_url":"https://api.github.com/repos/sanya1111/KP_Suggestions/contents/{+path}","compare_url":"https://api.github.com/repos/sanya1111/KP_Suggestions/compare/{base}...{head}","merges_url":"https://api.github.com/repos/sanya1111/KP_Suggestions/merges","archive_url":"https://api.github.com/repos/sanya1111/KP_Suggestions/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/sanya1111/KP_Suggestions/downloads","issues_url":"https://api.github.com/repos/sanya1111/KP_Suggestions/issues{/number}","pulls_url":"https://api.github.com/repos/sanya1111/KP_Suggestions/pulls{/number}","milestones_url":"https://api.github.com/repos/sanya1111/KP_Suggestions/milestones{/number}","notifications_url":"https://api.github.com/repos/sanya1111/KP_Suggestions/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/sanya1111/KP_Suggestions/labels{/name}","releases_url":"https://api.github.com/repos/sanya1111/KP_Suggestions/releases{/id}","deployments_url":"https://api.github.com/repos/sanya1111/KP_Suggestions/deployments","created_at":"2015-10-21T14:11:53Z","updated_at":"2015-10-21T14:12:46Z","pushed_at":"2016-02-24T15:11:44Z","git_url":"git://github.com/sanya1111/KP_Suggestions.git","ssh_url":"git@github.com:sanya1111/KP_Suggestions.git","clone_url":"https://github.com/sanya1111/KP_Suggestions.git","svn_url":"https://github.com/sanya1111/KP_Suggestions","homepage":null,"size":5289,"stargazers_count":0,"watchers_count":0,"language":"Java","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/sanya1111/KP_Suggestions/pulls/1"},"html":{"href":"https://github.com/sanya1111/KP_Suggestions/pull/1"},"issue":{"href":"https://api.github.com/repos/sanya1111/KP_Suggestions/issues/1"},"comments":{"href":"https://api.github.com/repos/sanya1111/KP_Suggestions/issues/1/comments"},"review_comments":{"href":"https://api.github.com/repos/sanya1111/KP_Suggestions/pulls/1/comments"},"review_comment":{"href":"https://api.github.com/repos/sanya1111/KP_Suggestions/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/sanya1111/KP_Suggestions/pulls/1/commits"},"statuses":{"href":"https://api.github.com/repos/sanya1111/KP_Suggestions/statuses/a2b6fecb785708552a12316d570007b1ed507cbb"}}}}