{"action":"created","comment":{"url":"https://api.github.com/repos/rubyroidlabs/bsuir-courses/pulls/comments/84288174","pull_request_review_id":5074356,"id":84288174,"diff_hunk":"@@ -0,0 +1,89 @@\n+#!/usr/bin/env ruby\n+arr = []\n+sign = ['+', '-', '*', '/', '!', '%']\n+nums = 0\n+signs = 0\n+class String\n+  def valid_float?\n+    true if Float self rescue false\n+  end\n+end\n+def Checking sym\n+  signs = ['+', '-', '*', '/', '!', '%']\t\n+  (signs.include?(sym)) || (sym.valid_float?) \n+end\n+def CheckResult num\n+  if num - num.to_i < 1E-20\n+    num = num.to_i\n+  end\n+  num\n+end\n+def Zeroing num, i\n+  count = 0\n+  shifts = 0\n+  while count < i\n+    if num[0] == 1\n+      count += 1\n+      shifts += 1\n+      num = num >> 1\n+    else\n+      shifts += 1\n+      num = num >> 1\n+    end\n+  end\n+  num = num << shifts\n+  num\n+end\n+while true\n+  elem = gets.chomp\n+  if Checking(elem)\n+    if sign.include?(elem) \n+      signs += 1\n+      arr = arr.push(elem)\t\t\n+    else \n+      nums += 1\n+      arr = arr.push(elem.to_f)\n+    end\n+    if (nums > 1) && (signs == nums - 1)\n+      break \n+    end\n+    if (sign.include?(arr[0])) || (sign.include?(arr[1]))","path":"2016/VladislavAmbrosevich/0/calc.rb","position":50,"original_position":50,"commit_id":"45b46be3acac71094c3cc872041db55221ffc0f4","original_commit_id":"45b46be3acac71094c3cc872041db55221ffc0f4","user":{"login":"houndci-bot","id":6697940,"avatar_url":"https://avatars.githubusercontent.com/u/6697940?v=3","gravatar_id":"","url":"https://api.github.com/users/houndci-bot","html_url":"https://github.com/houndci-bot","followers_url":"https://api.github.com/users/houndci-bot/followers","following_url":"https://api.github.com/users/houndci-bot/following{/other_user}","gists_url":"https://api.github.com/users/houndci-bot/gists{/gist_id}","starred_url":"https://api.github.com/users/houndci-bot/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/houndci-bot/subscriptions","organizations_url":"https://api.github.com/users/houndci-bot/orgs","repos_url":"https://api.github.com/users/houndci-bot/repos","events_url":"https://api.github.com/users/houndci-bot/events{/privacy}","received_events_url":"https://api.github.com/users/houndci-bot/received_events","type":"User","site_admin":false},"body":"Don't use parentheses around a method call.","created_at":"2016-10-20T13:59:05Z","updated_at":"2016-10-20T13:59:05Z","html_url":"https://github.com/rubyroidlabs/bsuir-courses/pull/464#discussion_r84288174","pull_request_url":"https://api.github.com/repos/rubyroidlabs/bsuir-courses/pulls/464","_links":{"self":{"href":"https://api.github.com/repos/rubyroidlabs/bsuir-courses/pulls/comments/84288174"},"html":{"href":"https://github.com/rubyroidlabs/bsuir-courses/pull/464#discussion_r84288174"},"pull_request":{"href":"https://api.github.com/repos/rubyroidlabs/bsuir-courses/pulls/464"}}},"pull_request":{"url":"https://api.github.com/repos/rubyroidlabs/bsuir-courses/pulls/464","id":90201591,"html_url":"https://github.com/rubyroidlabs/bsuir-courses/pull/464","diff_url":"https://github.com/rubyroidlabs/bsuir-courses/pull/464.diff","patch_url":"https://github.com/rubyroidlabs/bsuir-courses/pull/464.patch","issue_url":"https://api.github.com/repos/rubyroidlabs/bsuir-courses/issues/464","number":464,"state":"open","locked":false,"title":"Initial commit","user":{"login":"RedMonsta","id":18559417,"avatar_url":"https://avatars.githubusercontent.com/u/18559417?v=3","gravatar_id":"","url":"https://api.github.com/users/RedMonsta","html_url":"https://github.com/RedMonsta","followers_url":"https://api.github.com/users/RedMonsta/followers","following_url":"https://api.github.com/users/RedMonsta/following{/other_user}","gists_url":"https://api.github.com/users/RedMonsta/gists{/gist_id}","starred_url":"https://api.github.com/users/RedMonsta/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/RedMonsta/subscriptions","organizations_url":"https://api.github.com/users/RedMonsta/orgs","repos_url":"https://api.github.com/users/RedMonsta/repos","events_url":"https://api.github.com/users/RedMonsta/events{/privacy}","received_events_url":"https://api.github.com/users/RedMonsta/received_events","type":"User","site_admin":false},"body":"## Фамилия Имя\r\nАмбросевич Владислав\r\n\r\n## Email\r\nvambrosevich@gmail.com\r\n\r\n## Номер домашнего задания\r\n0\r\n\r\n## Ссылка на видео с демо работы\r\nhttp://recordit.co/VeKMcfNGmB\r\n\r\n## Комментарии\r\nРеализовал продвинутую версию.\r\nПоддерживает операции +, -, *, /, %, !\r\nНормально работает с float.\r\nСделаны проверки на ввод.\r\n\r\n\r\n","created_at":"2016-10-20T13:34:53Z","updated_at":"2016-10-20T13:59:05Z","closed_at":null,"merged_at":null,"merge_commit_sha":"e2bd292bb2a7efa233619781d97a09e9368b3b9e","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/rubyroidlabs/bsuir-courses/pulls/464/commits","review_comments_url":"https://api.github.com/repos/rubyroidlabs/bsuir-courses/pulls/464/comments","review_comment_url":"https://api.github.com/repos/rubyroidlabs/bsuir-courses/pulls/comments{/number}","comments_url":"https://api.github.com/repos/rubyroidlabs/bsuir-courses/issues/464/comments","statuses_url":"https://api.github.com/repos/rubyroidlabs/bsuir-courses/statuses/45b46be3acac71094c3cc872041db55221ffc0f4","head":{"label":"RedMonsta:homework-0","ref":"homework-0","sha":"45b46be3acac71094c3cc872041db55221ffc0f4","user":{"login":"RedMonsta","id":18559417,"avatar_url":"https://avatars.githubusercontent.com/u/18559417?v=3","gravatar_id":"","url":"https://api.github.com/users/RedMonsta","html_url":"https://github.com/RedMonsta","followers_url":"https://api.github.com/users/RedMonsta/followers","following_url":"https://api.github.com/users/RedMonsta/following{/other_user}","gists_url":"https://api.github.com/users/RedMonsta/gists{/gist_id}","starred_url":"https://api.github.com/users/RedMonsta/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/RedMonsta/subscriptions","organizations_url":"https://api.github.com/users/RedMonsta/orgs","repos_url":"https://api.github.com/users/RedMonsta/repos","events_url":"https://api.github.com/users/RedMonsta/events{/privacy}","received_events_url":"https://api.github.com/users/RedMonsta/received_events","type":"User","site_admin":false},"repo":{"id":71462619,"name":"bsuir-courses","full_name":"RedMonsta/bsuir-courses","owner":{"login":"RedMonsta","id":18559417,"avatar_url":"https://avatars.githubusercontent.com/u/18559417?v=3","gravatar_id":"","url":"https://api.github.com/users/RedMonsta","html_url":"https://github.com/RedMonsta","followers_url":"https://api.github.com/users/RedMonsta/followers","following_url":"https://api.github.com/users/RedMonsta/following{/other_user}","gists_url":"https://api.github.com/users/RedMonsta/gists{/gist_id}","starred_url":"https://api.github.com/users/RedMonsta/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/RedMonsta/subscriptions","organizations_url":"https://api.github.com/users/RedMonsta/orgs","repos_url":"https://api.github.com/users/RedMonsta/repos","events_url":"https://api.github.com/users/RedMonsta/events{/privacy}","received_events_url":"https://api.github.com/users/RedMonsta/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/RedMonsta/bsuir-courses","description":"This is common repository for all student to submit all their homeworks","fork":true,"url":"https://api.github.com/repos/RedMonsta/bsuir-courses","forks_url":"https://api.github.com/repos/RedMonsta/bsuir-courses/forks","keys_url":"https://api.github.com/repos/RedMonsta/bsuir-courses/keys{/key_id}","collaborators_url":"https://api.github.com/repos/RedMonsta/bsuir-courses/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/RedMonsta/bsuir-courses/teams","hooks_url":"https://api.github.com/repos/RedMonsta/bsuir-courses/hooks","issue_events_url":"https://api.github.com/repos/RedMonsta/bsuir-courses/issues/events{/number}","events_url":"https://api.github.com/repos/RedMonsta/bsuir-courses/events","assignees_url":"https://api.github.com/repos/RedMonsta/bsuir-courses/assignees{/user}","branches_url":"https://api.github.com/repos/RedMonsta/bsuir-courses/branches{/branch}","tags_url":"https://api.github.com/repos/RedMonsta/bsuir-courses/tags","blobs_url":"https://api.github.com/repos/RedMonsta/bsuir-courses/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/RedMonsta/bsuir-courses/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/RedMonsta/bsuir-courses/git/refs{/sha}","trees_url":"https://api.github.com/repos/RedMonsta/bsuir-courses/git/trees{/sha}","statuses_url":"https://api.github.com/repos/RedMonsta/bsuir-courses/statuses/{sha}","languages_url":"https://api.github.com/repos/RedMonsta/bsuir-courses/languages","stargazers_url":"https://api.github.com/repos/RedMonsta/bsuir-courses/stargazers","contributors_url":"https://api.github.com/repos/RedMonsta/bsuir-courses/contributors","subscribers_url":"https://api.github.com/repos/RedMonsta/bsuir-courses/subscribers","subscription_url":"https://api.github.com/repos/RedMonsta/bsuir-courses/subscription","commits_url":"https://api.github.com/repos/RedMonsta/bsuir-courses/commits{/sha}","git_commits_url":"https://api.github.com/repos/RedMonsta/bsuir-courses/git/commits{/sha}","comments_url":"https://api.github.com/repos/RedMonsta/bsuir-courses/comments{/number}","issue_comment_url":"https://api.github.com/repos/RedMonsta/bsuir-courses/issues/comments{/number}","contents_url":"https://api.github.com/repos/RedMonsta/bsuir-courses/contents/{+path}","compare_url":"https://api.github.com/repos/RedMonsta/bsuir-courses/compare/{base}...{head}","merges_url":"https://api.github.com/repos/RedMonsta/bsuir-courses/merges","archive_url":"https://api.github.com/repos/RedMonsta/bsuir-courses/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/RedMonsta/bsuir-courses/downloads","issues_url":"https://api.github.com/repos/RedMonsta/bsuir-courses/issues{/number}","pulls_url":"https://api.github.com/repos/RedMonsta/bsuir-courses/pulls{/number}","milestones_url":"https://api.github.com/repos/RedMonsta/bsuir-courses/milestones{/number}","notifications_url":"https://api.github.com/repos/RedMonsta/bsuir-courses/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/RedMonsta/bsuir-courses/labels{/name}","releases_url":"https://api.github.com/repos/RedMonsta/bsuir-courses/releases{/id}","deployments_url":"https://api.github.com/repos/RedMonsta/bsuir-courses/deployments","created_at":"2016-10-20T12:49:58Z","updated_at":"2016-10-20T12:50:00Z","pushed_at":"2016-10-20T13:58:54Z","git_url":"git://github.com/RedMonsta/bsuir-courses.git","ssh_url":"git@github.com:RedMonsta/bsuir-courses.git","clone_url":"https://github.com/RedMonsta/bsuir-courses.git","svn_url":"https://github.com/RedMonsta/bsuir-courses","homepage":null,"size":6519,"stargazers_count":0,"watchers_count":0,"language":"Ruby","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":"rubyroidlabs:master","ref":"master","sha":"d0f9d8959f21076a7bbdbe6069587e92a6856557","user":{"login":"rubyroidlabs","id":5137565,"avatar_url":"https://avatars.githubusercontent.com/u/5137565?v=3","gravatar_id":"","url":"https://api.github.com/users/rubyroidlabs","html_url":"https://github.com/rubyroidlabs","followers_url":"https://api.github.com/users/rubyroidlabs/followers","following_url":"https://api.github.com/users/rubyroidlabs/following{/other_user}","gists_url":"https://api.github.com/users/rubyroidlabs/gists{/gist_id}","starred_url":"https://api.github.com/users/rubyroidlabs/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rubyroidlabs/subscriptions","organizations_url":"https://api.github.com/users/rubyroidlabs/orgs","repos_url":"https://api.github.com/users/rubyroidlabs/repos","events_url":"https://api.github.com/users/rubyroidlabs/events{/privacy}","received_events_url":"https://api.github.com/users/rubyroidlabs/received_events","type":"Organization","site_admin":false},"repo":{"id":14405320,"name":"bsuir-courses","full_name":"rubyroidlabs/bsuir-courses","owner":{"login":"rubyroidlabs","id":5137565,"avatar_url":"https://avatars.githubusercontent.com/u/5137565?v=3","gravatar_id":"","url":"https://api.github.com/users/rubyroidlabs","html_url":"https://github.com/rubyroidlabs","followers_url":"https://api.github.com/users/rubyroidlabs/followers","following_url":"https://api.github.com/users/rubyroidlabs/following{/other_user}","gists_url":"https://api.github.com/users/rubyroidlabs/gists{/gist_id}","starred_url":"https://api.github.com/users/rubyroidlabs/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rubyroidlabs/subscriptions","organizations_url":"https://api.github.com/users/rubyroidlabs/orgs","repos_url":"https://api.github.com/users/rubyroidlabs/repos","events_url":"https://api.github.com/users/rubyroidlabs/events{/privacy}","received_events_url":"https://api.github.com/users/rubyroidlabs/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/rubyroidlabs/bsuir-courses","description":"This is common repository for all student to submit all their homeworks","fork":false,"url":"https://api.github.com/repos/rubyroidlabs/bsuir-courses","forks_url":"https://api.github.com/repos/rubyroidlabs/bsuir-courses/forks","keys_url":"https://api.github.com/repos/rubyroidlabs/bsuir-courses/keys{/key_id}","collaborators_url":"https://api.github.com/repos/rubyroidlabs/bsuir-courses/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/rubyroidlabs/bsuir-courses/teams","hooks_url":"https://api.github.com/repos/rubyroidlabs/bsuir-courses/hooks","issue_events_url":"https://api.github.com/repos/rubyroidlabs/bsuir-courses/issues/events{/number}","events_url":"https://api.github.com/repos/rubyroidlabs/bsuir-courses/events","assignees_url":"https://api.github.com/repos/rubyroidlabs/bsuir-courses/assignees{/user}","branches_url":"https://api.github.com/repos/rubyroidlabs/bsuir-courses/branches{/branch}","tags_url":"https://api.github.com/repos/rubyroidlabs/bsuir-courses/tags","blobs_url":"https://api.github.com/repos/rubyroidlabs/bsuir-courses/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/rubyroidlabs/bsuir-courses/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/rubyroidlabs/bsuir-courses/git/refs{/sha}","trees_url":"https://api.github.com/repos/rubyroidlabs/bsuir-courses/git/trees{/sha}","statuses_url":"https://api.github.com/repos/rubyroidlabs/bsuir-courses/statuses/{sha}","languages_url":"https://api.github.com/repos/rubyroidlabs/bsuir-courses/languages","stargazers_url":"https://api.github.com/repos/rubyroidlabs/bsuir-courses/stargazers","contributors_url":"https://api.github.com/repos/rubyroidlabs/bsuir-courses/contributors","subscribers_url":"https://api.github.com/repos/rubyroidlabs/bsuir-courses/subscribers","subscription_url":"https://api.github.com/repos/rubyroidlabs/bsuir-courses/subscription","commits_url":"https://api.github.com/repos/rubyroidlabs/bsuir-courses/commits{/sha}","git_commits_url":"https://api.github.com/repos/rubyroidlabs/bsuir-courses/git/commits{/sha}","comments_url":"https://api.github.com/repos/rubyroidlabs/bsuir-courses/comments{/number}","issue_comment_url":"https://api.github.com/repos/rubyroidlabs/bsuir-courses/issues/comments{/number}","contents_url":"https://api.github.com/repos/rubyroidlabs/bsuir-courses/contents/{+path}","compare_url":"https://api.github.com/repos/rubyroidlabs/bsuir-courses/compare/{base}...{head}","merges_url":"https://api.github.com/repos/rubyroidlabs/bsuir-courses/merges","archive_url":"https://api.github.com/repos/rubyroidlabs/bsuir-courses/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/rubyroidlabs/bsuir-courses/downloads","issues_url":"https://api.github.com/repos/rubyroidlabs/bsuir-courses/issues{/number}","pulls_url":"https://api.github.com/repos/rubyroidlabs/bsuir-courses/pulls{/number}","milestones_url":"https://api.github.com/repos/rubyroidlabs/bsuir-courses/milestones{/number}","notifications_url":"https://api.github.com/repos/rubyroidlabs/bsuir-courses/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/rubyroidlabs/bsuir-courses/labels{/name}","releases_url":"https://api.github.com/repos/rubyroidlabs/bsuir-courses/releases{/id}","deployments_url":"https://api.github.com/repos/rubyroidlabs/bsuir-courses/deployments","created_at":"2013-11-14T19:55:12Z","updated_at":"2016-10-18T20:24:26Z","pushed_at":"2016-10-20T13:58:55Z","git_url":"git://github.com/rubyroidlabs/bsuir-courses.git","ssh_url":"git@github.com:rubyroidlabs/bsuir-courses.git","clone_url":"https://github.com/rubyroidlabs/bsuir-courses.git","svn_url":"https://github.com/rubyroidlabs/bsuir-courses","homepage":null,"size":6519,"stargazers_count":26,"watchers_count":26,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":167,"mirror_url":null,"open_issues_count":47,"forks":167,"open_issues":47,"watchers":26,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/rubyroidlabs/bsuir-courses/pulls/464"},"html":{"href":"https://github.com/rubyroidlabs/bsuir-courses/pull/464"},"issue":{"href":"https://api.github.com/repos/rubyroidlabs/bsuir-courses/issues/464"},"comments":{"href":"https://api.github.com/repos/rubyroidlabs/bsuir-courses/issues/464/comments"},"review_comments":{"href":"https://api.github.com/repos/rubyroidlabs/bsuir-courses/pulls/464/comments"},"review_comment":{"href":"https://api.github.com/repos/rubyroidlabs/bsuir-courses/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/rubyroidlabs/bsuir-courses/pulls/464/commits"},"statuses":{"href":"https://api.github.com/repos/rubyroidlabs/bsuir-courses/statuses/45b46be3acac71094c3cc872041db55221ffc0f4"}}}}
{"actor":{"display_login":"houndci-bot"}}