{"action":"created","comment":{"url":"https://api.github.com/repos/SberTechJavaSchool/Homework/pulls/comments/167155377","pull_request_review_id":95331698,"id":167155377,"diff_hunk":"@@ -0,0 +1,34 @@\n+package ru.sberbank.homework.kashin.main.calculator;\n+\n+import ru.sberbank.homework.kashin.main.model.Expression;\n+import ru.sberbank.homework.kashin.main.util.Helper;\n+import ru.sberbank.homework.your_lastname.Calculator;\n+\n+import static ru.sberbank.homework.kashin.main.util.Helper.print;\n+\n+public class CalculatorImpl implements Calculator {\n+\n+    /**\n+     * Обрабатывает пользовательский ввод.\n+     * примеры команд:\n+     * 0345 * 0b10101\n+     * / 1.04\n+     * quit\n+     *\n+     * @param userInput команда пользователя.\n+     * @return отформатированный результат вычисления\n+     */\n+    @Override\n+    public String calculate(String userInput) {\n+        String result = null;\n+        try {\n+            Expression expression = Helper.parser(userInput.trim().replaceAll(\",\", \".\"));\n+            result = Helper.calculateHelper(expression);\n+        } catch (RuntimeException e) {\n+            print(e.getMessage());","path":"hw02/src/ru/sberbank/homework/kashin/main/calculator/CalculatorImpl.java","position":28,"original_position":28,"commit_id":"50ffa7ad2333453187262e8386b3426b21939273","original_commit_id":"50ffa7ad2333453187262e8386b3426b21939273","user":{"login":"bormoshka","id":1025327,"avatar_url":"https://avatars3.githubusercontent.com/u/1025327?v=4","gravatar_id":"","url":"https://api.github.com/users/bormoshka","html_url":"https://github.com/bormoshka","followers_url":"https://api.github.com/users/bormoshka/followers","following_url":"https://api.github.com/users/bormoshka/following{/other_user}","gists_url":"https://api.github.com/users/bormoshka/gists{/gist_id}","starred_url":"https://api.github.com/users/bormoshka/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bormoshka/subscriptions","organizations_url":"https://api.github.com/users/bormoshka/orgs","repos_url":"https://api.github.com/users/bormoshka/repos","events_url":"https://api.github.com/users/bormoshka/events{/privacy}","received_events_url":"https://api.github.com/users/bormoshka/received_events","type":"User","site_admin":false},"body":"Тем более, что исключение бросается. \r\nНужно делегировать обязанность по работе с консолью другому классу.","created_at":"2018-02-09T07:25:44Z","updated_at":"2018-02-09T07:53:23Z","html_url":"https://github.com/SberTechJavaSchool/Homework/pull/15#discussion_r167155377","pull_request_url":"https://api.github.com/repos/SberTechJavaSchool/Homework/pulls/15","author_association":"CONTRIBUTOR","_links":{"self":{"href":"https://api.github.com/repos/SberTechJavaSchool/Homework/pulls/comments/167155377"},"html":{"href":"https://github.com/SberTechJavaSchool/Homework/pull/15#discussion_r167155377"},"pull_request":{"href":"https://api.github.com/repos/SberTechJavaSchool/Homework/pulls/15"}}},"pull_request":{"url":"https://api.github.com/repos/SberTechJavaSchool/Homework/pulls/15","id":168093099,"html_url":"https://github.com/SberTechJavaSchool/Homework/pull/15","diff_url":"https://github.com/SberTechJavaSchool/Homework/pull/15.diff","patch_url":"https://github.com/SberTechJavaSchool/Homework/pull/15.patch","issue_url":"https://api.github.com/repos/SberTechJavaSchool/Homework/issues/15","number":15,"state":"open","locked":false,"title":"02. Кашин ДС","user":{"login":"kadmser","id":28690997,"avatar_url":"https://avatars1.githubusercontent.com/u/28690997?v=4","gravatar_id":"","url":"https://api.github.com/users/kadmser","html_url":"https://github.com/kadmser","followers_url":"https://api.github.com/users/kadmser/followers","following_url":"https://api.github.com/users/kadmser/following{/other_user}","gists_url":"https://api.github.com/users/kadmser/gists{/gist_id}","starred_url":"https://api.github.com/users/kadmser/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kadmser/subscriptions","organizations_url":"https://api.github.com/users/kadmser/orgs","repos_url":"https://api.github.com/users/kadmser/repos","events_url":"https://api.github.com/users/kadmser/events{/privacy}","received_events_url":"https://api.github.com/users/kadmser/received_events","type":"User","site_admin":false},"body":"Классы с первого задания тоже подхватились в новую ветку, они уже есть в мастере.","created_at":"2018-02-08T21:34:16Z","updated_at":"2018-02-09T07:53:23Z","closed_at":null,"merged_at":null,"merge_commit_sha":"f5d9811b02bcab8fd147d029dc3788496b047b0b","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"milestone":null,"commits_url":"https://api.github.com/repos/SberTechJavaSchool/Homework/pulls/15/commits","review_comments_url":"https://api.github.com/repos/SberTechJavaSchool/Homework/pulls/15/comments","review_comment_url":"https://api.github.com/repos/SberTechJavaSchool/Homework/pulls/comments{/number}","comments_url":"https://api.github.com/repos/SberTechJavaSchool/Homework/issues/15/comments","statuses_url":"https://api.github.com/repos/SberTechJavaSchool/Homework/statuses/50ffa7ad2333453187262e8386b3426b21939273","head":{"label":"kadmser:master","ref":"master","sha":"50ffa7ad2333453187262e8386b3426b21939273","user":{"login":"kadmser","id":28690997,"avatar_url":"https://avatars1.githubusercontent.com/u/28690997?v=4","gravatar_id":"","url":"https://api.github.com/users/kadmser","html_url":"https://github.com/kadmser","followers_url":"https://api.github.com/users/kadmser/followers","following_url":"https://api.github.com/users/kadmser/following{/other_user}","gists_url":"https://api.github.com/users/kadmser/gists{/gist_id}","starred_url":"https://api.github.com/users/kadmser/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kadmser/subscriptions","organizations_url":"https://api.github.com/users/kadmser/orgs","repos_url":"https://api.github.com/users/kadmser/repos","events_url":"https://api.github.com/users/kadmser/events{/privacy}","received_events_url":"https://api.github.com/users/kadmser/received_events","type":"User","site_admin":false},"repo":{"id":120494971,"name":"Homework","full_name":"kadmser/Homework","owner":{"login":"kadmser","id":28690997,"avatar_url":"https://avatars1.githubusercontent.com/u/28690997?v=4","gravatar_id":"","url":"https://api.github.com/users/kadmser","html_url":"https://github.com/kadmser","followers_url":"https://api.github.com/users/kadmser/followers","following_url":"https://api.github.com/users/kadmser/following{/other_user}","gists_url":"https://api.github.com/users/kadmser/gists{/gist_id}","starred_url":"https://api.github.com/users/kadmser/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kadmser/subscriptions","organizations_url":"https://api.github.com/users/kadmser/orgs","repos_url":"https://api.github.com/users/kadmser/repos","events_url":"https://api.github.com/users/kadmser/events{/privacy}","received_events_url":"https://api.github.com/users/kadmser/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/kadmser/Homework","description":"Домашняя работа","fork":true,"url":"https://api.github.com/repos/kadmser/Homework","forks_url":"https://api.github.com/repos/kadmser/Homework/forks","keys_url":"https://api.github.com/repos/kadmser/Homework/keys{/key_id}","collaborators_url":"https://api.github.com/repos/kadmser/Homework/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/kadmser/Homework/teams","hooks_url":"https://api.github.com/repos/kadmser/Homework/hooks","issue_events_url":"https://api.github.com/repos/kadmser/Homework/issues/events{/number}","events_url":"https://api.github.com/repos/kadmser/Homework/events","assignees_url":"https://api.github.com/repos/kadmser/Homework/assignees{/user}","branches_url":"https://api.github.com/repos/kadmser/Homework/branches{/branch}","tags_url":"https://api.github.com/repos/kadmser/Homework/tags","blobs_url":"https://api.github.com/repos/kadmser/Homework/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/kadmser/Homework/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/kadmser/Homework/git/refs{/sha}","trees_url":"https://api.github.com/repos/kadmser/Homework/git/trees{/sha}","statuses_url":"https://api.github.com/repos/kadmser/Homework/statuses/{sha}","languages_url":"https://api.github.com/repos/kadmser/Homework/languages","stargazers_url":"https://api.github.com/repos/kadmser/Homework/stargazers","contributors_url":"https://api.github.com/repos/kadmser/Homework/contributors","subscribers_url":"https://api.github.com/repos/kadmser/Homework/subscribers","subscription_url":"https://api.github.com/repos/kadmser/Homework/subscription","commits_url":"https://api.github.com/repos/kadmser/Homework/commits{/sha}","git_commits_url":"https://api.github.com/repos/kadmser/Homework/git/commits{/sha}","comments_url":"https://api.github.com/repos/kadmser/Homework/comments{/number}","issue_comment_url":"https://api.github.com/repos/kadmser/Homework/issues/comments{/number}","contents_url":"https://api.github.com/repos/kadmser/Homework/contents/{+path}","compare_url":"https://api.github.com/repos/kadmser/Homework/compare/{base}...{head}","merges_url":"https://api.github.com/repos/kadmser/Homework/merges","archive_url":"https://api.github.com/repos/kadmser/Homework/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/kadmser/Homework/downloads","issues_url":"https://api.github.com/repos/kadmser/Homework/issues{/number}","pulls_url":"https://api.github.com/repos/kadmser/Homework/pulls{/number}","milestones_url":"https://api.github.com/repos/kadmser/Homework/milestones{/number}","notifications_url":"https://api.github.com/repos/kadmser/Homework/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/kadmser/Homework/labels{/name}","releases_url":"https://api.github.com/repos/kadmser/Homework/releases{/id}","deployments_url":"https://api.github.com/repos/kadmser/Homework/deployments","created_at":"2018-02-06T17:16:11Z","updated_at":"2018-02-06T17:16:13Z","pushed_at":"2018-02-09T04:34:26Z","git_url":"git://github.com/kadmser/Homework.git","ssh_url":"git@github.com:kadmser/Homework.git","clone_url":"https://github.com/kadmser/Homework.git","svn_url":"https://github.com/kadmser/Homework","homepage":null,"size":21,"stargazers_count":0,"watchers_count":0,"language":"Java","has_issues":false,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":0,"license":null,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"SberTechJavaSchool:Kashin","ref":"Kashin","sha":"0e50ce813625a829c70f4c7ae5fc97cb16f03657","user":{"login":"SberTechJavaSchool","id":36043895,"avatar_url":"https://avatars3.githubusercontent.com/u/36043895?v=4","gravatar_id":"","url":"https://api.github.com/users/SberTechJavaSchool","html_url":"https://github.com/SberTechJavaSchool","followers_url":"https://api.github.com/users/SberTechJavaSchool/followers","following_url":"https://api.github.com/users/SberTechJavaSchool/following{/other_user}","gists_url":"https://api.github.com/users/SberTechJavaSchool/gists{/gist_id}","starred_url":"https://api.github.com/users/SberTechJavaSchool/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/SberTechJavaSchool/subscriptions","organizations_url":"https://api.github.com/users/SberTechJavaSchool/orgs","repos_url":"https://api.github.com/users/SberTechJavaSchool/repos","events_url":"https://api.github.com/users/SberTechJavaSchool/events{/privacy}","received_events_url":"https://api.github.com/users/SberTechJavaSchool/received_events","type":"Organization","site_admin":false},"repo":{"id":120473051,"name":"Homework","full_name":"SberTechJavaSchool/Homework","owner":{"login":"SberTechJavaSchool","id":36043895,"avatar_url":"https://avatars3.githubusercontent.com/u/36043895?v=4","gravatar_id":"","url":"https://api.github.com/users/SberTechJavaSchool","html_url":"https://github.com/SberTechJavaSchool","followers_url":"https://api.github.com/users/SberTechJavaSchool/followers","following_url":"https://api.github.com/users/SberTechJavaSchool/following{/other_user}","gists_url":"https://api.github.com/users/SberTechJavaSchool/gists{/gist_id}","starred_url":"https://api.github.com/users/SberTechJavaSchool/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/SberTechJavaSchool/subscriptions","organizations_url":"https://api.github.com/users/SberTechJavaSchool/orgs","repos_url":"https://api.github.com/users/SberTechJavaSchool/repos","events_url":"https://api.github.com/users/SberTechJavaSchool/events{/privacy}","received_events_url":"https://api.github.com/users/SberTechJavaSchool/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/SberTechJavaSchool/Homework","description":"Домашняя работа","fork":false,"url":"https://api.github.com/repos/SberTechJavaSchool/Homework","forks_url":"https://api.github.com/repos/SberTechJavaSchool/Homework/forks","keys_url":"https://api.github.com/repos/SberTechJavaSchool/Homework/keys{/key_id}","collaborators_url":"https://api.github.com/repos/SberTechJavaSchool/Homework/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/SberTechJavaSchool/Homework/teams","hooks_url":"https://api.github.com/repos/SberTechJavaSchool/Homework/hooks","issue_events_url":"https://api.github.com/repos/SberTechJavaSchool/Homework/issues/events{/number}","events_url":"https://api.github.com/repos/SberTechJavaSchool/Homework/events","assignees_url":"https://api.github.com/repos/SberTechJavaSchool/Homework/assignees{/user}","branches_url":"https://api.github.com/repos/SberTechJavaSchool/Homework/branches{/branch}","tags_url":"https://api.github.com/repos/SberTechJavaSchool/Homework/tags","blobs_url":"https://api.github.com/repos/SberTechJavaSchool/Homework/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/SberTechJavaSchool/Homework/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/SberTechJavaSchool/Homework/git/refs{/sha}","trees_url":"https://api.github.com/repos/SberTechJavaSchool/Homework/git/trees{/sha}","statuses_url":"https://api.github.com/repos/SberTechJavaSchool/Homework/statuses/{sha}","languages_url":"https://api.github.com/repos/SberTechJavaSchool/Homework/languages","stargazers_url":"https://api.github.com/repos/SberTechJavaSchool/Homework/stargazers","contributors_url":"https://api.github.com/repos/SberTechJavaSchool/Homework/contributors","subscribers_url":"https://api.github.com/repos/SberTechJavaSchool/Homework/subscribers","subscription_url":"https://api.github.com/repos/SberTechJavaSchool/Homework/subscription","commits_url":"https://api.github.com/repos/SberTechJavaSchool/Homework/commits{/sha}","git_commits_url":"https://api.github.com/repos/SberTechJavaSchool/Homework/git/commits{/sha}","comments_url":"https://api.github.com/repos/SberTechJavaSchool/Homework/comments{/number}","issue_comment_url":"https://api.github.com/repos/SberTechJavaSchool/Homework/issues/comments{/number}","contents_url":"https://api.github.com/repos/SberTechJavaSchool/Homework/contents/{+path}","compare_url":"https://api.github.com/repos/SberTechJavaSchool/Homework/compare/{base}...{head}","merges_url":"https://api.github.com/repos/SberTechJavaSchool/Homework/merges","archive_url":"https://api.github.com/repos/SberTechJavaSchool/Homework/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/SberTechJavaSchool/Homework/downloads","issues_url":"https://api.github.com/repos/SberTechJavaSchool/Homework/issues{/number}","pulls_url":"https://api.github.com/repos/SberTechJavaSchool/Homework/pulls{/number}","milestones_url":"https://api.github.com/repos/SberTechJavaSchool/Homework/milestones{/number}","notifications_url":"https://api.github.com/repos/SberTechJavaSchool/Homework/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/SberTechJavaSchool/Homework/labels{/name}","releases_url":"https://api.github.com/repos/SberTechJavaSchool/Homework/releases{/id}","deployments_url":"https://api.github.com/repos/SberTechJavaSchool/Homework/deployments","created_at":"2018-02-06T14:49:25Z","updated_at":"2018-02-08T11:59:59Z","pushed_at":"2018-02-09T06:11:03Z","git_url":"git://github.com/SberTechJavaSchool/Homework.git","ssh_url":"git@github.com:SberTechJavaSchool/Homework.git","clone_url":"https://github.com/SberTechJavaSchool/Homework.git","svn_url":"https://github.com/SberTechJavaSchool/Homework","homepage":null,"size":34,"stargazers_count":3,"watchers_count":3,"language":"Java","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":13,"mirror_url":null,"archived":false,"open_issues_count":5,"license":null,"forks":13,"open_issues":5,"watchers":3,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/SberTechJavaSchool/Homework/pulls/15"},"html":{"href":"https://github.com/SberTechJavaSchool/Homework/pull/15"},"issue":{"href":"https://api.github.com/repos/SberTechJavaSchool/Homework/issues/15"},"comments":{"href":"https://api.github.com/repos/SberTechJavaSchool/Homework/issues/15/comments"},"review_comments":{"href":"https://api.github.com/repos/SberTechJavaSchool/Homework/pulls/15/comments"},"review_comment":{"href":"https://api.github.com/repos/SberTechJavaSchool/Homework/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/SberTechJavaSchool/Homework/pulls/15/commits"},"statuses":{"href":"https://api.github.com/repos/SberTechJavaSchool/Homework/statuses/50ffa7ad2333453187262e8386b3426b21939273"}},"author_association":"CONTRIBUTOR"}}
{"actor":{"display_login":"bormoshka"}}