{"action":"created","comment":{"url":"https://api.github.com/repos/anon0mys/black_thursday/pulls/comments/171326919","pull_request_review_id":100160040,"id":171326919,"diff_hunk":"@@ -48,4 +48,44 @@ def test_golden_items\n     golden_items = @sa.golden_items\n     assert_equal 'Some stuff', golden_items.first.name\n   end\n+\n+  def test_it_finds_invoices_for_each_merchant\n+    assert_equal [2.0, 0.0, 0.0, 1.0], @sa.invoices_for_each_merchant\n+  end\n+\n+  def test_average_invoices_per_merchant\n+    actual = @sa.average_invoices_per_merchant\n+    assert_equal 0.75, actual\n+  end\n+\n+  def test_average_invoices_per_merchant_standard_deviation\n+    actual = @sa.average_invoices_per_merchant_standard_deviation\n+    assert_equal 0.96, actual\n+  end\n+\n+  def test_top_merchants_by_in_count\n+    actual = @sa.top_merchants_by_invoice_count\n+    assert_equal [1, 2, 3], actual\n+  end\n+\n+  def bottom_merchants_by_invoice_count\n+    actual = @sa.top_merchants_by_invoice_count\n+    assert_equal [1, 2, 3], actual\n+  end\n+\n+  def test_top_days_by_invoice_count\n+    actual = @sa.top_days_by_invoice_count\n+    assert_equal [\"Monday\"], actual\n+  end\n+\n+  def test_top_days_returns_appropriate_hash\n+  skip","path":"test/sales_analyst_test.rb","position":35,"original_position":35,"commit_id":"ecae81a38581fef34fee1c8e42526a4bf4f147d0","original_commit_id":"ecae81a38581fef34fee1c8e42526a4bf4f147d0","user":{"login":"houndci-bot","id":6697940,"avatar_url":"https://avatars0.githubusercontent.com/u/6697940?v=4","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":"Use 2 (not 0) spaces for indentation.","created_at":"2018-02-28T17:43:41Z","updated_at":"2018-02-28T17:43:42Z","html_url":"https://github.com/anon0mys/black_thursday/pull/56#discussion_r171326919","pull_request_url":"https://api.github.com/repos/anon0mys/black_thursday/pulls/56","author_association":"NONE","_links":{"self":{"href":"https://api.github.com/repos/anon0mys/black_thursday/pulls/comments/171326919"},"html":{"href":"https://github.com/anon0mys/black_thursday/pull/56#discussion_r171326919"},"pull_request":{"href":"https://api.github.com/repos/anon0mys/black_thursday/pulls/56"}}},"pull_request":{"url":"https://api.github.com/repos/anon0mys/black_thursday/pulls/56","id":172024173,"html_url":"https://github.com/anon0mys/black_thursday/pull/56","diff_url":"https://github.com/anon0mys/black_thursday/pull/56.diff","patch_url":"https://github.com/anon0mys/black_thursday/pull/56.patch","issue_url":"https://api.github.com/repos/anon0mys/black_thursday/issues/56","number":56,"state":"open","locked":false,"title":"Premerge","user":{"login":"EMSwank","id":31110190,"avatar_url":"https://avatars1.githubusercontent.com/u/31110190?v=4","gravatar_id":"","url":"https://api.github.com/users/EMSwank","html_url":"https://github.com/EMSwank","followers_url":"https://api.github.com/users/EMSwank/followers","following_url":"https://api.github.com/users/EMSwank/following{/other_user}","gists_url":"https://api.github.com/users/EMSwank/gists{/gist_id}","starred_url":"https://api.github.com/users/EMSwank/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/EMSwank/subscriptions","organizations_url":"https://api.github.com/users/EMSwank/orgs","repos_url":"https://api.github.com/users/EMSwank/repos","events_url":"https://api.github.com/users/EMSwank/events{/privacy}","received_events_url":"https://api.github.com/users/EMSwank/received_events","type":"User","site_admin":false},"body":"Attempting to merge iter 2 changes into master","created_at":"2018-02-28T17:43:34Z","updated_at":"2018-02-28T17:43:43Z","closed_at":null,"merged_at":null,"merge_commit_sha":null,"assignee":{"login":"EMSwank","id":31110190,"avatar_url":"https://avatars1.githubusercontent.com/u/31110190?v=4","gravatar_id":"","url":"https://api.github.com/users/EMSwank","html_url":"https://github.com/EMSwank","followers_url":"https://api.github.com/users/EMSwank/followers","following_url":"https://api.github.com/users/EMSwank/following{/other_user}","gists_url":"https://api.github.com/users/EMSwank/gists{/gist_id}","starred_url":"https://api.github.com/users/EMSwank/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/EMSwank/subscriptions","organizations_url":"https://api.github.com/users/EMSwank/orgs","repos_url":"https://api.github.com/users/EMSwank/repos","events_url":"https://api.github.com/users/EMSwank/events{/privacy}","received_events_url":"https://api.github.com/users/EMSwank/received_events","type":"User","site_admin":false},"assignees":[{"login":"EMSwank","id":31110190,"avatar_url":"https://avatars1.githubusercontent.com/u/31110190?v=4","gravatar_id":"","url":"https://api.github.com/users/EMSwank","html_url":"https://github.com/EMSwank","followers_url":"https://api.github.com/users/EMSwank/followers","following_url":"https://api.github.com/users/EMSwank/following{/other_user}","gists_url":"https://api.github.com/users/EMSwank/gists{/gist_id}","starred_url":"https://api.github.com/users/EMSwank/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/EMSwank/subscriptions","organizations_url":"https://api.github.com/users/EMSwank/orgs","repos_url":"https://api.github.com/users/EMSwank/repos","events_url":"https://api.github.com/users/EMSwank/events{/privacy}","received_events_url":"https://api.github.com/users/EMSwank/received_events","type":"User","site_admin":false}],"requested_reviewers":[],"requested_teams":[],"labels":[{"id":842513539,"url":"https://api.github.com/repos/anon0mys/black_thursday/labels/in%20progress","name":"in progress","color":"ededed","default":false}],"milestone":null,"commits_url":"https://api.github.com/repos/anon0mys/black_thursday/pulls/56/commits","review_comments_url":"https://api.github.com/repos/anon0mys/black_thursday/pulls/56/comments","review_comment_url":"https://api.github.com/repos/anon0mys/black_thursday/pulls/comments{/number}","comments_url":"https://api.github.com/repos/anon0mys/black_thursday/issues/56/comments","statuses_url":"https://api.github.com/repos/anon0mys/black_thursday/statuses/ecae81a38581fef34fee1c8e42526a4bf4f147d0","head":{"label":"anon0mys:premerge","ref":"premerge","sha":"ecae81a38581fef34fee1c8e42526a4bf4f147d0","user":{"login":"anon0mys","id":34108893,"avatar_url":"https://avatars2.githubusercontent.com/u/34108893?v=4","gravatar_id":"","url":"https://api.github.com/users/anon0mys","html_url":"https://github.com/anon0mys","followers_url":"https://api.github.com/users/anon0mys/followers","following_url":"https://api.github.com/users/anon0mys/following{/other_user}","gists_url":"https://api.github.com/users/anon0mys/gists{/gist_id}","starred_url":"https://api.github.com/users/anon0mys/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/anon0mys/subscriptions","organizations_url":"https://api.github.com/users/anon0mys/orgs","repos_url":"https://api.github.com/users/anon0mys/repos","events_url":"https://api.github.com/users/anon0mys/events{/privacy}","received_events_url":"https://api.github.com/users/anon0mys/received_events","type":"User","site_admin":false},"repo":{"id":121810565,"name":"black_thursday","full_name":"anon0mys/black_thursday","owner":{"login":"anon0mys","id":34108893,"avatar_url":"https://avatars2.githubusercontent.com/u/34108893?v=4","gravatar_id":"","url":"https://api.github.com/users/anon0mys","html_url":"https://github.com/anon0mys","followers_url":"https://api.github.com/users/anon0mys/followers","following_url":"https://api.github.com/users/anon0mys/following{/other_user}","gists_url":"https://api.github.com/users/anon0mys/gists{/gist_id}","starred_url":"https://api.github.com/users/anon0mys/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/anon0mys/subscriptions","organizations_url":"https://api.github.com/users/anon0mys/orgs","repos_url":"https://api.github.com/users/anon0mys/repos","events_url":"https://api.github.com/users/anon0mys/events{/privacy}","received_events_url":"https://api.github.com/users/anon0mys/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/anon0mys/black_thursday","description":null,"fork":true,"url":"https://api.github.com/repos/anon0mys/black_thursday","forks_url":"https://api.github.com/repos/anon0mys/black_thursday/forks","keys_url":"https://api.github.com/repos/anon0mys/black_thursday/keys{/key_id}","collaborators_url":"https://api.github.com/repos/anon0mys/black_thursday/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/anon0mys/black_thursday/teams","hooks_url":"https://api.github.com/repos/anon0mys/black_thursday/hooks","issue_events_url":"https://api.github.com/repos/anon0mys/black_thursday/issues/events{/number}","events_url":"https://api.github.com/repos/anon0mys/black_thursday/events","assignees_url":"https://api.github.com/repos/anon0mys/black_thursday/assignees{/user}","branches_url":"https://api.github.com/repos/anon0mys/black_thursday/branches{/branch}","tags_url":"https://api.github.com/repos/anon0mys/black_thursday/tags","blobs_url":"https://api.github.com/repos/anon0mys/black_thursday/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/anon0mys/black_thursday/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/anon0mys/black_thursday/git/refs{/sha}","trees_url":"https://api.github.com/repos/anon0mys/black_thursday/git/trees{/sha}","statuses_url":"https://api.github.com/repos/anon0mys/black_thursday/statuses/{sha}","languages_url":"https://api.github.com/repos/anon0mys/black_thursday/languages","stargazers_url":"https://api.github.com/repos/anon0mys/black_thursday/stargazers","contributors_url":"https://api.github.com/repos/anon0mys/black_thursday/contributors","subscribers_url":"https://api.github.com/repos/anon0mys/black_thursday/subscribers","subscription_url":"https://api.github.com/repos/anon0mys/black_thursday/subscription","commits_url":"https://api.github.com/repos/anon0mys/black_thursday/commits{/sha}","git_commits_url":"https://api.github.com/repos/anon0mys/black_thursday/git/commits{/sha}","comments_url":"https://api.github.com/repos/anon0mys/black_thursday/comments{/number}","issue_comment_url":"https://api.github.com/repos/anon0mys/black_thursday/issues/comments{/number}","contents_url":"https://api.github.com/repos/anon0mys/black_thursday/contents/{+path}","compare_url":"https://api.github.com/repos/anon0mys/black_thursday/compare/{base}...{head}","merges_url":"https://api.github.com/repos/anon0mys/black_thursday/merges","archive_url":"https://api.github.com/repos/anon0mys/black_thursday/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/anon0mys/black_thursday/downloads","issues_url":"https://api.github.com/repos/anon0mys/black_thursday/issues{/number}","pulls_url":"https://api.github.com/repos/anon0mys/black_thursday/pulls{/number}","milestones_url":"https://api.github.com/repos/anon0mys/black_thursday/milestones{/number}","notifications_url":"https://api.github.com/repos/anon0mys/black_thursday/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/anon0mys/black_thursday/labels{/name}","releases_url":"https://api.github.com/repos/anon0mys/black_thursday/releases{/id}","deployments_url":"https://api.github.com/repos/anon0mys/black_thursday/deployments","created_at":"2018-02-16T23:08:22Z","updated_at":"2018-02-25T06:24:02Z","pushed_at":"2018-02-28T17:43:35Z","git_url":"git://github.com/anon0mys/black_thursday.git","ssh_url":"git@github.com:anon0mys/black_thursday.git","clone_url":"https://github.com/anon0mys/black_thursday.git","svn_url":"https://github.com/anon0mys/black_thursday","homepage":null,"size":1945,"stargazers_count":1,"watchers_count":1,"language":"Ruby","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":6,"license":null,"forks":0,"open_issues":6,"watchers":1,"default_branch":"master"}},"base":{"label":"anon0mys:master","ref":"master","sha":"7a72e13c8f78f1d8aba871ece8776b6ef47315f0","user":{"login":"anon0mys","id":34108893,"avatar_url":"https://avatars2.githubusercontent.com/u/34108893?v=4","gravatar_id":"","url":"https://api.github.com/users/anon0mys","html_url":"https://github.com/anon0mys","followers_url":"https://api.github.com/users/anon0mys/followers","following_url":"https://api.github.com/users/anon0mys/following{/other_user}","gists_url":"https://api.github.com/users/anon0mys/gists{/gist_id}","starred_url":"https://api.github.com/users/anon0mys/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/anon0mys/subscriptions","organizations_url":"https://api.github.com/users/anon0mys/orgs","repos_url":"https://api.github.com/users/anon0mys/repos","events_url":"https://api.github.com/users/anon0mys/events{/privacy}","received_events_url":"https://api.github.com/users/anon0mys/received_events","type":"User","site_admin":false},"repo":{"id":121810565,"name":"black_thursday","full_name":"anon0mys/black_thursday","owner":{"login":"anon0mys","id":34108893,"avatar_url":"https://avatars2.githubusercontent.com/u/34108893?v=4","gravatar_id":"","url":"https://api.github.com/users/anon0mys","html_url":"https://github.com/anon0mys","followers_url":"https://api.github.com/users/anon0mys/followers","following_url":"https://api.github.com/users/anon0mys/following{/other_user}","gists_url":"https://api.github.com/users/anon0mys/gists{/gist_id}","starred_url":"https://api.github.com/users/anon0mys/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/anon0mys/subscriptions","organizations_url":"https://api.github.com/users/anon0mys/orgs","repos_url":"https://api.github.com/users/anon0mys/repos","events_url":"https://api.github.com/users/anon0mys/events{/privacy}","received_events_url":"https://api.github.com/users/anon0mys/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/anon0mys/black_thursday","description":null,"fork":true,"url":"https://api.github.com/repos/anon0mys/black_thursday","forks_url":"https://api.github.com/repos/anon0mys/black_thursday/forks","keys_url":"https://api.github.com/repos/anon0mys/black_thursday/keys{/key_id}","collaborators_url":"https://api.github.com/repos/anon0mys/black_thursday/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/anon0mys/black_thursday/teams","hooks_url":"https://api.github.com/repos/anon0mys/black_thursday/hooks","issue_events_url":"https://api.github.com/repos/anon0mys/black_thursday/issues/events{/number}","events_url":"https://api.github.com/repos/anon0mys/black_thursday/events","assignees_url":"https://api.github.com/repos/anon0mys/black_thursday/assignees{/user}","branches_url":"https://api.github.com/repos/anon0mys/black_thursday/branches{/branch}","tags_url":"https://api.github.com/repos/anon0mys/black_thursday/tags","blobs_url":"https://api.github.com/repos/anon0mys/black_thursday/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/anon0mys/black_thursday/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/anon0mys/black_thursday/git/refs{/sha}","trees_url":"https://api.github.com/repos/anon0mys/black_thursday/git/trees{/sha}","statuses_url":"https://api.github.com/repos/anon0mys/black_thursday/statuses/{sha}","languages_url":"https://api.github.com/repos/anon0mys/black_thursday/languages","stargazers_url":"https://api.github.com/repos/anon0mys/black_thursday/stargazers","contributors_url":"https://api.github.com/repos/anon0mys/black_thursday/contributors","subscribers_url":"https://api.github.com/repos/anon0mys/black_thursday/subscribers","subscription_url":"https://api.github.com/repos/anon0mys/black_thursday/subscription","commits_url":"https://api.github.com/repos/anon0mys/black_thursday/commits{/sha}","git_commits_url":"https://api.github.com/repos/anon0mys/black_thursday/git/commits{/sha}","comments_url":"https://api.github.com/repos/anon0mys/black_thursday/comments{/number}","issue_comment_url":"https://api.github.com/repos/anon0mys/black_thursday/issues/comments{/number}","contents_url":"https://api.github.com/repos/anon0mys/black_thursday/contents/{+path}","compare_url":"https://api.github.com/repos/anon0mys/black_thursday/compare/{base}...{head}","merges_url":"https://api.github.com/repos/anon0mys/black_thursday/merges","archive_url":"https://api.github.com/repos/anon0mys/black_thursday/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/anon0mys/black_thursday/downloads","issues_url":"https://api.github.com/repos/anon0mys/black_thursday/issues{/number}","pulls_url":"https://api.github.com/repos/anon0mys/black_thursday/pulls{/number}","milestones_url":"https://api.github.com/repos/anon0mys/black_thursday/milestones{/number}","notifications_url":"https://api.github.com/repos/anon0mys/black_thursday/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/anon0mys/black_thursday/labels{/name}","releases_url":"https://api.github.com/repos/anon0mys/black_thursday/releases{/id}","deployments_url":"https://api.github.com/repos/anon0mys/black_thursday/deployments","created_at":"2018-02-16T23:08:22Z","updated_at":"2018-02-25T06:24:02Z","pushed_at":"2018-02-28T17:43:35Z","git_url":"git://github.com/anon0mys/black_thursday.git","ssh_url":"git@github.com:anon0mys/black_thursday.git","clone_url":"https://github.com/anon0mys/black_thursday.git","svn_url":"https://github.com/anon0mys/black_thursday","homepage":null,"size":1945,"stargazers_count":1,"watchers_count":1,"language":"Ruby","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":6,"license":null,"forks":0,"open_issues":6,"watchers":1,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/anon0mys/black_thursday/pulls/56"},"html":{"href":"https://github.com/anon0mys/black_thursday/pull/56"},"issue":{"href":"https://api.github.com/repos/anon0mys/black_thursday/issues/56"},"comments":{"href":"https://api.github.com/repos/anon0mys/black_thursday/issues/56/comments"},"review_comments":{"href":"https://api.github.com/repos/anon0mys/black_thursday/pulls/56/comments"},"review_comment":{"href":"https://api.github.com/repos/anon0mys/black_thursday/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/anon0mys/black_thursday/pulls/56/commits"},"statuses":{"href":"https://api.github.com/repos/anon0mys/black_thursday/statuses/ecae81a38581fef34fee1c8e42526a4bf4f147d0"}},"author_association":"COLLABORATOR"}}
{"actor":{"display_login":"houndci-bot"}}