{"action":"created","comment":{"url":"https://api.github.com/repos/KenuskeIzumi/make_training_data_ver2_app/pulls/comments/42849521","id":42849521,"diff_hunk":"@@ -0,0 +1,79 @@\n+class BoxEvaluationsController < ApplicationController\n+  NUMBER_OF_USERS_NEED_TO_DECISION = 1\n+  def index\n+    prepared_images = PreparedImage.unevaluated\n+\n+    prepared_images.each do |prepared_image|\n+      if !prepared_image.evaluated_by?(current_user)\n+        @prepared_image = prepared_image\n+        break\n+      end","path":"app/controllers/box_evaluations_controller.rb","position":10,"original_position":10,"commit_id":"6060a5d4a58651bcfec1ba6ddf1587edc5ff2f32","original_commit_id":"6060a5d4a58651bcfec1ba6ddf1587edc5ff2f32","user":{"login":"chrisfinc","id":10881380,"avatar_url":"https://avatars.githubusercontent.com/u/10881380?v=3","gravatar_id":"","url":"https://api.github.com/users/chrisfinc","html_url":"https://github.com/chrisfinc","followers_url":"https://api.github.com/users/chrisfinc/followers","following_url":"https://api.github.com/users/chrisfinc/following{/other_user}","gists_url":"https://api.github.com/users/chrisfinc/gists{/gist_id}","starred_url":"https://api.github.com/users/chrisfinc/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/chrisfinc/subscriptions","organizations_url":"https://api.github.com/users/chrisfinc/orgs","repos_url":"https://api.github.com/users/chrisfinc/repos","events_url":"https://api.github.com/users/chrisfinc/events{/privacy}","received_events_url":"https://api.github.com/users/chrisfinc/received_events","type":"User","site_admin":false},"body":"ここってbreakじゃなくてnextじゃない？\r\n\r\n7~10行目はまとめて、\r\n\r\n```ruby\r\nnext unless prepared_image.evaluated_by?(current_user)\r\n@prepared_image = prepared_image\r\n```\r\n\r\n2行でいける。","created_at":"2015-10-23T10:00:07Z","updated_at":"2015-10-23T10:00:07Z","html_url":"https://github.com/KenuskeIzumi/make_training_data_ver2_app/pull/3#discussion_r42849521","pull_request_url":"https://api.github.com/repos/KenuskeIzumi/make_training_data_ver2_app/pulls/3","_links":{"self":{"href":"https://api.github.com/repos/KenuskeIzumi/make_training_data_ver2_app/pulls/comments/42849521"},"html":{"href":"https://github.com/KenuskeIzumi/make_training_data_ver2_app/pull/3#discussion_r42849521"},"pull_request":{"href":"https://api.github.com/repos/KenuskeIzumi/make_training_data_ver2_app/pulls/3"}}},"pull_request":{"url":"https://api.github.com/repos/KenuskeIzumi/make_training_data_ver2_app/pulls/3","id":47431938,"html_url":"https://github.com/KenuskeIzumi/make_training_data_ver2_app/pull/3","diff_url":"https://github.com/KenuskeIzumi/make_training_data_ver2_app/pull/3.diff","patch_url":"https://github.com/KenuskeIzumi/make_training_data_ver2_app/pull/3.patch","issue_url":"https://api.github.com/repos/KenuskeIzumi/make_training_data_ver2_app/issues/3","number":3,"state":"open","locked":false,"title":"Box evaluate step","user":{"login":"KenuskeIzumi","id":14135575,"avatar_url":"https://avatars.githubusercontent.com/u/14135575?v=3","gravatar_id":"","url":"https://api.github.com/users/KenuskeIzumi","html_url":"https://github.com/KenuskeIzumi","followers_url":"https://api.github.com/users/KenuskeIzumi/followers","following_url":"https://api.github.com/users/KenuskeIzumi/following{/other_user}","gists_url":"https://api.github.com/users/KenuskeIzumi/gists{/gist_id}","starred_url":"https://api.github.com/users/KenuskeIzumi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/KenuskeIzumi/subscriptions","organizations_url":"https://api.github.com/users/KenuskeIzumi/orgs","repos_url":"https://api.github.com/users/KenuskeIzumi/repos","events_url":"https://api.github.com/users/KenuskeIzumi/events{/privacy}","received_events_url":"https://api.github.com/users/KenuskeIzumi/received_events","type":"User","site_admin":false},"body":"矩形評価ステップの実装を行いました。\r\n\r\nreference #2","created_at":"2015-10-12T15:21:33Z","updated_at":"2015-10-23T10:00:07Z","closed_at":null,"merged_at":null,"merge_commit_sha":"de95cf85f0a9dd839755781e694c10e5dc223405","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/KenuskeIzumi/make_training_data_ver2_app/pulls/3/commits","review_comments_url":"https://api.github.com/repos/KenuskeIzumi/make_training_data_ver2_app/pulls/3/comments","review_comment_url":"https://api.github.com/repos/KenuskeIzumi/make_training_data_ver2_app/pulls/comments{/number}","comments_url":"https://api.github.com/repos/KenuskeIzumi/make_training_data_ver2_app/issues/3/comments","statuses_url":"https://api.github.com/repos/KenuskeIzumi/make_training_data_ver2_app/statuses/6060a5d4a58651bcfec1ba6ddf1587edc5ff2f32","head":{"label":"KenuskeIzumi:box_evaluate_step","ref":"box_evaluate_step","sha":"6060a5d4a58651bcfec1ba6ddf1587edc5ff2f32","user":{"login":"KenuskeIzumi","id":14135575,"avatar_url":"https://avatars.githubusercontent.com/u/14135575?v=3","gravatar_id":"","url":"https://api.github.com/users/KenuskeIzumi","html_url":"https://github.com/KenuskeIzumi","followers_url":"https://api.github.com/users/KenuskeIzumi/followers","following_url":"https://api.github.com/users/KenuskeIzumi/following{/other_user}","gists_url":"https://api.github.com/users/KenuskeIzumi/gists{/gist_id}","starred_url":"https://api.github.com/users/KenuskeIzumi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/KenuskeIzumi/subscriptions","organizations_url":"https://api.github.com/users/KenuskeIzumi/orgs","repos_url":"https://api.github.com/users/KenuskeIzumi/repos","events_url":"https://api.github.com/users/KenuskeIzumi/events{/privacy}","received_events_url":"https://api.github.com/users/KenuskeIzumi/received_events","type":"User","site_admin":false},"repo":{"id":43892065,"name":"make_training_data_ver2_app","full_name":"KenuskeIzumi/make_training_data_ver2_app","owner":{"login":"KenuskeIzumi","id":14135575,"avatar_url":"https://avatars.githubusercontent.com/u/14135575?v=3","gravatar_id":"","url":"https://api.github.com/users/KenuskeIzumi","html_url":"https://github.com/KenuskeIzumi","followers_url":"https://api.github.com/users/KenuskeIzumi/followers","following_url":"https://api.github.com/users/KenuskeIzumi/following{/other_user}","gists_url":"https://api.github.com/users/KenuskeIzumi/gists{/gist_id}","starred_url":"https://api.github.com/users/KenuskeIzumi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/KenuskeIzumi/subscriptions","organizations_url":"https://api.github.com/users/KenuskeIzumi/orgs","repos_url":"https://api.github.com/users/KenuskeIzumi/repos","events_url":"https://api.github.com/users/KenuskeIzumi/events{/privacy}","received_events_url":"https://api.github.com/users/KenuskeIzumi/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/KenuskeIzumi/make_training_data_ver2_app","description":"","fork":false,"url":"https://api.github.com/repos/KenuskeIzumi/make_training_data_ver2_app","forks_url":"https://api.github.com/repos/KenuskeIzumi/make_training_data_ver2_app/forks","keys_url":"https://api.github.com/repos/KenuskeIzumi/make_training_data_ver2_app/keys{/key_id}","collaborators_url":"https://api.github.com/repos/KenuskeIzumi/make_training_data_ver2_app/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/KenuskeIzumi/make_training_data_ver2_app/teams","hooks_url":"https://api.github.com/repos/KenuskeIzumi/make_training_data_ver2_app/hooks","issue_events_url":"https://api.github.com/repos/KenuskeIzumi/make_training_data_ver2_app/issues/events{/number}","events_url":"https://api.github.com/repos/KenuskeIzumi/make_training_data_ver2_app/events","assignees_url":"https://api.github.com/repos/KenuskeIzumi/make_training_data_ver2_app/assignees{/user}","branches_url":"https://api.github.com/repos/KenuskeIzumi/make_training_data_ver2_app/branches{/branch}","tags_url":"https://api.github.com/repos/KenuskeIzumi/make_training_data_ver2_app/tags","blobs_url":"https://api.github.com/repos/KenuskeIzumi/make_training_data_ver2_app/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/KenuskeIzumi/make_training_data_ver2_app/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/KenuskeIzumi/make_training_data_ver2_app/git/refs{/sha}","trees_url":"https://api.github.com/repos/KenuskeIzumi/make_training_data_ver2_app/git/trees{/sha}","statuses_url":"https://api.github.com/repos/KenuskeIzumi/make_training_data_ver2_app/statuses/{sha}","languages_url":"https://api.github.com/repos/KenuskeIzumi/make_training_data_ver2_app/languages","stargazers_url":"https://api.github.com/repos/KenuskeIzumi/make_training_data_ver2_app/stargazers","contributors_url":"https://api.github.com/repos/KenuskeIzumi/make_training_data_ver2_app/contributors","subscribers_url":"https://api.github.com/repos/KenuskeIzumi/make_training_data_ver2_app/subscribers","subscription_url":"https://api.github.com/repos/KenuskeIzumi/make_training_data_ver2_app/subscription","commits_url":"https://api.github.com/repos/KenuskeIzumi/make_training_data_ver2_app/commits{/sha}","git_commits_url":"https://api.github.com/repos/KenuskeIzumi/make_training_data_ver2_app/git/commits{/sha}","comments_url":"https://api.github.com/repos/KenuskeIzumi/make_training_data_ver2_app/comments{/number}","issue_comment_url":"https://api.github.com/repos/KenuskeIzumi/make_training_data_ver2_app/issues/comments{/number}","contents_url":"https://api.github.com/repos/KenuskeIzumi/make_training_data_ver2_app/contents/{+path}","compare_url":"https://api.github.com/repos/KenuskeIzumi/make_training_data_ver2_app/compare/{base}...{head}","merges_url":"https://api.github.com/repos/KenuskeIzumi/make_training_data_ver2_app/merges","archive_url":"https://api.github.com/repos/KenuskeIzumi/make_training_data_ver2_app/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/KenuskeIzumi/make_training_data_ver2_app/downloads","issues_url":"https://api.github.com/repos/KenuskeIzumi/make_training_data_ver2_app/issues{/number}","pulls_url":"https://api.github.com/repos/KenuskeIzumi/make_training_data_ver2_app/pulls{/number}","milestones_url":"https://api.github.com/repos/KenuskeIzumi/make_training_data_ver2_app/milestones{/number}","notifications_url":"https://api.github.com/repos/KenuskeIzumi/make_training_data_ver2_app/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/KenuskeIzumi/make_training_data_ver2_app/labels{/name}","releases_url":"https://api.github.com/repos/KenuskeIzumi/make_training_data_ver2_app/releases{/id}","created_at":"2015-10-08T13:56:35Z","updated_at":"2015-10-08T13:57:01Z","pushed_at":"2015-10-21T12:21:17Z","git_url":"git://github.com/KenuskeIzumi/make_training_data_ver2_app.git","ssh_url":"git@github.com:KenuskeIzumi/make_training_data_ver2_app.git","clone_url":"https://github.com/KenuskeIzumi/make_training_data_ver2_app.git","svn_url":"https://github.com/KenuskeIzumi/make_training_data_ver2_app","homepage":null,"size":5232,"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":5,"forks":0,"open_issues":5,"watchers":0,"default_branch":"master"}},"base":{"label":"KenuskeIzumi:master","ref":"master","sha":"cfbccf0f86875a0c7eca344a892df9ba8bb3703e","user":{"login":"KenuskeIzumi","id":14135575,"avatar_url":"https://avatars.githubusercontent.com/u/14135575?v=3","gravatar_id":"","url":"https://api.github.com/users/KenuskeIzumi","html_url":"https://github.com/KenuskeIzumi","followers_url":"https://api.github.com/users/KenuskeIzumi/followers","following_url":"https://api.github.com/users/KenuskeIzumi/following{/other_user}","gists_url":"https://api.github.com/users/KenuskeIzumi/gists{/gist_id}","starred_url":"https://api.github.com/users/KenuskeIzumi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/KenuskeIzumi/subscriptions","organizations_url":"https://api.github.com/users/KenuskeIzumi/orgs","repos_url":"https://api.github.com/users/KenuskeIzumi/repos","events_url":"https://api.github.com/users/KenuskeIzumi/events{/privacy}","received_events_url":"https://api.github.com/users/KenuskeIzumi/received_events","type":"User","site_admin":false},"repo":{"id":43892065,"name":"make_training_data_ver2_app","full_name":"KenuskeIzumi/make_training_data_ver2_app","owner":{"login":"KenuskeIzumi","id":14135575,"avatar_url":"https://avatars.githubusercontent.com/u/14135575?v=3","gravatar_id":"","url":"https://api.github.com/users/KenuskeIzumi","html_url":"https://github.com/KenuskeIzumi","followers_url":"https://api.github.com/users/KenuskeIzumi/followers","following_url":"https://api.github.com/users/KenuskeIzumi/following{/other_user}","gists_url":"https://api.github.com/users/KenuskeIzumi/gists{/gist_id}","starred_url":"https://api.github.com/users/KenuskeIzumi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/KenuskeIzumi/subscriptions","organizations_url":"https://api.github.com/users/KenuskeIzumi/orgs","repos_url":"https://api.github.com/users/KenuskeIzumi/repos","events_url":"https://api.github.com/users/KenuskeIzumi/events{/privacy}","received_events_url":"https://api.github.com/users/KenuskeIzumi/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/KenuskeIzumi/make_training_data_ver2_app","description":"","fork":false,"url":"https://api.github.com/repos/KenuskeIzumi/make_training_data_ver2_app","forks_url":"https://api.github.com/repos/KenuskeIzumi/make_training_data_ver2_app/forks","keys_url":"https://api.github.com/repos/KenuskeIzumi/make_training_data_ver2_app/keys{/key_id}","collaborators_url":"https://api.github.com/repos/KenuskeIzumi/make_training_data_ver2_app/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/KenuskeIzumi/make_training_data_ver2_app/teams","hooks_url":"https://api.github.com/repos/KenuskeIzumi/make_training_data_ver2_app/hooks","issue_events_url":"https://api.github.com/repos/KenuskeIzumi/make_training_data_ver2_app/issues/events{/number}","events_url":"https://api.github.com/repos/KenuskeIzumi/make_training_data_ver2_app/events","assignees_url":"https://api.github.com/repos/KenuskeIzumi/make_training_data_ver2_app/assignees{/user}","branches_url":"https://api.github.com/repos/KenuskeIzumi/make_training_data_ver2_app/branches{/branch}","tags_url":"https://api.github.com/repos/KenuskeIzumi/make_training_data_ver2_app/tags","blobs_url":"https://api.github.com/repos/KenuskeIzumi/make_training_data_ver2_app/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/KenuskeIzumi/make_training_data_ver2_app/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/KenuskeIzumi/make_training_data_ver2_app/git/refs{/sha}","trees_url":"https://api.github.com/repos/KenuskeIzumi/make_training_data_ver2_app/git/trees{/sha}","statuses_url":"https://api.github.com/repos/KenuskeIzumi/make_training_data_ver2_app/statuses/{sha}","languages_url":"https://api.github.com/repos/KenuskeIzumi/make_training_data_ver2_app/languages","stargazers_url":"https://api.github.com/repos/KenuskeIzumi/make_training_data_ver2_app/stargazers","contributors_url":"https://api.github.com/repos/KenuskeIzumi/make_training_data_ver2_app/contributors","subscribers_url":"https://api.github.com/repos/KenuskeIzumi/make_training_data_ver2_app/subscribers","subscription_url":"https://api.github.com/repos/KenuskeIzumi/make_training_data_ver2_app/subscription","commits_url":"https://api.github.com/repos/KenuskeIzumi/make_training_data_ver2_app/commits{/sha}","git_commits_url":"https://api.github.com/repos/KenuskeIzumi/make_training_data_ver2_app/git/commits{/sha}","comments_url":"https://api.github.com/repos/KenuskeIzumi/make_training_data_ver2_app/comments{/number}","issue_comment_url":"https://api.github.com/repos/KenuskeIzumi/make_training_data_ver2_app/issues/comments{/number}","contents_url":"https://api.github.com/repos/KenuskeIzumi/make_training_data_ver2_app/contents/{+path}","compare_url":"https://api.github.com/repos/KenuskeIzumi/make_training_data_ver2_app/compare/{base}...{head}","merges_url":"https://api.github.com/repos/KenuskeIzumi/make_training_data_ver2_app/merges","archive_url":"https://api.github.com/repos/KenuskeIzumi/make_training_data_ver2_app/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/KenuskeIzumi/make_training_data_ver2_app/downloads","issues_url":"https://api.github.com/repos/KenuskeIzumi/make_training_data_ver2_app/issues{/number}","pulls_url":"https://api.github.com/repos/KenuskeIzumi/make_training_data_ver2_app/pulls{/number}","milestones_url":"https://api.github.com/repos/KenuskeIzumi/make_training_data_ver2_app/milestones{/number}","notifications_url":"https://api.github.com/repos/KenuskeIzumi/make_training_data_ver2_app/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/KenuskeIzumi/make_training_data_ver2_app/labels{/name}","releases_url":"https://api.github.com/repos/KenuskeIzumi/make_training_data_ver2_app/releases{/id}","created_at":"2015-10-08T13:56:35Z","updated_at":"2015-10-08T13:57:01Z","pushed_at":"2015-10-21T12:21:17Z","git_url":"git://github.com/KenuskeIzumi/make_training_data_ver2_app.git","ssh_url":"git@github.com:KenuskeIzumi/make_training_data_ver2_app.git","clone_url":"https://github.com/KenuskeIzumi/make_training_data_ver2_app.git","svn_url":"https://github.com/KenuskeIzumi/make_training_data_ver2_app","homepage":null,"size":5232,"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":5,"forks":0,"open_issues":5,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/KenuskeIzumi/make_training_data_ver2_app/pulls/3"},"html":{"href":"https://github.com/KenuskeIzumi/make_training_data_ver2_app/pull/3"},"issue":{"href":"https://api.github.com/repos/KenuskeIzumi/make_training_data_ver2_app/issues/3"},"comments":{"href":"https://api.github.com/repos/KenuskeIzumi/make_training_data_ver2_app/issues/3/comments"},"review_comments":{"href":"https://api.github.com/repos/KenuskeIzumi/make_training_data_ver2_app/pulls/3/comments"},"review_comment":{"href":"https://api.github.com/repos/KenuskeIzumi/make_training_data_ver2_app/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/KenuskeIzumi/make_training_data_ver2_app/pulls/3/commits"},"statuses":{"href":"https://api.github.com/repos/KenuskeIzumi/make_training_data_ver2_app/statuses/6060a5d4a58651bcfec1ba6ddf1587edc5ff2f32"}}}}