{"action":"created","comment":{"url":"https://api.github.com/repos/andrewDubyk/Anagram/pulls/comments/115124873","pull_request_review_id":36648532,"id":115124873,"diff_hunk":"@@ -0,0 +1,54 @@\n+package utils;\n+\n+import java.io.BufferedReader;\n+import java.io.IOException;\n+import java.io.InputStreamReader;\n+\n+/**\n+ * Created by andrew on 07.03.2017.\n+ */\n+\n+public class Anagram {\n+\n+\tpublic static final String GAP = \" \";\n+\t\n+\tprivate static String wordAnagram(String word) {\n+\t\t\n+\t\tStringBuilder letters = new StringBuilder();\n+\n+\t\tint length = word.length();\n+\t\tfor (int i = length - 1; i >= 0; i--) {\n+\t\t\tif (Character.isLetter(word.charAt(i))) {\n+\t\t\t\tletters.append(word.charAt(i));\n+\t\t\t}\n+\t\t}\n+\n+\t\tStringBuilder anagramBuilder = new StringBuilder(word);\n+\t\tint anagramBuilderIterator = 0;\n+\t\tfor (int wordIterator = 0; wordIterator < length; wordIterator++) {\n+\t\t\tif (Character.isLetter(word.charAt(wordIterator))) {\n+\t\t\t\tanagramBuilder.setCharAt(wordIterator, letters.charAt(anagramBuilderIterator));\n+\t\t\t\tanagramBuilderIterator++;\n+\t\t\t}\n+\t\t}\n+\t\treturn anagramBuilder.toString();\n+\t}\n+\n+\tpublic static String textAnagram(String text) {\n+\t\tStringBuilder anagramBd = new StringBuilder(text);\n+\t\tString words[] = text.split(GAP);\n+\n+\t\tfor (int i = 0; i < words.length; i++) {\n+\t\t\tanagramBd.replace(anagramBd.lastIndexOf(words[i]), anagramBd.lastIndexOf(words[i]) + words[i].length(),\n+\t\t\t\t\twordAnagram(words[i]).toString());\n+\t\t}\n+\t\treturn anagramBd.toString();\n+\t}\n+\n+\tpublic static void main(String... args) throws IOException {\n+\n+\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n+\t\tString str = br.readLine();","path":"src/utils/Anagram.java","position":51,"original_position":51,"commit_id":"e77ec70a1824221cc27ada4d30f192a78fd5a4fd","original_commit_id":"e77ec70a1824221cc27ada4d30f192a78fd5a4fd","user":{"login":"ojles","id":22572543,"avatar_url":"https://avatars0.githubusercontent.com/u/22572543?v=3","gravatar_id":"","url":"https://api.github.com/users/ojles","html_url":"https://github.com/ojles","followers_url":"https://api.github.com/users/ojles/followers","following_url":"https://api.github.com/users/ojles/following{/other_user}","gists_url":"https://api.github.com/users/ojles/gists{/gist_id}","starred_url":"https://api.github.com/users/ojles/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ojles/subscriptions","organizations_url":"https://api.github.com/users/ojles/orgs","repos_url":"https://api.github.com/users/ojles/repos","events_url":"https://api.github.com/users/ojles/events{/privacy}","received_events_url":"https://api.github.com/users/ojles/received_events","type":"User","site_admin":false},"body":"Write an application that reverses all the words of input **text**\r\n\r\nКлючове слово - text","created_at":"2017-05-06T17:20:16Z","updated_at":"2017-05-06T17:20:16Z","html_url":"https://github.com/andrewDubyk/Anagram/pull/4#discussion_r115124873","pull_request_url":"https://api.github.com/repos/andrewDubyk/Anagram/pulls/4","_links":{"self":{"href":"https://api.github.com/repos/andrewDubyk/Anagram/pulls/comments/115124873"},"html":{"href":"https://github.com/andrewDubyk/Anagram/pull/4#discussion_r115124873"},"pull_request":{"href":"https://api.github.com/repos/andrewDubyk/Anagram/pulls/4"}}},"pull_request":{"url":"https://api.github.com/repos/andrewDubyk/Anagram/pulls/4","id":119205067,"html_url":"https://github.com/andrewDubyk/Anagram/pull/4","diff_url":"https://github.com/andrewDubyk/Anagram/pull/4.diff","patch_url":"https://github.com/andrewDubyk/Anagram/pull/4.patch","issue_url":"https://api.github.com/repos/andrewDubyk/Anagram/issues/4","number":4,"state":"closed","locked":false,"title":"Dev","user":{"login":"andrewDubyk","id":24880621,"avatar_url":"https://avatars3.githubusercontent.com/u/24880621?v=3","gravatar_id":"","url":"https://api.github.com/users/andrewDubyk","html_url":"https://github.com/andrewDubyk","followers_url":"https://api.github.com/users/andrewDubyk/followers","following_url":"https://api.github.com/users/andrewDubyk/following{/other_user}","gists_url":"https://api.github.com/users/andrewDubyk/gists{/gist_id}","starred_url":"https://api.github.com/users/andrewDubyk/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/andrewDubyk/subscriptions","organizations_url":"https://api.github.com/users/andrewDubyk/orgs","repos_url":"https://api.github.com/users/andrewDubyk/repos","events_url":"https://api.github.com/users/andrewDubyk/events{/privacy}","received_events_url":"https://api.github.com/users/andrewDubyk/received_events","type":"User","site_admin":false},"body":"Review of changes","created_at":"2017-05-05T15:50:57Z","updated_at":"2017-05-06T17:20:16Z","closed_at":"2017-05-05T18:30:57Z","merged_at":null,"merge_commit_sha":"fec9579eebccdbdc3b7462014d0d86e013d1e799","assignee":{"login":"ojles","id":22572543,"avatar_url":"https://avatars0.githubusercontent.com/u/22572543?v=3","gravatar_id":"","url":"https://api.github.com/users/ojles","html_url":"https://github.com/ojles","followers_url":"https://api.github.com/users/ojles/followers","following_url":"https://api.github.com/users/ojles/following{/other_user}","gists_url":"https://api.github.com/users/ojles/gists{/gist_id}","starred_url":"https://api.github.com/users/ojles/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ojles/subscriptions","organizations_url":"https://api.github.com/users/ojles/orgs","repos_url":"https://api.github.com/users/ojles/repos","events_url":"https://api.github.com/users/ojles/events{/privacy}","received_events_url":"https://api.github.com/users/ojles/received_events","type":"User","site_admin":false},"assignees":[{"login":"ojles","id":22572543,"avatar_url":"https://avatars0.githubusercontent.com/u/22572543?v=3","gravatar_id":"","url":"https://api.github.com/users/ojles","html_url":"https://github.com/ojles","followers_url":"https://api.github.com/users/ojles/followers","following_url":"https://api.github.com/users/ojles/following{/other_user}","gists_url":"https://api.github.com/users/ojles/gists{/gist_id}","starred_url":"https://api.github.com/users/ojles/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ojles/subscriptions","organizations_url":"https://api.github.com/users/ojles/orgs","repos_url":"https://api.github.com/users/ojles/repos","events_url":"https://api.github.com/users/ojles/events{/privacy}","received_events_url":"https://api.github.com/users/ojles/received_events","type":"User","site_admin":false}],"milestone":null,"commits_url":"https://api.github.com/repos/andrewDubyk/Anagram/pulls/4/commits","review_comments_url":"https://api.github.com/repos/andrewDubyk/Anagram/pulls/4/comments","review_comment_url":"https://api.github.com/repos/andrewDubyk/Anagram/pulls/comments{/number}","comments_url":"https://api.github.com/repos/andrewDubyk/Anagram/issues/4/comments","statuses_url":"https://api.github.com/repos/andrewDubyk/Anagram/statuses/e77ec70a1824221cc27ada4d30f192a78fd5a4fd","head":{"label":"andrewDubyk:dev","ref":"dev","sha":"e77ec70a1824221cc27ada4d30f192a78fd5a4fd","user":{"login":"andrewDubyk","id":24880621,"avatar_url":"https://avatars3.githubusercontent.com/u/24880621?v=3","gravatar_id":"","url":"https://api.github.com/users/andrewDubyk","html_url":"https://github.com/andrewDubyk","followers_url":"https://api.github.com/users/andrewDubyk/followers","following_url":"https://api.github.com/users/andrewDubyk/following{/other_user}","gists_url":"https://api.github.com/users/andrewDubyk/gists{/gist_id}","starred_url":"https://api.github.com/users/andrewDubyk/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/andrewDubyk/subscriptions","organizations_url":"https://api.github.com/users/andrewDubyk/orgs","repos_url":"https://api.github.com/users/andrewDubyk/repos","events_url":"https://api.github.com/users/andrewDubyk/events{/privacy}","received_events_url":"https://api.github.com/users/andrewDubyk/received_events","type":"User","site_admin":false},"repo":{"id":84307155,"name":"Anagram","full_name":"andrewDubyk/Anagram","owner":{"login":"andrewDubyk","id":24880621,"avatar_url":"https://avatars3.githubusercontent.com/u/24880621?v=3","gravatar_id":"","url":"https://api.github.com/users/andrewDubyk","html_url":"https://github.com/andrewDubyk","followers_url":"https://api.github.com/users/andrewDubyk/followers","following_url":"https://api.github.com/users/andrewDubyk/following{/other_user}","gists_url":"https://api.github.com/users/andrewDubyk/gists{/gist_id}","starred_url":"https://api.github.com/users/andrewDubyk/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/andrewDubyk/subscriptions","organizations_url":"https://api.github.com/users/andrewDubyk/orgs","repos_url":"https://api.github.com/users/andrewDubyk/repos","events_url":"https://api.github.com/users/andrewDubyk/events{/privacy}","received_events_url":"https://api.github.com/users/andrewDubyk/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/andrewDubyk/Anagram","description":null,"fork":false,"url":"https://api.github.com/repos/andrewDubyk/Anagram","forks_url":"https://api.github.com/repos/andrewDubyk/Anagram/forks","keys_url":"https://api.github.com/repos/andrewDubyk/Anagram/keys{/key_id}","collaborators_url":"https://api.github.com/repos/andrewDubyk/Anagram/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/andrewDubyk/Anagram/teams","hooks_url":"https://api.github.com/repos/andrewDubyk/Anagram/hooks","issue_events_url":"https://api.github.com/repos/andrewDubyk/Anagram/issues/events{/number}","events_url":"https://api.github.com/repos/andrewDubyk/Anagram/events","assignees_url":"https://api.github.com/repos/andrewDubyk/Anagram/assignees{/user}","branches_url":"https://api.github.com/repos/andrewDubyk/Anagram/branches{/branch}","tags_url":"https://api.github.com/repos/andrewDubyk/Anagram/tags","blobs_url":"https://api.github.com/repos/andrewDubyk/Anagram/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/andrewDubyk/Anagram/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/andrewDubyk/Anagram/git/refs{/sha}","trees_url":"https://api.github.com/repos/andrewDubyk/Anagram/git/trees{/sha}","statuses_url":"https://api.github.com/repos/andrewDubyk/Anagram/statuses/{sha}","languages_url":"https://api.github.com/repos/andrewDubyk/Anagram/languages","stargazers_url":"https://api.github.com/repos/andrewDubyk/Anagram/stargazers","contributors_url":"https://api.github.com/repos/andrewDubyk/Anagram/contributors","subscribers_url":"https://api.github.com/repos/andrewDubyk/Anagram/subscribers","subscription_url":"https://api.github.com/repos/andrewDubyk/Anagram/subscription","commits_url":"https://api.github.com/repos/andrewDubyk/Anagram/commits{/sha}","git_commits_url":"https://api.github.com/repos/andrewDubyk/Anagram/git/commits{/sha}","comments_url":"https://api.github.com/repos/andrewDubyk/Anagram/comments{/number}","issue_comment_url":"https://api.github.com/repos/andrewDubyk/Anagram/issues/comments{/number}","contents_url":"https://api.github.com/repos/andrewDubyk/Anagram/contents/{+path}","compare_url":"https://api.github.com/repos/andrewDubyk/Anagram/compare/{base}...{head}","merges_url":"https://api.github.com/repos/andrewDubyk/Anagram/merges","archive_url":"https://api.github.com/repos/andrewDubyk/Anagram/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/andrewDubyk/Anagram/downloads","issues_url":"https://api.github.com/repos/andrewDubyk/Anagram/issues{/number}","pulls_url":"https://api.github.com/repos/andrewDubyk/Anagram/pulls{/number}","milestones_url":"https://api.github.com/repos/andrewDubyk/Anagram/milestones{/number}","notifications_url":"https://api.github.com/repos/andrewDubyk/Anagram/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/andrewDubyk/Anagram/labels{/name}","releases_url":"https://api.github.com/repos/andrewDubyk/Anagram/releases{/id}","deployments_url":"https://api.github.com/repos/andrewDubyk/Anagram/deployments","created_at":"2017-03-08T10:15:08Z","updated_at":"2017-04-02T15:36:28Z","pushed_at":"2017-05-05T15:50:57Z","git_url":"git://github.com/andrewDubyk/Anagram.git","ssh_url":"git@github.com:andrewDubyk/Anagram.git","clone_url":"https://github.com/andrewDubyk/Anagram.git","svn_url":"https://github.com/andrewDubyk/Anagram","homepage":null,"size":440,"stargazers_count":0,"watchers_count":0,"language":null,"has_issues":true,"has_projects":true,"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":"andrewDubyk:master","ref":"master","sha":"5132308f7c41b146caa026610357c4e59b9c3f9e","user":{"login":"andrewDubyk","id":24880621,"avatar_url":"https://avatars3.githubusercontent.com/u/24880621?v=3","gravatar_id":"","url":"https://api.github.com/users/andrewDubyk","html_url":"https://github.com/andrewDubyk","followers_url":"https://api.github.com/users/andrewDubyk/followers","following_url":"https://api.github.com/users/andrewDubyk/following{/other_user}","gists_url":"https://api.github.com/users/andrewDubyk/gists{/gist_id}","starred_url":"https://api.github.com/users/andrewDubyk/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/andrewDubyk/subscriptions","organizations_url":"https://api.github.com/users/andrewDubyk/orgs","repos_url":"https://api.github.com/users/andrewDubyk/repos","events_url":"https://api.github.com/users/andrewDubyk/events{/privacy}","received_events_url":"https://api.github.com/users/andrewDubyk/received_events","type":"User","site_admin":false},"repo":{"id":84307155,"name":"Anagram","full_name":"andrewDubyk/Anagram","owner":{"login":"andrewDubyk","id":24880621,"avatar_url":"https://avatars3.githubusercontent.com/u/24880621?v=3","gravatar_id":"","url":"https://api.github.com/users/andrewDubyk","html_url":"https://github.com/andrewDubyk","followers_url":"https://api.github.com/users/andrewDubyk/followers","following_url":"https://api.github.com/users/andrewDubyk/following{/other_user}","gists_url":"https://api.github.com/users/andrewDubyk/gists{/gist_id}","starred_url":"https://api.github.com/users/andrewDubyk/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/andrewDubyk/subscriptions","organizations_url":"https://api.github.com/users/andrewDubyk/orgs","repos_url":"https://api.github.com/users/andrewDubyk/repos","events_url":"https://api.github.com/users/andrewDubyk/events{/privacy}","received_events_url":"https://api.github.com/users/andrewDubyk/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/andrewDubyk/Anagram","description":null,"fork":false,"url":"https://api.github.com/repos/andrewDubyk/Anagram","forks_url":"https://api.github.com/repos/andrewDubyk/Anagram/forks","keys_url":"https://api.github.com/repos/andrewDubyk/Anagram/keys{/key_id}","collaborators_url":"https://api.github.com/repos/andrewDubyk/Anagram/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/andrewDubyk/Anagram/teams","hooks_url":"https://api.github.com/repos/andrewDubyk/Anagram/hooks","issue_events_url":"https://api.github.com/repos/andrewDubyk/Anagram/issues/events{/number}","events_url":"https://api.github.com/repos/andrewDubyk/Anagram/events","assignees_url":"https://api.github.com/repos/andrewDubyk/Anagram/assignees{/user}","branches_url":"https://api.github.com/repos/andrewDubyk/Anagram/branches{/branch}","tags_url":"https://api.github.com/repos/andrewDubyk/Anagram/tags","blobs_url":"https://api.github.com/repos/andrewDubyk/Anagram/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/andrewDubyk/Anagram/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/andrewDubyk/Anagram/git/refs{/sha}","trees_url":"https://api.github.com/repos/andrewDubyk/Anagram/git/trees{/sha}","statuses_url":"https://api.github.com/repos/andrewDubyk/Anagram/statuses/{sha}","languages_url":"https://api.github.com/repos/andrewDubyk/Anagram/languages","stargazers_url":"https://api.github.com/repos/andrewDubyk/Anagram/stargazers","contributors_url":"https://api.github.com/repos/andrewDubyk/Anagram/contributors","subscribers_url":"https://api.github.com/repos/andrewDubyk/Anagram/subscribers","subscription_url":"https://api.github.com/repos/andrewDubyk/Anagram/subscription","commits_url":"https://api.github.com/repos/andrewDubyk/Anagram/commits{/sha}","git_commits_url":"https://api.github.com/repos/andrewDubyk/Anagram/git/commits{/sha}","comments_url":"https://api.github.com/repos/andrewDubyk/Anagram/comments{/number}","issue_comment_url":"https://api.github.com/repos/andrewDubyk/Anagram/issues/comments{/number}","contents_url":"https://api.github.com/repos/andrewDubyk/Anagram/contents/{+path}","compare_url":"https://api.github.com/repos/andrewDubyk/Anagram/compare/{base}...{head}","merges_url":"https://api.github.com/repos/andrewDubyk/Anagram/merges","archive_url":"https://api.github.com/repos/andrewDubyk/Anagram/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/andrewDubyk/Anagram/downloads","issues_url":"https://api.github.com/repos/andrewDubyk/Anagram/issues{/number}","pulls_url":"https://api.github.com/repos/andrewDubyk/Anagram/pulls{/number}","milestones_url":"https://api.github.com/repos/andrewDubyk/Anagram/milestones{/number}","notifications_url":"https://api.github.com/repos/andrewDubyk/Anagram/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/andrewDubyk/Anagram/labels{/name}","releases_url":"https://api.github.com/repos/andrewDubyk/Anagram/releases{/id}","deployments_url":"https://api.github.com/repos/andrewDubyk/Anagram/deployments","created_at":"2017-03-08T10:15:08Z","updated_at":"2017-04-02T15:36:28Z","pushed_at":"2017-05-05T15:50:57Z","git_url":"git://github.com/andrewDubyk/Anagram.git","ssh_url":"git@github.com:andrewDubyk/Anagram.git","clone_url":"https://github.com/andrewDubyk/Anagram.git","svn_url":"https://github.com/andrewDubyk/Anagram","homepage":null,"size":440,"stargazers_count":0,"watchers_count":0,"language":null,"has_issues":true,"has_projects":true,"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"}},"_links":{"self":{"href":"https://api.github.com/repos/andrewDubyk/Anagram/pulls/4"},"html":{"href":"https://github.com/andrewDubyk/Anagram/pull/4"},"issue":{"href":"https://api.github.com/repos/andrewDubyk/Anagram/issues/4"},"comments":{"href":"https://api.github.com/repos/andrewDubyk/Anagram/issues/4/comments"},"review_comments":{"href":"https://api.github.com/repos/andrewDubyk/Anagram/pulls/4/comments"},"review_comment":{"href":"https://api.github.com/repos/andrewDubyk/Anagram/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/andrewDubyk/Anagram/pulls/4/commits"},"statuses":{"href":"https://api.github.com/repos/andrewDubyk/Anagram/statuses/e77ec70a1824221cc27ada4d30f192a78fd5a4fd"}}}}
{"actor":{"display_login":"ojles"}}