{"action":"created","comment":{"url":"https://api.github.com/repos/halfak/Revision-Scoring/pulls/comments/23134028","id":23134028,"diff_hunk":"@@ -33,8 +31,17 @@ def test_model():\n     ])\n     assert test_stats['auc'] > 0.5\n     \n-    \n     f = BytesIO()\n     model.dump(f)\n     f.seek(0)\n     model = LinearSVC.MODEL.load(f)\n+\n+    def test_serialization():\n+        model = LinearSVC.MODEL([proportion_of_badwords_added,\n+                                 proportion_of_symbolic_added])\n+        f = BytesIO()\n+        model.dump(f)\n+        f.seek(0) # Rewind the file\n+        reconstructed_model = MLScorerModel.load(f)\n+        eq_(reconstructed_model.features, model.features)\n+        eq_(type(reconstructed_model), type(model))","path":"revscores/scorers/tests/test_linear_svc.py","position":34,"original_position":34,"commit_id":"50fc0eb13594fbe474953956180640bf09ccfade","original_commit_id":"50fc0eb13594fbe474953956180640bf09ccfade","user":{"login":"halfak","id":984301,"avatar_url":"https://avatars.githubusercontent.com/u/984301?v=3","gravatar_id":"","url":"https://api.github.com/users/halfak","html_url":"https://github.com/halfak","followers_url":"https://api.github.com/users/halfak/followers","following_url":"https://api.github.com/users/halfak/following{/other_user}","gists_url":"https://api.github.com/users/halfak/gists{/gist_id}","starred_url":"https://api.github.com/users/halfak/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/halfak/subscriptions","organizations_url":"https://api.github.com/users/halfak/orgs","repos_url":"https://api.github.com/users/halfak/repos","events_url":"https://api.github.com/users/halfak/events{/privacy}","received_events_url":"https://api.github.com/users/halfak/received_events","type":"User","site_admin":false},"body":"This shouldn't be tabbed in like this.  It needs to be tabbed back to zero in order to run the actual test. ","created_at":"2015-01-18T15:36:29Z","updated_at":"2015-01-18T15:36:29Z","html_url":"https://github.com/halfak/Revision-Scoring/pull/26#discussion_r23134028","pull_request_url":"https://api.github.com/repos/halfak/Revision-Scoring/pulls/26","_links":{"self":{"href":"https://api.github.com/repos/halfak/Revision-Scoring/pulls/comments/23134028"},"html":{"href":"https://github.com/halfak/Revision-Scoring/pull/26#discussion_r23134028"},"pull_request":{"href":"https://api.github.com/repos/halfak/Revision-Scoring/pulls/26"}}},"pull_request":{"url":"https://api.github.com/repos/halfak/Revision-Scoring/pulls/26","id":27560448,"html_url":"https://github.com/halfak/Revision-Scoring/pull/26","diff_url":"https://github.com/halfak/Revision-Scoring/pull/26.diff","patch_url":"https://github.com/halfak/Revision-Scoring/pull/26.patch","issue_url":"https://api.github.com/repos/halfak/Revision-Scoring/issues/26","number":26,"state":"open","locked":false,"title":"Provided code from revscores hacking with Halfak","user":{"login":"ToAruShiroiNeko","id":7820084,"avatar_url":"https://avatars.githubusercontent.com/u/7820084?v=3","gravatar_id":"","url":"https://api.github.com/users/ToAruShiroiNeko","html_url":"https://github.com/ToAruShiroiNeko","followers_url":"https://api.github.com/users/ToAruShiroiNeko/followers","following_url":"https://api.github.com/users/ToAruShiroiNeko/following{/other_user}","gists_url":"https://api.github.com/users/ToAruShiroiNeko/gists{/gist_id}","starred_url":"https://api.github.com/users/ToAruShiroiNeko/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ToAruShiroiNeko/subscriptions","organizations_url":"https://api.github.com/users/ToAruShiroiNeko/orgs","repos_url":"https://api.github.com/users/ToAruShiroiNeko/repos","events_url":"https://api.github.com/users/ToAruShiroiNeko/events{/privacy}","received_events_url":"https://api.github.com/users/ToAruShiroiNeko/received_events","type":"User","site_admin":false},"body":"","created_at":"2015-01-17T18:48:27Z","updated_at":"2015-01-18T15:36:29Z","closed_at":null,"merged_at":null,"merge_commit_sha":"6fec6f28de52c2c0a6bdff85713724441e0b1da1","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/halfak/Revision-Scoring/pulls/26/commits","review_comments_url":"https://api.github.com/repos/halfak/Revision-Scoring/pulls/26/comments","review_comment_url":"https://api.github.com/repos/halfak/Revision-Scoring/pulls/comments/{number}","comments_url":"https://api.github.com/repos/halfak/Revision-Scoring/issues/26/comments","statuses_url":"https://api.github.com/repos/halfak/Revision-Scoring/statuses/50fc0eb13594fbe474953956180640bf09ccfade","head":{"label":"ToAruShiroiNeko:master","ref":"master","sha":"50fc0eb13594fbe474953956180640bf09ccfade","user":{"login":"ToAruShiroiNeko","id":7820084,"avatar_url":"https://avatars.githubusercontent.com/u/7820084?v=3","gravatar_id":"","url":"https://api.github.com/users/ToAruShiroiNeko","html_url":"https://github.com/ToAruShiroiNeko","followers_url":"https://api.github.com/users/ToAruShiroiNeko/followers","following_url":"https://api.github.com/users/ToAruShiroiNeko/following{/other_user}","gists_url":"https://api.github.com/users/ToAruShiroiNeko/gists{/gist_id}","starred_url":"https://api.github.com/users/ToAruShiroiNeko/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ToAruShiroiNeko/subscriptions","organizations_url":"https://api.github.com/users/ToAruShiroiNeko/orgs","repos_url":"https://api.github.com/users/ToAruShiroiNeko/repos","events_url":"https://api.github.com/users/ToAruShiroiNeko/events{/privacy}","received_events_url":"https://api.github.com/users/ToAruShiroiNeko/received_events","type":"User","site_admin":false},"repo":{"id":29397485,"name":"Revision-Scoring","full_name":"ToAruShiroiNeko/Revision-Scoring","owner":{"login":"ToAruShiroiNeko","id":7820084,"avatar_url":"https://avatars.githubusercontent.com/u/7820084?v=3","gravatar_id":"","url":"https://api.github.com/users/ToAruShiroiNeko","html_url":"https://github.com/ToAruShiroiNeko","followers_url":"https://api.github.com/users/ToAruShiroiNeko/followers","following_url":"https://api.github.com/users/ToAruShiroiNeko/following{/other_user}","gists_url":"https://api.github.com/users/ToAruShiroiNeko/gists{/gist_id}","starred_url":"https://api.github.com/users/ToAruShiroiNeko/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ToAruShiroiNeko/subscriptions","organizations_url":"https://api.github.com/users/ToAruShiroiNeko/orgs","repos_url":"https://api.github.com/users/ToAruShiroiNeko/repos","events_url":"https://api.github.com/users/ToAruShiroiNeko/events{/privacy}","received_events_url":"https://api.github.com/users/ToAruShiroiNeko/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/ToAruShiroiNeko/Revision-Scoring","description":"","fork":true,"url":"https://api.github.com/repos/ToAruShiroiNeko/Revision-Scoring","forks_url":"https://api.github.com/repos/ToAruShiroiNeko/Revision-Scoring/forks","keys_url":"https://api.github.com/repos/ToAruShiroiNeko/Revision-Scoring/keys{/key_id}","collaborators_url":"https://api.github.com/repos/ToAruShiroiNeko/Revision-Scoring/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/ToAruShiroiNeko/Revision-Scoring/teams","hooks_url":"https://api.github.com/repos/ToAruShiroiNeko/Revision-Scoring/hooks","issue_events_url":"https://api.github.com/repos/ToAruShiroiNeko/Revision-Scoring/issues/events{/number}","events_url":"https://api.github.com/repos/ToAruShiroiNeko/Revision-Scoring/events","assignees_url":"https://api.github.com/repos/ToAruShiroiNeko/Revision-Scoring/assignees{/user}","branches_url":"https://api.github.com/repos/ToAruShiroiNeko/Revision-Scoring/branches{/branch}","tags_url":"https://api.github.com/repos/ToAruShiroiNeko/Revision-Scoring/tags","blobs_url":"https://api.github.com/repos/ToAruShiroiNeko/Revision-Scoring/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/ToAruShiroiNeko/Revision-Scoring/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/ToAruShiroiNeko/Revision-Scoring/git/refs{/sha}","trees_url":"https://api.github.com/repos/ToAruShiroiNeko/Revision-Scoring/git/trees{/sha}","statuses_url":"https://api.github.com/repos/ToAruShiroiNeko/Revision-Scoring/statuses/{sha}","languages_url":"https://api.github.com/repos/ToAruShiroiNeko/Revision-Scoring/languages","stargazers_url":"https://api.github.com/repos/ToAruShiroiNeko/Revision-Scoring/stargazers","contributors_url":"https://api.github.com/repos/ToAruShiroiNeko/Revision-Scoring/contributors","subscribers_url":"https://api.github.com/repos/ToAruShiroiNeko/Revision-Scoring/subscribers","subscription_url":"https://api.github.com/repos/ToAruShiroiNeko/Revision-Scoring/subscription","commits_url":"https://api.github.com/repos/ToAruShiroiNeko/Revision-Scoring/commits{/sha}","git_commits_url":"https://api.github.com/repos/ToAruShiroiNeko/Revision-Scoring/git/commits{/sha}","comments_url":"https://api.github.com/repos/ToAruShiroiNeko/Revision-Scoring/comments{/number}","issue_comment_url":"https://api.github.com/repos/ToAruShiroiNeko/Revision-Scoring/issues/comments/{number}","contents_url":"https://api.github.com/repos/ToAruShiroiNeko/Revision-Scoring/contents/{+path}","compare_url":"https://api.github.com/repos/ToAruShiroiNeko/Revision-Scoring/compare/{base}...{head}","merges_url":"https://api.github.com/repos/ToAruShiroiNeko/Revision-Scoring/merges","archive_url":"https://api.github.com/repos/ToAruShiroiNeko/Revision-Scoring/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/ToAruShiroiNeko/Revision-Scoring/downloads","issues_url":"https://api.github.com/repos/ToAruShiroiNeko/Revision-Scoring/issues{/number}","pulls_url":"https://api.github.com/repos/ToAruShiroiNeko/Revision-Scoring/pulls{/number}","milestones_url":"https://api.github.com/repos/ToAruShiroiNeko/Revision-Scoring/milestones{/number}","notifications_url":"https://api.github.com/repos/ToAruShiroiNeko/Revision-Scoring/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/ToAruShiroiNeko/Revision-Scoring/labels{/name}","releases_url":"https://api.github.com/repos/ToAruShiroiNeko/Revision-Scoring/releases{/id}","created_at":"2015-01-17T16:42:04Z","updated_at":"2015-01-17T18:46:39Z","pushed_at":"2015-01-17T18:46:39Z","git_url":"git://github.com/ToAruShiroiNeko/Revision-Scoring.git","ssh_url":"git@github.com:ToAruShiroiNeko/Revision-Scoring.git","clone_url":"https://github.com/ToAruShiroiNeko/Revision-Scoring.git","svn_url":"https://github.com/ToAruShiroiNeko/Revision-Scoring","homepage":null,"size":261,"stargazers_count":0,"watchers_count":0,"language":"Python","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"halfak:master","ref":"master","sha":"c8db50336a40367a2e57cdb18b860859c8131465","user":{"login":"halfak","id":984301,"avatar_url":"https://avatars.githubusercontent.com/u/984301?v=3","gravatar_id":"","url":"https://api.github.com/users/halfak","html_url":"https://github.com/halfak","followers_url":"https://api.github.com/users/halfak/followers","following_url":"https://api.github.com/users/halfak/following{/other_user}","gists_url":"https://api.github.com/users/halfak/gists{/gist_id}","starred_url":"https://api.github.com/users/halfak/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/halfak/subscriptions","organizations_url":"https://api.github.com/users/halfak/orgs","repos_url":"https://api.github.com/users/halfak/repos","events_url":"https://api.github.com/users/halfak/events{/privacy}","received_events_url":"https://api.github.com/users/halfak/received_events","type":"User","site_admin":false},"repo":{"id":23771350,"name":"Revision-Scoring","full_name":"halfak/Revision-Scoring","owner":{"login":"halfak","id":984301,"avatar_url":"https://avatars.githubusercontent.com/u/984301?v=3","gravatar_id":"","url":"https://api.github.com/users/halfak","html_url":"https://github.com/halfak","followers_url":"https://api.github.com/users/halfak/followers","following_url":"https://api.github.com/users/halfak/following{/other_user}","gists_url":"https://api.github.com/users/halfak/gists{/gist_id}","starred_url":"https://api.github.com/users/halfak/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/halfak/subscriptions","organizations_url":"https://api.github.com/users/halfak/orgs","repos_url":"https://api.github.com/users/halfak/repos","events_url":"https://api.github.com/users/halfak/events{/privacy}","received_events_url":"https://api.github.com/users/halfak/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/halfak/Revision-Scoring","description":"","fork":false,"url":"https://api.github.com/repos/halfak/Revision-Scoring","forks_url":"https://api.github.com/repos/halfak/Revision-Scoring/forks","keys_url":"https://api.github.com/repos/halfak/Revision-Scoring/keys{/key_id}","collaborators_url":"https://api.github.com/repos/halfak/Revision-Scoring/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/halfak/Revision-Scoring/teams","hooks_url":"https://api.github.com/repos/halfak/Revision-Scoring/hooks","issue_events_url":"https://api.github.com/repos/halfak/Revision-Scoring/issues/events{/number}","events_url":"https://api.github.com/repos/halfak/Revision-Scoring/events","assignees_url":"https://api.github.com/repos/halfak/Revision-Scoring/assignees{/user}","branches_url":"https://api.github.com/repos/halfak/Revision-Scoring/branches{/branch}","tags_url":"https://api.github.com/repos/halfak/Revision-Scoring/tags","blobs_url":"https://api.github.com/repos/halfak/Revision-Scoring/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/halfak/Revision-Scoring/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/halfak/Revision-Scoring/git/refs{/sha}","trees_url":"https://api.github.com/repos/halfak/Revision-Scoring/git/trees{/sha}","statuses_url":"https://api.github.com/repos/halfak/Revision-Scoring/statuses/{sha}","languages_url":"https://api.github.com/repos/halfak/Revision-Scoring/languages","stargazers_url":"https://api.github.com/repos/halfak/Revision-Scoring/stargazers","contributors_url":"https://api.github.com/repos/halfak/Revision-Scoring/contributors","subscribers_url":"https://api.github.com/repos/halfak/Revision-Scoring/subscribers","subscription_url":"https://api.github.com/repos/halfak/Revision-Scoring/subscription","commits_url":"https://api.github.com/repos/halfak/Revision-Scoring/commits{/sha}","git_commits_url":"https://api.github.com/repos/halfak/Revision-Scoring/git/commits{/sha}","comments_url":"https://api.github.com/repos/halfak/Revision-Scoring/comments{/number}","issue_comment_url":"https://api.github.com/repos/halfak/Revision-Scoring/issues/comments/{number}","contents_url":"https://api.github.com/repos/halfak/Revision-Scoring/contents/{+path}","compare_url":"https://api.github.com/repos/halfak/Revision-Scoring/compare/{base}...{head}","merges_url":"https://api.github.com/repos/halfak/Revision-Scoring/merges","archive_url":"https://api.github.com/repos/halfak/Revision-Scoring/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/halfak/Revision-Scoring/downloads","issues_url":"https://api.github.com/repos/halfak/Revision-Scoring/issues{/number}","pulls_url":"https://api.github.com/repos/halfak/Revision-Scoring/pulls{/number}","milestones_url":"https://api.github.com/repos/halfak/Revision-Scoring/milestones{/number}","notifications_url":"https://api.github.com/repos/halfak/Revision-Scoring/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/halfak/Revision-Scoring/labels{/name}","releases_url":"https://api.github.com/repos/halfak/Revision-Scoring/releases{/id}","created_at":"2014-09-07T21:20:37Z","updated_at":"2015-01-10T15:38:41Z","pushed_at":"2015-01-17T17:26:29Z","git_url":"git://github.com/halfak/Revision-Scoring.git","ssh_url":"git@github.com:halfak/Revision-Scoring.git","clone_url":"https://github.com/halfak/Revision-Scoring.git","svn_url":"https://github.com/halfak/Revision-Scoring","homepage":null,"size":731,"stargazers_count":2,"watchers_count":2,"language":"Python","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":3,"mirror_url":null,"open_issues_count":5,"forks":3,"open_issues":5,"watchers":2,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/halfak/Revision-Scoring/pulls/26"},"html":{"href":"https://github.com/halfak/Revision-Scoring/pull/26"},"issue":{"href":"https://api.github.com/repos/halfak/Revision-Scoring/issues/26"},"comments":{"href":"https://api.github.com/repos/halfak/Revision-Scoring/issues/26/comments"},"review_comments":{"href":"https://api.github.com/repos/halfak/Revision-Scoring/pulls/26/comments"},"review_comment":{"href":"https://api.github.com/repos/halfak/Revision-Scoring/pulls/comments/{number}"},"commits":{"href":"https://api.github.com/repos/halfak/Revision-Scoring/pulls/26/commits"},"statuses":{"href":"https://api.github.com/repos/halfak/Revision-Scoring/statuses/50fc0eb13594fbe474953956180640bf09ccfade"}}}}