{"action":"created","comment":{"url":"https://api.github.com/repos/dmitrinesterenko/learning_machine-learning/pulls/comments/58480215","id":58480215,"diff_hunk":"@@ -30,13 +30,24 @@\n \n     it \"adds new humans\" do\n       trainer.train(humans)\n+      prior_count = trainer.all.count\n       trainer.train(new_record)\n       expect(trainer.all).to eq(humans.merge(new_record))\n+      expect(trainer.all.count).to eq prior_count + 1\n     end\n \n     it \"adjusts with feedback\" do\n-      expect(trainer.train(buzz_aldrin)).to match(buzz_aldrin)\n+      trainer.train(humans)\n+      expect(trainer.train(buzz_aldrin)).to include(buzz_aldrin)\n       expect(trainer.get(\"Buzzy\")).to eq(1.0)\n     end\n+\n+    it \"updates existing values\" do\n+      trainer.train(humans)\n+      prior_count = trainer.data.count\n+      trainer.train(buzz_aldrin)\n+      expect(trainer.data.count).to eq prior_count\n+","path":"spec/trainer_spec.rb","position":31,"original_position":31,"commit_id":"e6f59cfd092df116b286aa2fbef055084d362768","original_commit_id":"e6f59cfd092df116b286aa2fbef055084d362768","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":"Extra empty line detected at block body end.","created_at":"2016-04-05T02:48:44Z","updated_at":"2016-04-05T02:48:44Z","html_url":"https://github.com/dmitrinesterenko/learning_machine-learning/pull/9#discussion_r58480215","pull_request_url":"https://api.github.com/repos/dmitrinesterenko/learning_machine-learning/pulls/9","_links":{"self":{"href":"https://api.github.com/repos/dmitrinesterenko/learning_machine-learning/pulls/comments/58480215"},"html":{"href":"https://github.com/dmitrinesterenko/learning_machine-learning/pull/9#discussion_r58480215"},"pull_request":{"href":"https://api.github.com/repos/dmitrinesterenko/learning_machine-learning/pulls/9"}}},"pull_request":{"url":"https://api.github.com/repos/dmitrinesterenko/learning_machine-learning/pulls/9","id":65243861,"html_url":"https://github.com/dmitrinesterenko/learning_machine-learning/pull/9","diff_url":"https://github.com/dmitrinesterenko/learning_machine-learning/pull/9.diff","patch_url":"https://github.com/dmitrinesterenko/learning_machine-learning/pull/9.patch","issue_url":"https://api.github.com/repos/dmitrinesterenko/learning_machine-learning/issues/9","number":9,"state":"open","locked":false,"title":"Added runner. Fixed bugs in trainer and classifier","user":{"login":"dmitrinesterenko","id":168706,"avatar_url":"https://avatars.githubusercontent.com/u/168706?v=3","gravatar_id":"","url":"https://api.github.com/users/dmitrinesterenko","html_url":"https://github.com/dmitrinesterenko","followers_url":"https://api.github.com/users/dmitrinesterenko/followers","following_url":"https://api.github.com/users/dmitrinesterenko/following{/other_user}","gists_url":"https://api.github.com/users/dmitrinesterenko/gists{/gist_id}","starred_url":"https://api.github.com/users/dmitrinesterenko/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dmitrinesterenko/subscriptions","organizations_url":"https://api.github.com/users/dmitrinesterenko/orgs","repos_url":"https://api.github.com/users/dmitrinesterenko/repos","events_url":"https://api.github.com/users/dmitrinesterenko/events{/privacy}","received_events_url":"https://api.github.com/users/dmitrinesterenko/received_events","type":"User","site_admin":false},"body":"Added application runner run.rb\r\nMake the trainer.data be a unique representation of the trainer sample, this\r\nremoves the caching but fixes the caching bug in trainer.data method","created_at":"2016-04-05T02:48:38Z","updated_at":"2016-04-05T02:48:44Z","closed_at":null,"merged_at":null,"merge_commit_sha":null,"assignee":{"login":"dmitrinesterenko","id":168706,"avatar_url":"https://avatars.githubusercontent.com/u/168706?v=3","gravatar_id":"","url":"https://api.github.com/users/dmitrinesterenko","html_url":"https://github.com/dmitrinesterenko","followers_url":"https://api.github.com/users/dmitrinesterenko/followers","following_url":"https://api.github.com/users/dmitrinesterenko/following{/other_user}","gists_url":"https://api.github.com/users/dmitrinesterenko/gists{/gist_id}","starred_url":"https://api.github.com/users/dmitrinesterenko/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dmitrinesterenko/subscriptions","organizations_url":"https://api.github.com/users/dmitrinesterenko/orgs","repos_url":"https://api.github.com/users/dmitrinesterenko/repos","events_url":"https://api.github.com/users/dmitrinesterenko/events{/privacy}","received_events_url":"https://api.github.com/users/dmitrinesterenko/received_events","type":"User","site_admin":false},"milestone":{"url":"https://api.github.com/repos/dmitrinesterenko/learning_machine-learning/milestones/1","html_url":"https://github.com/dmitrinesterenko/learning_machine-learning/milestones/0.1.0","labels_url":"https://api.github.com/repos/dmitrinesterenko/learning_machine-learning/milestones/1/labels","id":1656485,"number":1,"title":"0.1.0","description":null,"creator":{"login":"dmitrinesterenko","id":168706,"avatar_url":"https://avatars.githubusercontent.com/u/168706?v=3","gravatar_id":"","url":"https://api.github.com/users/dmitrinesterenko","html_url":"https://github.com/dmitrinesterenko","followers_url":"https://api.github.com/users/dmitrinesterenko/followers","following_url":"https://api.github.com/users/dmitrinesterenko/following{/other_user}","gists_url":"https://api.github.com/users/dmitrinesterenko/gists{/gist_id}","starred_url":"https://api.github.com/users/dmitrinesterenko/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dmitrinesterenko/subscriptions","organizations_url":"https://api.github.com/users/dmitrinesterenko/orgs","repos_url":"https://api.github.com/users/dmitrinesterenko/repos","events_url":"https://api.github.com/users/dmitrinesterenko/events{/privacy}","received_events_url":"https://api.github.com/users/dmitrinesterenko/received_events","type":"User","site_admin":false},"open_issues":1,"closed_issues":7,"state":"open","created_at":"2016-03-21T04:19:46Z","updated_at":"2016-04-05T02:48:38Z","due_on":null,"closed_at":null},"commits_url":"https://api.github.com/repos/dmitrinesterenko/learning_machine-learning/pulls/9/commits","review_comments_url":"https://api.github.com/repos/dmitrinesterenko/learning_machine-learning/pulls/9/comments","review_comment_url":"https://api.github.com/repos/dmitrinesterenko/learning_machine-learning/pulls/comments{/number}","comments_url":"https://api.github.com/repos/dmitrinesterenko/learning_machine-learning/issues/9/comments","statuses_url":"https://api.github.com/repos/dmitrinesterenko/learning_machine-learning/statuses/e6f59cfd092df116b286aa2fbef055084d362768","head":{"label":"dmitrinesterenko:fixes-trainer-classifier-running-app","ref":"fixes-trainer-classifier-running-app","sha":"e6f59cfd092df116b286aa2fbef055084d362768","user":{"login":"dmitrinesterenko","id":168706,"avatar_url":"https://avatars.githubusercontent.com/u/168706?v=3","gravatar_id":"","url":"https://api.github.com/users/dmitrinesterenko","html_url":"https://github.com/dmitrinesterenko","followers_url":"https://api.github.com/users/dmitrinesterenko/followers","following_url":"https://api.github.com/users/dmitrinesterenko/following{/other_user}","gists_url":"https://api.github.com/users/dmitrinesterenko/gists{/gist_id}","starred_url":"https://api.github.com/users/dmitrinesterenko/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dmitrinesterenko/subscriptions","organizations_url":"https://api.github.com/users/dmitrinesterenko/orgs","repos_url":"https://api.github.com/users/dmitrinesterenko/repos","events_url":"https://api.github.com/users/dmitrinesterenko/events{/privacy}","received_events_url":"https://api.github.com/users/dmitrinesterenko/received_events","type":"User","site_admin":false},"repo":{"id":54000061,"name":"learning_machine-learning","full_name":"dmitrinesterenko/learning_machine-learning","owner":{"login":"dmitrinesterenko","id":168706,"avatar_url":"https://avatars.githubusercontent.com/u/168706?v=3","gravatar_id":"","url":"https://api.github.com/users/dmitrinesterenko","html_url":"https://github.com/dmitrinesterenko","followers_url":"https://api.github.com/users/dmitrinesterenko/followers","following_url":"https://api.github.com/users/dmitrinesterenko/following{/other_user}","gists_url":"https://api.github.com/users/dmitrinesterenko/gists{/gist_id}","starred_url":"https://api.github.com/users/dmitrinesterenko/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dmitrinesterenko/subscriptions","organizations_url":"https://api.github.com/users/dmitrinesterenko/orgs","repos_url":"https://api.github.com/users/dmitrinesterenko/repos","events_url":"https://api.github.com/users/dmitrinesterenko/events{/privacy}","received_events_url":"https://api.github.com/users/dmitrinesterenko/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/dmitrinesterenko/learning_machine-learning","description":"Learning machine learning in Ruby one failing spec at a time. ","fork":false,"url":"https://api.github.com/repos/dmitrinesterenko/learning_machine-learning","forks_url":"https://api.github.com/repos/dmitrinesterenko/learning_machine-learning/forks","keys_url":"https://api.github.com/repos/dmitrinesterenko/learning_machine-learning/keys{/key_id}","collaborators_url":"https://api.github.com/repos/dmitrinesterenko/learning_machine-learning/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/dmitrinesterenko/learning_machine-learning/teams","hooks_url":"https://api.github.com/repos/dmitrinesterenko/learning_machine-learning/hooks","issue_events_url":"https://api.github.com/repos/dmitrinesterenko/learning_machine-learning/issues/events{/number}","events_url":"https://api.github.com/repos/dmitrinesterenko/learning_machine-learning/events","assignees_url":"https://api.github.com/repos/dmitrinesterenko/learning_machine-learning/assignees{/user}","branches_url":"https://api.github.com/repos/dmitrinesterenko/learning_machine-learning/branches{/branch}","tags_url":"https://api.github.com/repos/dmitrinesterenko/learning_machine-learning/tags","blobs_url":"https://api.github.com/repos/dmitrinesterenko/learning_machine-learning/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/dmitrinesterenko/learning_machine-learning/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/dmitrinesterenko/learning_machine-learning/git/refs{/sha}","trees_url":"https://api.github.com/repos/dmitrinesterenko/learning_machine-learning/git/trees{/sha}","statuses_url":"https://api.github.com/repos/dmitrinesterenko/learning_machine-learning/statuses/{sha}","languages_url":"https://api.github.com/repos/dmitrinesterenko/learning_machine-learning/languages","stargazers_url":"https://api.github.com/repos/dmitrinesterenko/learning_machine-learning/stargazers","contributors_url":"https://api.github.com/repos/dmitrinesterenko/learning_machine-learning/contributors","subscribers_url":"https://api.github.com/repos/dmitrinesterenko/learning_machine-learning/subscribers","subscription_url":"https://api.github.com/repos/dmitrinesterenko/learning_machine-learning/subscription","commits_url":"https://api.github.com/repos/dmitrinesterenko/learning_machine-learning/commits{/sha}","git_commits_url":"https://api.github.com/repos/dmitrinesterenko/learning_machine-learning/git/commits{/sha}","comments_url":"https://api.github.com/repos/dmitrinesterenko/learning_machine-learning/comments{/number}","issue_comment_url":"https://api.github.com/repos/dmitrinesterenko/learning_machine-learning/issues/comments{/number}","contents_url":"https://api.github.com/repos/dmitrinesterenko/learning_machine-learning/contents/{+path}","compare_url":"https://api.github.com/repos/dmitrinesterenko/learning_machine-learning/compare/{base}...{head}","merges_url":"https://api.github.com/repos/dmitrinesterenko/learning_machine-learning/merges","archive_url":"https://api.github.com/repos/dmitrinesterenko/learning_machine-learning/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/dmitrinesterenko/learning_machine-learning/downloads","issues_url":"https://api.github.com/repos/dmitrinesterenko/learning_machine-learning/issues{/number}","pulls_url":"https://api.github.com/repos/dmitrinesterenko/learning_machine-learning/pulls{/number}","milestones_url":"https://api.github.com/repos/dmitrinesterenko/learning_machine-learning/milestones{/number}","notifications_url":"https://api.github.com/repos/dmitrinesterenko/learning_machine-learning/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/dmitrinesterenko/learning_machine-learning/labels{/name}","releases_url":"https://api.github.com/repos/dmitrinesterenko/learning_machine-learning/releases{/id}","deployments_url":"https://api.github.com/repos/dmitrinesterenko/learning_machine-learning/deployments","created_at":"2016-03-16T04:09:50Z","updated_at":"2016-03-16T04:11:06Z","pushed_at":"2016-04-05T02:48:38Z","git_url":"git://github.com/dmitrinesterenko/learning_machine-learning.git","ssh_url":"git@github.com:dmitrinesterenko/learning_machine-learning.git","clone_url":"https://github.com/dmitrinesterenko/learning_machine-learning.git","svn_url":"https://github.com/dmitrinesterenko/learning_machine-learning","homepage":null,"size":33,"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":"dmitrinesterenko:master","ref":"master","sha":"69fee3f2217f088cc810813ffd3e75e07ee01f5f","user":{"login":"dmitrinesterenko","id":168706,"avatar_url":"https://avatars.githubusercontent.com/u/168706?v=3","gravatar_id":"","url":"https://api.github.com/users/dmitrinesterenko","html_url":"https://github.com/dmitrinesterenko","followers_url":"https://api.github.com/users/dmitrinesterenko/followers","following_url":"https://api.github.com/users/dmitrinesterenko/following{/other_user}","gists_url":"https://api.github.com/users/dmitrinesterenko/gists{/gist_id}","starred_url":"https://api.github.com/users/dmitrinesterenko/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dmitrinesterenko/subscriptions","organizations_url":"https://api.github.com/users/dmitrinesterenko/orgs","repos_url":"https://api.github.com/users/dmitrinesterenko/repos","events_url":"https://api.github.com/users/dmitrinesterenko/events{/privacy}","received_events_url":"https://api.github.com/users/dmitrinesterenko/received_events","type":"User","site_admin":false},"repo":{"id":54000061,"name":"learning_machine-learning","full_name":"dmitrinesterenko/learning_machine-learning","owner":{"login":"dmitrinesterenko","id":168706,"avatar_url":"https://avatars.githubusercontent.com/u/168706?v=3","gravatar_id":"","url":"https://api.github.com/users/dmitrinesterenko","html_url":"https://github.com/dmitrinesterenko","followers_url":"https://api.github.com/users/dmitrinesterenko/followers","following_url":"https://api.github.com/users/dmitrinesterenko/following{/other_user}","gists_url":"https://api.github.com/users/dmitrinesterenko/gists{/gist_id}","starred_url":"https://api.github.com/users/dmitrinesterenko/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dmitrinesterenko/subscriptions","organizations_url":"https://api.github.com/users/dmitrinesterenko/orgs","repos_url":"https://api.github.com/users/dmitrinesterenko/repos","events_url":"https://api.github.com/users/dmitrinesterenko/events{/privacy}","received_events_url":"https://api.github.com/users/dmitrinesterenko/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/dmitrinesterenko/learning_machine-learning","description":"Learning machine learning in Ruby one failing spec at a time. ","fork":false,"url":"https://api.github.com/repos/dmitrinesterenko/learning_machine-learning","forks_url":"https://api.github.com/repos/dmitrinesterenko/learning_machine-learning/forks","keys_url":"https://api.github.com/repos/dmitrinesterenko/learning_machine-learning/keys{/key_id}","collaborators_url":"https://api.github.com/repos/dmitrinesterenko/learning_machine-learning/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/dmitrinesterenko/learning_machine-learning/teams","hooks_url":"https://api.github.com/repos/dmitrinesterenko/learning_machine-learning/hooks","issue_events_url":"https://api.github.com/repos/dmitrinesterenko/learning_machine-learning/issues/events{/number}","events_url":"https://api.github.com/repos/dmitrinesterenko/learning_machine-learning/events","assignees_url":"https://api.github.com/repos/dmitrinesterenko/learning_machine-learning/assignees{/user}","branches_url":"https://api.github.com/repos/dmitrinesterenko/learning_machine-learning/branches{/branch}","tags_url":"https://api.github.com/repos/dmitrinesterenko/learning_machine-learning/tags","blobs_url":"https://api.github.com/repos/dmitrinesterenko/learning_machine-learning/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/dmitrinesterenko/learning_machine-learning/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/dmitrinesterenko/learning_machine-learning/git/refs{/sha}","trees_url":"https://api.github.com/repos/dmitrinesterenko/learning_machine-learning/git/trees{/sha}","statuses_url":"https://api.github.com/repos/dmitrinesterenko/learning_machine-learning/statuses/{sha}","languages_url":"https://api.github.com/repos/dmitrinesterenko/learning_machine-learning/languages","stargazers_url":"https://api.github.com/repos/dmitrinesterenko/learning_machine-learning/stargazers","contributors_url":"https://api.github.com/repos/dmitrinesterenko/learning_machine-learning/contributors","subscribers_url":"https://api.github.com/repos/dmitrinesterenko/learning_machine-learning/subscribers","subscription_url":"https://api.github.com/repos/dmitrinesterenko/learning_machine-learning/subscription","commits_url":"https://api.github.com/repos/dmitrinesterenko/learning_machine-learning/commits{/sha}","git_commits_url":"https://api.github.com/repos/dmitrinesterenko/learning_machine-learning/git/commits{/sha}","comments_url":"https://api.github.com/repos/dmitrinesterenko/learning_machine-learning/comments{/number}","issue_comment_url":"https://api.github.com/repos/dmitrinesterenko/learning_machine-learning/issues/comments{/number}","contents_url":"https://api.github.com/repos/dmitrinesterenko/learning_machine-learning/contents/{+path}","compare_url":"https://api.github.com/repos/dmitrinesterenko/learning_machine-learning/compare/{base}...{head}","merges_url":"https://api.github.com/repos/dmitrinesterenko/learning_machine-learning/merges","archive_url":"https://api.github.com/repos/dmitrinesterenko/learning_machine-learning/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/dmitrinesterenko/learning_machine-learning/downloads","issues_url":"https://api.github.com/repos/dmitrinesterenko/learning_machine-learning/issues{/number}","pulls_url":"https://api.github.com/repos/dmitrinesterenko/learning_machine-learning/pulls{/number}","milestones_url":"https://api.github.com/repos/dmitrinesterenko/learning_machine-learning/milestones{/number}","notifications_url":"https://api.github.com/repos/dmitrinesterenko/learning_machine-learning/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/dmitrinesterenko/learning_machine-learning/labels{/name}","releases_url":"https://api.github.com/repos/dmitrinesterenko/learning_machine-learning/releases{/id}","deployments_url":"https://api.github.com/repos/dmitrinesterenko/learning_machine-learning/deployments","created_at":"2016-03-16T04:09:50Z","updated_at":"2016-03-16T04:11:06Z","pushed_at":"2016-04-05T02:48:38Z","git_url":"git://github.com/dmitrinesterenko/learning_machine-learning.git","ssh_url":"git@github.com:dmitrinesterenko/learning_machine-learning.git","clone_url":"https://github.com/dmitrinesterenko/learning_machine-learning.git","svn_url":"https://github.com/dmitrinesterenko/learning_machine-learning","homepage":null,"size":33,"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/dmitrinesterenko/learning_machine-learning/pulls/9"},"html":{"href":"https://github.com/dmitrinesterenko/learning_machine-learning/pull/9"},"issue":{"href":"https://api.github.com/repos/dmitrinesterenko/learning_machine-learning/issues/9"},"comments":{"href":"https://api.github.com/repos/dmitrinesterenko/learning_machine-learning/issues/9/comments"},"review_comments":{"href":"https://api.github.com/repos/dmitrinesterenko/learning_machine-learning/pulls/9/comments"},"review_comment":{"href":"https://api.github.com/repos/dmitrinesterenko/learning_machine-learning/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/dmitrinesterenko/learning_machine-learning/pulls/9/commits"},"statuses":{"href":"https://api.github.com/repos/dmitrinesterenko/learning_machine-learning/statuses/e6f59cfd092df116b286aa2fbef055084d362768"}}}}