{"action":"created","comment":{"url":"https://api.github.com/repos/gvoz/flashcards/pulls/comments/79039068","id":79039068,"diff_hunk":"@@ -17,60 +17,12 @@ def original_and_translated_text_not_equal\n     end\n   end\n \n-  def check_translation?(user_text)\n-    comparing_strings(user_text, original_text)\n-  end\n-\n-  def search_misprint(user_text)\n-    DamerauLevenshtein.distance(user_text.strip.mb_chars.downcase, original_text.mb_chars.downcase)\n-  end\n-\n-  def calculation_review_interval(review_interval, type, up = 1)\n-    if up == 1\n-      type.zero? ? 5 * review_interval + 0.5 : 2 * review_interval + 1\n-    else\n-      type.zero? ? (review_interval - 0.5) / 5 : (review_interval - 1) / 2\n-    end\n-  end\n-\n-  def increase_review_interval\n-    type =\n-      if review_interval.zero? || review_interval == 0.5\n-        0\n-      elsif review_interval != 31\n-        1\n-      end\n-    update_columns(review_interval: calculation_review_interval(review_interval, type)) if type\n-    change_review_date(review_interval)\n-  end\n-\n-  def decrease_review_interval\n-    type =\n-      if review_interval == 3 || review_interval == 0.5\n-        0\n-      elsif review_interval.nonzero?\n-        1\n-      end\n-    update_columns(review_interval: calculation_review_interval(review_interval, type, 0)) if type\n-    change_review_date(review_interval)\n-  end\n-\n-  def correct_translation\n-    update_columns(number_of_mistakes: 0)\n-    increase_review_interval\n-  end\n-\n-  def incorrect_translation\n-    if number_of_mistakes == 3\n-      update_columns(number_of_mistakes: 0)\n-      decrease_review_interval\n-    else\n-      update_columns(number_of_mistakes: number_of_mistakes + 1)\n-    end\n-  end\n-\n-  def change_review_date(review_interval = 3)\n-    update_columns(review_date: review_interval.days.from_now)\n+  def change_review_date(repeat, efactor, interval)\n+    update_columns(\n+      review_date: interval.days.from_now,\n+      review_interval: interval,\n+      repeat: repeat,\n+      efactor: efactor)","path":"app/models/card.rb","position":63,"original_position":63,"commit_id":"8df33fb1719d0eed249b23691db5519ea94aeb54","original_commit_id":"8df33fb1719d0eed249b23691db5519ea94aeb54","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":"Closing method call brace must be on the line after the last argument when opening brace is on a separate line from the first argument.","created_at":"2016-09-15T19:08:13Z","updated_at":"2016-09-15T19:08:13Z","html_url":"https://github.com/gvoz/flashcards/pull/18#discussion_r79039068","pull_request_url":"https://api.github.com/repos/gvoz/flashcards/pulls/18","_links":{"self":{"href":"https://api.github.com/repos/gvoz/flashcards/pulls/comments/79039068"},"html":{"href":"https://github.com/gvoz/flashcards/pull/18#discussion_r79039068"},"pull_request":{"href":"https://api.github.com/repos/gvoz/flashcards/pulls/18"}}},"pull_request":{"url":"https://api.github.com/repos/gvoz/flashcards/pulls/18","id":85461866,"html_url":"https://github.com/gvoz/flashcards/pull/18","diff_url":"https://github.com/gvoz/flashcards/pull/18.diff","patch_url":"https://github.com/gvoz/flashcards/pull/18.patch","issue_url":"https://api.github.com/repos/gvoz/flashcards/issues/18","number":18,"state":"open","locked":false,"title":"Seventeen task","user":{"login":"gvoz","id":21123134,"avatar_url":"https://avatars.githubusercontent.com/u/21123134?v=3","gravatar_id":"","url":"https://api.github.com/users/gvoz","html_url":"https://github.com/gvoz","followers_url":"https://api.github.com/users/gvoz/followers","following_url":"https://api.github.com/users/gvoz/following{/other_user}","gists_url":"https://api.github.com/users/gvoz/gists{/gist_id}","starred_url":"https://api.github.com/users/gvoz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gvoz/subscriptions","organizations_url":"https://api.github.com/users/gvoz/orgs","repos_url":"https://api.github.com/users/gvoz/repos","events_url":"https://api.github.com/users/gvoz/events{/privacy}","received_events_url":"https://api.github.com/users/gvoz/received_events","type":"User","site_admin":false},"body":"","created_at":"2016-09-15T19:07:59Z","updated_at":"2016-09-15T19:08:13Z","closed_at":null,"merged_at":null,"merge_commit_sha":"9e8d717753a674321cd91afa60a2c2e6bd5ce9ca","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/gvoz/flashcards/pulls/18/commits","review_comments_url":"https://api.github.com/repos/gvoz/flashcards/pulls/18/comments","review_comment_url":"https://api.github.com/repos/gvoz/flashcards/pulls/comments{/number}","comments_url":"https://api.github.com/repos/gvoz/flashcards/issues/18/comments","statuses_url":"https://api.github.com/repos/gvoz/flashcards/statuses/8df33fb1719d0eed249b23691db5519ea94aeb54","head":{"label":"gvoz:seventeen-task","ref":"seventeen-task","sha":"8df33fb1719d0eed249b23691db5519ea94aeb54","user":{"login":"gvoz","id":21123134,"avatar_url":"https://avatars.githubusercontent.com/u/21123134?v=3","gravatar_id":"","url":"https://api.github.com/users/gvoz","html_url":"https://github.com/gvoz","followers_url":"https://api.github.com/users/gvoz/followers","following_url":"https://api.github.com/users/gvoz/following{/other_user}","gists_url":"https://api.github.com/users/gvoz/gists{/gist_id}","starred_url":"https://api.github.com/users/gvoz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gvoz/subscriptions","organizations_url":"https://api.github.com/users/gvoz/orgs","repos_url":"https://api.github.com/users/gvoz/repos","events_url":"https://api.github.com/users/gvoz/events{/privacy}","received_events_url":"https://api.github.com/users/gvoz/received_events","type":"User","site_admin":false},"repo":{"id":66264501,"name":"flashcards","full_name":"gvoz/flashcards","owner":{"login":"gvoz","id":21123134,"avatar_url":"https://avatars.githubusercontent.com/u/21123134?v=3","gravatar_id":"","url":"https://api.github.com/users/gvoz","html_url":"https://github.com/gvoz","followers_url":"https://api.github.com/users/gvoz/followers","following_url":"https://api.github.com/users/gvoz/following{/other_user}","gists_url":"https://api.github.com/users/gvoz/gists{/gist_id}","starred_url":"https://api.github.com/users/gvoz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gvoz/subscriptions","organizations_url":"https://api.github.com/users/gvoz/orgs","repos_url":"https://api.github.com/users/gvoz/repos","events_url":"https://api.github.com/users/gvoz/events{/privacy}","received_events_url":"https://api.github.com/users/gvoz/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/gvoz/flashcards","description":null,"fork":false,"url":"https://api.github.com/repos/gvoz/flashcards","forks_url":"https://api.github.com/repos/gvoz/flashcards/forks","keys_url":"https://api.github.com/repos/gvoz/flashcards/keys{/key_id}","collaborators_url":"https://api.github.com/repos/gvoz/flashcards/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/gvoz/flashcards/teams","hooks_url":"https://api.github.com/repos/gvoz/flashcards/hooks","issue_events_url":"https://api.github.com/repos/gvoz/flashcards/issues/events{/number}","events_url":"https://api.github.com/repos/gvoz/flashcards/events","assignees_url":"https://api.github.com/repos/gvoz/flashcards/assignees{/user}","branches_url":"https://api.github.com/repos/gvoz/flashcards/branches{/branch}","tags_url":"https://api.github.com/repos/gvoz/flashcards/tags","blobs_url":"https://api.github.com/repos/gvoz/flashcards/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/gvoz/flashcards/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/gvoz/flashcards/git/refs{/sha}","trees_url":"https://api.github.com/repos/gvoz/flashcards/git/trees{/sha}","statuses_url":"https://api.github.com/repos/gvoz/flashcards/statuses/{sha}","languages_url":"https://api.github.com/repos/gvoz/flashcards/languages","stargazers_url":"https://api.github.com/repos/gvoz/flashcards/stargazers","contributors_url":"https://api.github.com/repos/gvoz/flashcards/contributors","subscribers_url":"https://api.github.com/repos/gvoz/flashcards/subscribers","subscription_url":"https://api.github.com/repos/gvoz/flashcards/subscription","commits_url":"https://api.github.com/repos/gvoz/flashcards/commits{/sha}","git_commits_url":"https://api.github.com/repos/gvoz/flashcards/git/commits{/sha}","comments_url":"https://api.github.com/repos/gvoz/flashcards/comments{/number}","issue_comment_url":"https://api.github.com/repos/gvoz/flashcards/issues/comments{/number}","contents_url":"https://api.github.com/repos/gvoz/flashcards/contents/{+path}","compare_url":"https://api.github.com/repos/gvoz/flashcards/compare/{base}...{head}","merges_url":"https://api.github.com/repos/gvoz/flashcards/merges","archive_url":"https://api.github.com/repos/gvoz/flashcards/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/gvoz/flashcards/downloads","issues_url":"https://api.github.com/repos/gvoz/flashcards/issues{/number}","pulls_url":"https://api.github.com/repos/gvoz/flashcards/pulls{/number}","milestones_url":"https://api.github.com/repos/gvoz/flashcards/milestones{/number}","notifications_url":"https://api.github.com/repos/gvoz/flashcards/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/gvoz/flashcards/labels{/name}","releases_url":"https://api.github.com/repos/gvoz/flashcards/releases{/id}","deployments_url":"https://api.github.com/repos/gvoz/flashcards/deployments","created_at":"2016-08-22T10:48:58Z","updated_at":"2016-08-22T11:00:34Z","pushed_at":"2016-09-15T19:08:00Z","git_url":"git://github.com/gvoz/flashcards.git","ssh_url":"git@github.com:gvoz/flashcards.git","clone_url":"https://github.com/gvoz/flashcards.git","svn_url":"https://github.com/gvoz/flashcards","homepage":null,"size":280,"stargazers_count":0,"watchers_count":0,"language":"Ruby","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":"gvoz:master","ref":"master","sha":"6385e73f1097f02a12b328387d2ee7d68835fa4c","user":{"login":"gvoz","id":21123134,"avatar_url":"https://avatars.githubusercontent.com/u/21123134?v=3","gravatar_id":"","url":"https://api.github.com/users/gvoz","html_url":"https://github.com/gvoz","followers_url":"https://api.github.com/users/gvoz/followers","following_url":"https://api.github.com/users/gvoz/following{/other_user}","gists_url":"https://api.github.com/users/gvoz/gists{/gist_id}","starred_url":"https://api.github.com/users/gvoz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gvoz/subscriptions","organizations_url":"https://api.github.com/users/gvoz/orgs","repos_url":"https://api.github.com/users/gvoz/repos","events_url":"https://api.github.com/users/gvoz/events{/privacy}","received_events_url":"https://api.github.com/users/gvoz/received_events","type":"User","site_admin":false},"repo":{"id":66264501,"name":"flashcards","full_name":"gvoz/flashcards","owner":{"login":"gvoz","id":21123134,"avatar_url":"https://avatars.githubusercontent.com/u/21123134?v=3","gravatar_id":"","url":"https://api.github.com/users/gvoz","html_url":"https://github.com/gvoz","followers_url":"https://api.github.com/users/gvoz/followers","following_url":"https://api.github.com/users/gvoz/following{/other_user}","gists_url":"https://api.github.com/users/gvoz/gists{/gist_id}","starred_url":"https://api.github.com/users/gvoz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gvoz/subscriptions","organizations_url":"https://api.github.com/users/gvoz/orgs","repos_url":"https://api.github.com/users/gvoz/repos","events_url":"https://api.github.com/users/gvoz/events{/privacy}","received_events_url":"https://api.github.com/users/gvoz/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/gvoz/flashcards","description":null,"fork":false,"url":"https://api.github.com/repos/gvoz/flashcards","forks_url":"https://api.github.com/repos/gvoz/flashcards/forks","keys_url":"https://api.github.com/repos/gvoz/flashcards/keys{/key_id}","collaborators_url":"https://api.github.com/repos/gvoz/flashcards/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/gvoz/flashcards/teams","hooks_url":"https://api.github.com/repos/gvoz/flashcards/hooks","issue_events_url":"https://api.github.com/repos/gvoz/flashcards/issues/events{/number}","events_url":"https://api.github.com/repos/gvoz/flashcards/events","assignees_url":"https://api.github.com/repos/gvoz/flashcards/assignees{/user}","branches_url":"https://api.github.com/repos/gvoz/flashcards/branches{/branch}","tags_url":"https://api.github.com/repos/gvoz/flashcards/tags","blobs_url":"https://api.github.com/repos/gvoz/flashcards/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/gvoz/flashcards/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/gvoz/flashcards/git/refs{/sha}","trees_url":"https://api.github.com/repos/gvoz/flashcards/git/trees{/sha}","statuses_url":"https://api.github.com/repos/gvoz/flashcards/statuses/{sha}","languages_url":"https://api.github.com/repos/gvoz/flashcards/languages","stargazers_url":"https://api.github.com/repos/gvoz/flashcards/stargazers","contributors_url":"https://api.github.com/repos/gvoz/flashcards/contributors","subscribers_url":"https://api.github.com/repos/gvoz/flashcards/subscribers","subscription_url":"https://api.github.com/repos/gvoz/flashcards/subscription","commits_url":"https://api.github.com/repos/gvoz/flashcards/commits{/sha}","git_commits_url":"https://api.github.com/repos/gvoz/flashcards/git/commits{/sha}","comments_url":"https://api.github.com/repos/gvoz/flashcards/comments{/number}","issue_comment_url":"https://api.github.com/repos/gvoz/flashcards/issues/comments{/number}","contents_url":"https://api.github.com/repos/gvoz/flashcards/contents/{+path}","compare_url":"https://api.github.com/repos/gvoz/flashcards/compare/{base}...{head}","merges_url":"https://api.github.com/repos/gvoz/flashcards/merges","archive_url":"https://api.github.com/repos/gvoz/flashcards/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/gvoz/flashcards/downloads","issues_url":"https://api.github.com/repos/gvoz/flashcards/issues{/number}","pulls_url":"https://api.github.com/repos/gvoz/flashcards/pulls{/number}","milestones_url":"https://api.github.com/repos/gvoz/flashcards/milestones{/number}","notifications_url":"https://api.github.com/repos/gvoz/flashcards/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/gvoz/flashcards/labels{/name}","releases_url":"https://api.github.com/repos/gvoz/flashcards/releases{/id}","deployments_url":"https://api.github.com/repos/gvoz/flashcards/deployments","created_at":"2016-08-22T10:48:58Z","updated_at":"2016-08-22T11:00:34Z","pushed_at":"2016-09-15T19:08:00Z","git_url":"git://github.com/gvoz/flashcards.git","ssh_url":"git@github.com:gvoz/flashcards.git","clone_url":"https://github.com/gvoz/flashcards.git","svn_url":"https://github.com/gvoz/flashcards","homepage":null,"size":280,"stargazers_count":0,"watchers_count":0,"language":"Ruby","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/gvoz/flashcards/pulls/18"},"html":{"href":"https://github.com/gvoz/flashcards/pull/18"},"issue":{"href":"https://api.github.com/repos/gvoz/flashcards/issues/18"},"comments":{"href":"https://api.github.com/repos/gvoz/flashcards/issues/18/comments"},"review_comments":{"href":"https://api.github.com/repos/gvoz/flashcards/pulls/18/comments"},"review_comment":{"href":"https://api.github.com/repos/gvoz/flashcards/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/gvoz/flashcards/pulls/18/commits"},"statuses":{"href":"https://api.github.com/repos/gvoz/flashcards/statuses/8df33fb1719d0eed249b23691db5519ea94aeb54"}}}}
{"actor":{"display_login":"houndci-bot"}}