{"action":"created","comment":{"url":"https://api.github.com/repos/NoPos/flash_card_manager/pulls/comments/28648030","id":28648030,"diff_hunk":"@@ -11,21 +11,55 @@ class Card < ActiveRecord::Base\n   validates :original_text, :translated_text, :deck_id, presence: true\n   validate :original_and_translated_not_equal\n \n-  before_create :set_review_date\n+  before_create :set_default_attributes\n \n   def check_translation(translation)\n     if translated_text == translation\n-      update_attribute(:review_date, Time.now + 3.days)\n-      return true\n+      translation_is_correct\n     else\n-      return false\n+      translation_is_incorrect\n     end\n   end\n \n   private\n \n-  def set_review_date\n+  def translation_is_correct","path":"app/models/card.rb","position":21,"original_position":21,"commit_id":"48c8593ccf8c28430290cb6aa2de19d65cfa01bb","original_commit_id":"48c8593ccf8c28430290cb6aa2de19d65cfa01bb","user":{"login":"houndci","id":6697940,"avatar_url":"https://avatars.githubusercontent.com/u/6697940?v=3","gravatar_id":"","url":"https://api.github.com/users/houndci","html_url":"https://github.com/houndci","followers_url":"https://api.github.com/users/houndci/followers","following_url":"https://api.github.com/users/houndci/following{/other_user}","gists_url":"https://api.github.com/users/houndci/gists{/gist_id}","starred_url":"https://api.github.com/users/houndci/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/houndci/subscriptions","organizations_url":"https://api.github.com/users/houndci/orgs","repos_url":"https://api.github.com/users/houndci/repos","events_url":"https://api.github.com/users/houndci/events{/privacy}","received_events_url":"https://api.github.com/users/houndci/received_events","type":"User","site_admin":false},"body":"Assignment Branch Condition size for translation_is_correct is too high. [26.68/15]","created_at":"2015-04-18T22:20:16Z","updated_at":"2015-04-18T22:20:16Z","html_url":"https://github.com/NoPos/flash_card_manager/pull/13#discussion_r28648030","pull_request_url":"https://api.github.com/repos/NoPos/flash_card_manager/pulls/13","_links":{"self":{"href":"https://api.github.com/repos/NoPos/flash_card_manager/pulls/comments/28648030"},"html":{"href":"https://github.com/NoPos/flash_card_manager/pull/13#discussion_r28648030"},"pull_request":{"href":"https://api.github.com/repos/NoPos/flash_card_manager/pulls/13"}}},"pull_request":{"url":"https://api.github.com/repos/NoPos/flash_card_manager/pulls/13","id":33127688,"html_url":"https://github.com/NoPos/flash_card_manager/pull/13","diff_url":"https://github.com/NoPos/flash_card_manager/pull/13.diff","patch_url":"https://github.com/NoPos/flash_card_manager/pull/13.patch","issue_url":"https://api.github.com/repos/NoPos/flash_card_manager/issues/13","number":13,"state":"open","locked":false,"title":"Leitner system","user":{"login":"NoPos","id":4097112,"avatar_url":"https://avatars.githubusercontent.com/u/4097112?v=3","gravatar_id":"","url":"https://api.github.com/users/NoPos","html_url":"https://github.com/NoPos","followers_url":"https://api.github.com/users/NoPos/followers","following_url":"https://api.github.com/users/NoPos/following{/other_user}","gists_url":"https://api.github.com/users/NoPos/gists{/gist_id}","starred_url":"https://api.github.com/users/NoPos/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/NoPos/subscriptions","organizations_url":"https://api.github.com/users/NoPos/orgs","repos_url":"https://api.github.com/users/NoPos/repos","events_url":"https://api.github.com/users/NoPos/events{/privacy}","received_events_url":"https://api.github.com/users/NoPos/received_events","type":"User","site_admin":false},"body":"","created_at":"2015-04-12T22:22:28Z","updated_at":"2015-04-18T22:20:16Z","closed_at":null,"merged_at":null,"merge_commit_sha":"b375bf164e39390e9295bb24b53582bfebca7ea9","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/NoPos/flash_card_manager/pulls/13/commits","review_comments_url":"https://api.github.com/repos/NoPos/flash_card_manager/pulls/13/comments","review_comment_url":"https://api.github.com/repos/NoPos/flash_card_manager/pulls/comments{/number}","comments_url":"https://api.github.com/repos/NoPos/flash_card_manager/issues/13/comments","statuses_url":"https://api.github.com/repos/NoPos/flash_card_manager/statuses/48c8593ccf8c28430290cb6aa2de19d65cfa01bb","head":{"label":"NoPos:leitner_system","ref":"leitner_system","sha":"48c8593ccf8c28430290cb6aa2de19d65cfa01bb","user":{"login":"NoPos","id":4097112,"avatar_url":"https://avatars.githubusercontent.com/u/4097112?v=3","gravatar_id":"","url":"https://api.github.com/users/NoPos","html_url":"https://github.com/NoPos","followers_url":"https://api.github.com/users/NoPos/followers","following_url":"https://api.github.com/users/NoPos/following{/other_user}","gists_url":"https://api.github.com/users/NoPos/gists{/gist_id}","starred_url":"https://api.github.com/users/NoPos/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/NoPos/subscriptions","organizations_url":"https://api.github.com/users/NoPos/orgs","repos_url":"https://api.github.com/users/NoPos/repos","events_url":"https://api.github.com/users/NoPos/events{/privacy}","received_events_url":"https://api.github.com/users/NoPos/received_events","type":"User","site_admin":false},"repo":{"id":26673871,"name":"flash_card_manager","full_name":"NoPos/flash_card_manager","owner":{"login":"NoPos","id":4097112,"avatar_url":"https://avatars.githubusercontent.com/u/4097112?v=3","gravatar_id":"","url":"https://api.github.com/users/NoPos","html_url":"https://github.com/NoPos","followers_url":"https://api.github.com/users/NoPos/followers","following_url":"https://api.github.com/users/NoPos/following{/other_user}","gists_url":"https://api.github.com/users/NoPos/gists{/gist_id}","starred_url":"https://api.github.com/users/NoPos/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/NoPos/subscriptions","organizations_url":"https://api.github.com/users/NoPos/orgs","repos_url":"https://api.github.com/users/NoPos/repos","events_url":"https://api.github.com/users/NoPos/events{/privacy}","received_events_url":"https://api.github.com/users/NoPos/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/NoPos/flash_card_manager","description":"","fork":false,"url":"https://api.github.com/repos/NoPos/flash_card_manager","forks_url":"https://api.github.com/repos/NoPos/flash_card_manager/forks","keys_url":"https://api.github.com/repos/NoPos/flash_card_manager/keys{/key_id}","collaborators_url":"https://api.github.com/repos/NoPos/flash_card_manager/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/NoPos/flash_card_manager/teams","hooks_url":"https://api.github.com/repos/NoPos/flash_card_manager/hooks","issue_events_url":"https://api.github.com/repos/NoPos/flash_card_manager/issues/events{/number}","events_url":"https://api.github.com/repos/NoPos/flash_card_manager/events","assignees_url":"https://api.github.com/repos/NoPos/flash_card_manager/assignees{/user}","branches_url":"https://api.github.com/repos/NoPos/flash_card_manager/branches{/branch}","tags_url":"https://api.github.com/repos/NoPos/flash_card_manager/tags","blobs_url":"https://api.github.com/repos/NoPos/flash_card_manager/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/NoPos/flash_card_manager/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/NoPos/flash_card_manager/git/refs{/sha}","trees_url":"https://api.github.com/repos/NoPos/flash_card_manager/git/trees{/sha}","statuses_url":"https://api.github.com/repos/NoPos/flash_card_manager/statuses/{sha}","languages_url":"https://api.github.com/repos/NoPos/flash_card_manager/languages","stargazers_url":"https://api.github.com/repos/NoPos/flash_card_manager/stargazers","contributors_url":"https://api.github.com/repos/NoPos/flash_card_manager/contributors","subscribers_url":"https://api.github.com/repos/NoPos/flash_card_manager/subscribers","subscription_url":"https://api.github.com/repos/NoPos/flash_card_manager/subscription","commits_url":"https://api.github.com/repos/NoPos/flash_card_manager/commits{/sha}","git_commits_url":"https://api.github.com/repos/NoPos/flash_card_manager/git/commits{/sha}","comments_url":"https://api.github.com/repos/NoPos/flash_card_manager/comments{/number}","issue_comment_url":"https://api.github.com/repos/NoPos/flash_card_manager/issues/comments{/number}","contents_url":"https://api.github.com/repos/NoPos/flash_card_manager/contents/{+path}","compare_url":"https://api.github.com/repos/NoPos/flash_card_manager/compare/{base}...{head}","merges_url":"https://api.github.com/repos/NoPos/flash_card_manager/merges","archive_url":"https://api.github.com/repos/NoPos/flash_card_manager/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/NoPos/flash_card_manager/downloads","issues_url":"https://api.github.com/repos/NoPos/flash_card_manager/issues{/number}","pulls_url":"https://api.github.com/repos/NoPos/flash_card_manager/pulls{/number}","milestones_url":"https://api.github.com/repos/NoPos/flash_card_manager/milestones{/number}","notifications_url":"https://api.github.com/repos/NoPos/flash_card_manager/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/NoPos/flash_card_manager/labels{/name}","releases_url":"https://api.github.com/repos/NoPos/flash_card_manager/releases{/id}","created_at":"2014-11-15T08:19:19Z","updated_at":"2015-03-27T12:04:24Z","pushed_at":"2015-04-18T22:20:10Z","git_url":"git://github.com/NoPos/flash_card_manager.git","ssh_url":"git@github.com:NoPos/flash_card_manager.git","clone_url":"https://github.com/NoPos/flash_card_manager.git","svn_url":"https://github.com/NoPos/flash_card_manager","homepage":null,"size":892,"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":"NoPos:master","ref":"master","sha":"abd9629187a07fb184473d48432aba719add7473","user":{"login":"NoPos","id":4097112,"avatar_url":"https://avatars.githubusercontent.com/u/4097112?v=3","gravatar_id":"","url":"https://api.github.com/users/NoPos","html_url":"https://github.com/NoPos","followers_url":"https://api.github.com/users/NoPos/followers","following_url":"https://api.github.com/users/NoPos/following{/other_user}","gists_url":"https://api.github.com/users/NoPos/gists{/gist_id}","starred_url":"https://api.github.com/users/NoPos/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/NoPos/subscriptions","organizations_url":"https://api.github.com/users/NoPos/orgs","repos_url":"https://api.github.com/users/NoPos/repos","events_url":"https://api.github.com/users/NoPos/events{/privacy}","received_events_url":"https://api.github.com/users/NoPos/received_events","type":"User","site_admin":false},"repo":{"id":26673871,"name":"flash_card_manager","full_name":"NoPos/flash_card_manager","owner":{"login":"NoPos","id":4097112,"avatar_url":"https://avatars.githubusercontent.com/u/4097112?v=3","gravatar_id":"","url":"https://api.github.com/users/NoPos","html_url":"https://github.com/NoPos","followers_url":"https://api.github.com/users/NoPos/followers","following_url":"https://api.github.com/users/NoPos/following{/other_user}","gists_url":"https://api.github.com/users/NoPos/gists{/gist_id}","starred_url":"https://api.github.com/users/NoPos/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/NoPos/subscriptions","organizations_url":"https://api.github.com/users/NoPos/orgs","repos_url":"https://api.github.com/users/NoPos/repos","events_url":"https://api.github.com/users/NoPos/events{/privacy}","received_events_url":"https://api.github.com/users/NoPos/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/NoPos/flash_card_manager","description":"","fork":false,"url":"https://api.github.com/repos/NoPos/flash_card_manager","forks_url":"https://api.github.com/repos/NoPos/flash_card_manager/forks","keys_url":"https://api.github.com/repos/NoPos/flash_card_manager/keys{/key_id}","collaborators_url":"https://api.github.com/repos/NoPos/flash_card_manager/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/NoPos/flash_card_manager/teams","hooks_url":"https://api.github.com/repos/NoPos/flash_card_manager/hooks","issue_events_url":"https://api.github.com/repos/NoPos/flash_card_manager/issues/events{/number}","events_url":"https://api.github.com/repos/NoPos/flash_card_manager/events","assignees_url":"https://api.github.com/repos/NoPos/flash_card_manager/assignees{/user}","branches_url":"https://api.github.com/repos/NoPos/flash_card_manager/branches{/branch}","tags_url":"https://api.github.com/repos/NoPos/flash_card_manager/tags","blobs_url":"https://api.github.com/repos/NoPos/flash_card_manager/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/NoPos/flash_card_manager/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/NoPos/flash_card_manager/git/refs{/sha}","trees_url":"https://api.github.com/repos/NoPos/flash_card_manager/git/trees{/sha}","statuses_url":"https://api.github.com/repos/NoPos/flash_card_manager/statuses/{sha}","languages_url":"https://api.github.com/repos/NoPos/flash_card_manager/languages","stargazers_url":"https://api.github.com/repos/NoPos/flash_card_manager/stargazers","contributors_url":"https://api.github.com/repos/NoPos/flash_card_manager/contributors","subscribers_url":"https://api.github.com/repos/NoPos/flash_card_manager/subscribers","subscription_url":"https://api.github.com/repos/NoPos/flash_card_manager/subscription","commits_url":"https://api.github.com/repos/NoPos/flash_card_manager/commits{/sha}","git_commits_url":"https://api.github.com/repos/NoPos/flash_card_manager/git/commits{/sha}","comments_url":"https://api.github.com/repos/NoPos/flash_card_manager/comments{/number}","issue_comment_url":"https://api.github.com/repos/NoPos/flash_card_manager/issues/comments{/number}","contents_url":"https://api.github.com/repos/NoPos/flash_card_manager/contents/{+path}","compare_url":"https://api.github.com/repos/NoPos/flash_card_manager/compare/{base}...{head}","merges_url":"https://api.github.com/repos/NoPos/flash_card_manager/merges","archive_url":"https://api.github.com/repos/NoPos/flash_card_manager/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/NoPos/flash_card_manager/downloads","issues_url":"https://api.github.com/repos/NoPos/flash_card_manager/issues{/number}","pulls_url":"https://api.github.com/repos/NoPos/flash_card_manager/pulls{/number}","milestones_url":"https://api.github.com/repos/NoPos/flash_card_manager/milestones{/number}","notifications_url":"https://api.github.com/repos/NoPos/flash_card_manager/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/NoPos/flash_card_manager/labels{/name}","releases_url":"https://api.github.com/repos/NoPos/flash_card_manager/releases{/id}","created_at":"2014-11-15T08:19:19Z","updated_at":"2015-03-27T12:04:24Z","pushed_at":"2015-04-18T22:20:10Z","git_url":"git://github.com/NoPos/flash_card_manager.git","ssh_url":"git@github.com:NoPos/flash_card_manager.git","clone_url":"https://github.com/NoPos/flash_card_manager.git","svn_url":"https://github.com/NoPos/flash_card_manager","homepage":null,"size":892,"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/NoPos/flash_card_manager/pulls/13"},"html":{"href":"https://github.com/NoPos/flash_card_manager/pull/13"},"issue":{"href":"https://api.github.com/repos/NoPos/flash_card_manager/issues/13"},"comments":{"href":"https://api.github.com/repos/NoPos/flash_card_manager/issues/13/comments"},"review_comments":{"href":"https://api.github.com/repos/NoPos/flash_card_manager/pulls/13/comments"},"review_comment":{"href":"https://api.github.com/repos/NoPos/flash_card_manager/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/NoPos/flash_card_manager/pulls/13/commits"},"statuses":{"href":"https://api.github.com/repos/NoPos/flash_card_manager/statuses/48c8593ccf8c28430290cb6aa2de19d65cfa01bb"}}}}