{"action":"created","comment":{"url":"https://api.github.com/repos/cluePrints/code-review/pulls/comments/32318115","id":32318115,"diff_hunk":"@@ -0,0 +1,39 @@\n+package ua.goit.alg;\n+\n+public class FindDistance {\n+\n+  public static void main (String[] args) {\n+\t\n+\tint[] input = {2,4,3,3,5,3,0,8};\n+\tSystem.out.println(minDistance(input));\n+  }\n+\n+  public static int minDistance(int[] input) {\n+\n+\tint min1 = input[0];\n+\tint minIndex1 = 0;\n+\tint min2 = input[0];\n+\tint minIndex2 = 0;\n+\n+\tfor (int i = 1; i < input.length; i++) {\n+\t  if (min1 > input[i]) {\n+\t\tmin2 = min1;\n+\t\tminIndex2 = minIndex1;\n+\t\tmin1 = input[i];\n+\t\tminIndex1 = i;\n+\t  } \n+\t}\n+\tif (min2 == min1) {\n+\t  min2 = input[1];\n+\t  for (int j = 1; j < input.length; j++) {\n+\t\tif (min2 > input[j]) {\n+\t\tmin2 = input[j];","path":"FindDistance/src/ua/goit/alg/FindDistance.java","position":30,"original_position":30,"commit_id":"ee776c8f265f1147456dadfb02ca528bf1258f4c","original_commit_id":"ee776c8f265f1147456dadfb02ca528bf1258f4c","user":{"login":"cluePrints","id":432728,"avatar_url":"https://avatars.githubusercontent.com/u/432728?v=3","gravatar_id":"","url":"https://api.github.com/users/cluePrints","html_url":"https://github.com/cluePrints","followers_url":"https://api.github.com/users/cluePrints/followers","following_url":"https://api.github.com/users/cluePrints/following{/other_user}","gists_url":"https://api.github.com/users/cluePrints/gists{/gist_id}","starred_url":"https://api.github.com/users/cluePrints/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cluePrints/subscriptions","organizations_url":"https://api.github.com/users/cluePrints/orgs","repos_url":"https://api.github.com/users/cluePrints/repos","events_url":"https://api.github.com/users/cluePrints/events{/privacy}","received_events_url":"https://api.github.com/users/cluePrints/received_events","type":"User","site_admin":false},"body":"indentation is broken","created_at":"2015-06-12T14:02:50Z","updated_at":"2015-06-12T14:02:50Z","html_url":"https://github.com/cluePrints/code-review/pull/5#discussion_r32318115","pull_request_url":"https://api.github.com/repos/cluePrints/code-review/pulls/5","_links":{"self":{"href":"https://api.github.com/repos/cluePrints/code-review/pulls/comments/32318115"},"html":{"href":"https://github.com/cluePrints/code-review/pull/5#discussion_r32318115"},"pull_request":{"href":"https://api.github.com/repos/cluePrints/code-review/pulls/5"}}},"pull_request":{"url":"https://api.github.com/repos/cluePrints/code-review/pulls/5","id":35079819,"html_url":"https://github.com/cluePrints/code-review/pull/5","diff_url":"https://github.com/cluePrints/code-review/pull/5.diff","patch_url":"https://github.com/cluePrints/code-review/pull/5.patch","issue_url":"https://api.github.com/repos/cluePrints/code-review/issues/5","number":5,"state":"open","locked":false,"title":"HomeWork","user":{"login":"olenafalieieva","id":11872540,"avatar_url":"https://avatars.githubusercontent.com/u/11872540?v=3","gravatar_id":"","url":"https://api.github.com/users/olenafalieieva","html_url":"https://github.com/olenafalieieva","followers_url":"https://api.github.com/users/olenafalieieva/followers","following_url":"https://api.github.com/users/olenafalieieva/following{/other_user}","gists_url":"https://api.github.com/users/olenafalieieva/gists{/gist_id}","starred_url":"https://api.github.com/users/olenafalieieva/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/olenafalieieva/subscriptions","organizations_url":"https://api.github.com/users/olenafalieieva/orgs","repos_url":"https://api.github.com/users/olenafalieieva/repos","events_url":"https://api.github.com/users/olenafalieieva/events{/privacy}","received_events_url":"https://api.github.com/users/olenafalieieva/received_events","type":"User","site_admin":false},"body":"","created_at":"2015-05-10T09:10:50Z","updated_at":"2015-06-12T14:02:50Z","closed_at":null,"merged_at":null,"merge_commit_sha":"93b7c5c3557297398fc0d85d61b12382c52981e4","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/cluePrints/code-review/pulls/5/commits","review_comments_url":"https://api.github.com/repos/cluePrints/code-review/pulls/5/comments","review_comment_url":"https://api.github.com/repos/cluePrints/code-review/pulls/comments{/number}","comments_url":"https://api.github.com/repos/cluePrints/code-review/issues/5/comments","statuses_url":"https://api.github.com/repos/cluePrints/code-review/statuses/ee776c8f265f1147456dadfb02ca528bf1258f4c","head":{"label":"olenafalieieva:master","ref":"master","sha":"ee776c8f265f1147456dadfb02ca528bf1258f4c","user":{"login":"olenafalieieva","id":11872540,"avatar_url":"https://avatars.githubusercontent.com/u/11872540?v=3","gravatar_id":"","url":"https://api.github.com/users/olenafalieieva","html_url":"https://github.com/olenafalieieva","followers_url":"https://api.github.com/users/olenafalieieva/followers","following_url":"https://api.github.com/users/olenafalieieva/following{/other_user}","gists_url":"https://api.github.com/users/olenafalieieva/gists{/gist_id}","starred_url":"https://api.github.com/users/olenafalieieva/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/olenafalieieva/subscriptions","organizations_url":"https://api.github.com/users/olenafalieieva/orgs","repos_url":"https://api.github.com/users/olenafalieieva/repos","events_url":"https://api.github.com/users/olenafalieieva/events{/privacy}","received_events_url":"https://api.github.com/users/olenafalieieva/received_events","type":"User","site_admin":false},"repo":{"id":33889943,"name":"code-review","full_name":"olenafalieieva/code-review","owner":{"login":"olenafalieieva","id":11872540,"avatar_url":"https://avatars.githubusercontent.com/u/11872540?v=3","gravatar_id":"","url":"https://api.github.com/users/olenafalieieva","html_url":"https://github.com/olenafalieieva","followers_url":"https://api.github.com/users/olenafalieieva/followers","following_url":"https://api.github.com/users/olenafalieieva/following{/other_user}","gists_url":"https://api.github.com/users/olenafalieieva/gists{/gist_id}","starred_url":"https://api.github.com/users/olenafalieieva/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/olenafalieieva/subscriptions","organizations_url":"https://api.github.com/users/olenafalieieva/orgs","repos_url":"https://api.github.com/users/olenafalieieva/repos","events_url":"https://api.github.com/users/olenafalieieva/events{/privacy}","received_events_url":"https://api.github.com/users/olenafalieieva/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/olenafalieieva/code-review","description":"Submit a PR against this repo to get me to comment your code","fork":true,"url":"https://api.github.com/repos/olenafalieieva/code-review","forks_url":"https://api.github.com/repos/olenafalieieva/code-review/forks","keys_url":"https://api.github.com/repos/olenafalieieva/code-review/keys{/key_id}","collaborators_url":"https://api.github.com/repos/olenafalieieva/code-review/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/olenafalieieva/code-review/teams","hooks_url":"https://api.github.com/repos/olenafalieieva/code-review/hooks","issue_events_url":"https://api.github.com/repos/olenafalieieva/code-review/issues/events{/number}","events_url":"https://api.github.com/repos/olenafalieieva/code-review/events","assignees_url":"https://api.github.com/repos/olenafalieieva/code-review/assignees{/user}","branches_url":"https://api.github.com/repos/olenafalieieva/code-review/branches{/branch}","tags_url":"https://api.github.com/repos/olenafalieieva/code-review/tags","blobs_url":"https://api.github.com/repos/olenafalieieva/code-review/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/olenafalieieva/code-review/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/olenafalieieva/code-review/git/refs{/sha}","trees_url":"https://api.github.com/repos/olenafalieieva/code-review/git/trees{/sha}","statuses_url":"https://api.github.com/repos/olenafalieieva/code-review/statuses/{sha}","languages_url":"https://api.github.com/repos/olenafalieieva/code-review/languages","stargazers_url":"https://api.github.com/repos/olenafalieieva/code-review/stargazers","contributors_url":"https://api.github.com/repos/olenafalieieva/code-review/contributors","subscribers_url":"https://api.github.com/repos/olenafalieieva/code-review/subscribers","subscription_url":"https://api.github.com/repos/olenafalieieva/code-review/subscription","commits_url":"https://api.github.com/repos/olenafalieieva/code-review/commits{/sha}","git_commits_url":"https://api.github.com/repos/olenafalieieva/code-review/git/commits{/sha}","comments_url":"https://api.github.com/repos/olenafalieieva/code-review/comments{/number}","issue_comment_url":"https://api.github.com/repos/olenafalieieva/code-review/issues/comments{/number}","contents_url":"https://api.github.com/repos/olenafalieieva/code-review/contents/{+path}","compare_url":"https://api.github.com/repos/olenafalieieva/code-review/compare/{base}...{head}","merges_url":"https://api.github.com/repos/olenafalieieva/code-review/merges","archive_url":"https://api.github.com/repos/olenafalieieva/code-review/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/olenafalieieva/code-review/downloads","issues_url":"https://api.github.com/repos/olenafalieieva/code-review/issues{/number}","pulls_url":"https://api.github.com/repos/olenafalieieva/code-review/pulls{/number}","milestones_url":"https://api.github.com/repos/olenafalieieva/code-review/milestones{/number}","notifications_url":"https://api.github.com/repos/olenafalieieva/code-review/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/olenafalieieva/code-review/labels{/name}","releases_url":"https://api.github.com/repos/olenafalieieva/code-review/releases{/id}","created_at":"2015-04-13T19:46:18Z","updated_at":"2015-05-05T12:55:48Z","pushed_at":"2015-06-11T11:29:53Z","git_url":"git://github.com/olenafalieieva/code-review.git","ssh_url":"git@github.com:olenafalieieva/code-review.git","clone_url":"https://github.com/olenafalieieva/code-review.git","svn_url":"https://github.com/olenafalieieva/code-review","homepage":null,"size":143,"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":"cluePrints:master","ref":"master","sha":"5bc66eadf172fed6825e5c1faf87ca61f5818ca5","user":{"login":"cluePrints","id":432728,"avatar_url":"https://avatars.githubusercontent.com/u/432728?v=3","gravatar_id":"","url":"https://api.github.com/users/cluePrints","html_url":"https://github.com/cluePrints","followers_url":"https://api.github.com/users/cluePrints/followers","following_url":"https://api.github.com/users/cluePrints/following{/other_user}","gists_url":"https://api.github.com/users/cluePrints/gists{/gist_id}","starred_url":"https://api.github.com/users/cluePrints/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cluePrints/subscriptions","organizations_url":"https://api.github.com/users/cluePrints/orgs","repos_url":"https://api.github.com/users/cluePrints/repos","events_url":"https://api.github.com/users/cluePrints/events{/privacy}","received_events_url":"https://api.github.com/users/cluePrints/received_events","type":"User","site_admin":false},"repo":{"id":22610972,"name":"code-review","full_name":"cluePrints/code-review","owner":{"login":"cluePrints","id":432728,"avatar_url":"https://avatars.githubusercontent.com/u/432728?v=3","gravatar_id":"","url":"https://api.github.com/users/cluePrints","html_url":"https://github.com/cluePrints","followers_url":"https://api.github.com/users/cluePrints/followers","following_url":"https://api.github.com/users/cluePrints/following{/other_user}","gists_url":"https://api.github.com/users/cluePrints/gists{/gist_id}","starred_url":"https://api.github.com/users/cluePrints/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cluePrints/subscriptions","organizations_url":"https://api.github.com/users/cluePrints/orgs","repos_url":"https://api.github.com/users/cluePrints/repos","events_url":"https://api.github.com/users/cluePrints/events{/privacy}","received_events_url":"https://api.github.com/users/cluePrints/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/cluePrints/code-review","description":"Submit a PR against this repo to get me to comment your code","fork":false,"url":"https://api.github.com/repos/cluePrints/code-review","forks_url":"https://api.github.com/repos/cluePrints/code-review/forks","keys_url":"https://api.github.com/repos/cluePrints/code-review/keys{/key_id}","collaborators_url":"https://api.github.com/repos/cluePrints/code-review/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/cluePrints/code-review/teams","hooks_url":"https://api.github.com/repos/cluePrints/code-review/hooks","issue_events_url":"https://api.github.com/repos/cluePrints/code-review/issues/events{/number}","events_url":"https://api.github.com/repos/cluePrints/code-review/events","assignees_url":"https://api.github.com/repos/cluePrints/code-review/assignees{/user}","branches_url":"https://api.github.com/repos/cluePrints/code-review/branches{/branch}","tags_url":"https://api.github.com/repos/cluePrints/code-review/tags","blobs_url":"https://api.github.com/repos/cluePrints/code-review/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/cluePrints/code-review/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/cluePrints/code-review/git/refs{/sha}","trees_url":"https://api.github.com/repos/cluePrints/code-review/git/trees{/sha}","statuses_url":"https://api.github.com/repos/cluePrints/code-review/statuses/{sha}","languages_url":"https://api.github.com/repos/cluePrints/code-review/languages","stargazers_url":"https://api.github.com/repos/cluePrints/code-review/stargazers","contributors_url":"https://api.github.com/repos/cluePrints/code-review/contributors","subscribers_url":"https://api.github.com/repos/cluePrints/code-review/subscribers","subscription_url":"https://api.github.com/repos/cluePrints/code-review/subscription","commits_url":"https://api.github.com/repos/cluePrints/code-review/commits{/sha}","git_commits_url":"https://api.github.com/repos/cluePrints/code-review/git/commits{/sha}","comments_url":"https://api.github.com/repos/cluePrints/code-review/comments{/number}","issue_comment_url":"https://api.github.com/repos/cluePrints/code-review/issues/comments{/number}","contents_url":"https://api.github.com/repos/cluePrints/code-review/contents/{+path}","compare_url":"https://api.github.com/repos/cluePrints/code-review/compare/{base}...{head}","merges_url":"https://api.github.com/repos/cluePrints/code-review/merges","archive_url":"https://api.github.com/repos/cluePrints/code-review/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/cluePrints/code-review/downloads","issues_url":"https://api.github.com/repos/cluePrints/code-review/issues{/number}","pulls_url":"https://api.github.com/repos/cluePrints/code-review/pulls{/number}","milestones_url":"https://api.github.com/repos/cluePrints/code-review/milestones{/number}","notifications_url":"https://api.github.com/repos/cluePrints/code-review/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/cluePrints/code-review/labels{/name}","releases_url":"https://api.github.com/repos/cluePrints/code-review/releases{/id}","created_at":"2014-08-04T16:15:36Z","updated_at":"2014-08-04T16:15:36Z","pushed_at":"2015-06-11T11:29:54Z","git_url":"git://github.com/cluePrints/code-review.git","ssh_url":"git@github.com:cluePrints/code-review.git","clone_url":"https://github.com/cluePrints/code-review.git","svn_url":"https://github.com/cluePrints/code-review","homepage":null,"size":2439,"stargazers_count":0,"watchers_count":0,"language":null,"has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":5,"mirror_url":null,"open_issues_count":6,"forks":5,"open_issues":6,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/cluePrints/code-review/pulls/5"},"html":{"href":"https://github.com/cluePrints/code-review/pull/5"},"issue":{"href":"https://api.github.com/repos/cluePrints/code-review/issues/5"},"comments":{"href":"https://api.github.com/repos/cluePrints/code-review/issues/5/comments"},"review_comments":{"href":"https://api.github.com/repos/cluePrints/code-review/pulls/5/comments"},"review_comment":{"href":"https://api.github.com/repos/cluePrints/code-review/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/cluePrints/code-review/pulls/5/commits"},"statuses":{"href":"https://api.github.com/repos/cluePrints/code-review/statuses/ee776c8f265f1147456dadfb02ca528bf1258f4c"}}}}