{"action":"created","comment":{"url":"https://api.github.com/repos/oppia/oppia/pulls/comments/93675918","pull_request_review_id":14209113,"id":93675918,"diff_hunk":"@@ -0,0 +1,45 @@\n+# coding: utf-8\n+#\n+# Copyright 2016 The Oppia Authors. All Rights Reserved.\n+#\n+# Licensed under the Apache License, Version 2.0 (the \"License\");\n+# you may not use this file except in compliance with the License.\n+# You may obtain a copy of the License at\n+#\n+#      http://www.apache.org/licenses/LICENSE-2.0\n+#\n+# Unless required by applicable law or agreed to in writing, software\n+# distributed under the License is distributed on an \"AS-IS\" BASIS,\n+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n+# See the License for the specific language governing permissions and\n+# limitations under the License.\n+\n+from core.platform import models\n+from core.tests import test_utils\n+\n+(classifier_models,) = models.Registry.import_models([models.NAMES.classifier])\n+\n+\n+class ClassifierModelUnitTests(test_utils.GenericTestBase):\n+    \"\"\"Test the ClassifierModel class.\"\"\"\n+\n+    def setUp(self):\n+        super(ClassifierModelUnitTests, self).setUp()\n+        classifier_models.ClassifierModel.create('exp_id1', 1, 'state_name1',\n+                                                 1, {'aplha': 1.0}, 1)\n+        classifier_models.ClassifierModel.create('exp_id1', 1, 'state_name2',\n+                                                 1, {'aplha': 1.0}, 1)\n+        classifier_models.ClassifierModel.create('exp_id2', 1, 'state_name3',\n+                                                 1, {'aplha': 1.0}, 1)\n+\n+    def test_create_new_classifier_runs_successfully(self):\n+        classifier_id = classifier_models.ClassifierModel.create('exp_id3', 1, 'state_name1', 1, {'aplha': 1.0}, 1)  # pylint: disable=line-too-long","path":"core/storage/classifier/gae_models_test.py","position":36,"original_position":36,"commit_id":"7d3ac3c4b427843b6958f42c3dfff156c88b22d1","original_commit_id":"7d3ac3c4b427843b6958f42c3dfff156c88b22d1","user":{"login":"anmolshkl","id":6338799,"avatar_url":"https://avatars.githubusercontent.com/u/6338799?v=3","gravatar_id":"","url":"https://api.github.com/users/anmolshkl","html_url":"https://github.com/anmolshkl","followers_url":"https://api.github.com/users/anmolshkl/followers","following_url":"https://api.github.com/users/anmolshkl/following{/other_user}","gists_url":"https://api.github.com/users/anmolshkl/gists{/gist_id}","starred_url":"https://api.github.com/users/anmolshkl/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/anmolshkl/subscriptions","organizations_url":"https://api.github.com/users/anmolshkl/orgs","repos_url":"https://api.github.com/users/anmolshkl/repos","events_url":"https://api.github.com/users/anmolshkl/events{/privacy}","received_events_url":"https://api.github.com/users/anmolshkl/received_events","type":"User","site_admin":false},"body":"Done!","created_at":"2016-12-22T18:44:20Z","updated_at":"2016-12-22T18:44:20Z","html_url":"https://github.com/oppia/oppia/pull/2846#discussion_r93675918","pull_request_url":"https://api.github.com/repos/oppia/oppia/pulls/2846","_links":{"self":{"href":"https://api.github.com/repos/oppia/oppia/pulls/comments/93675918"},"html":{"href":"https://github.com/oppia/oppia/pull/2846#discussion_r93675918"},"pull_request":{"href":"https://api.github.com/repos/oppia/oppia/pulls/2846"}}},"pull_request":{"url":"https://api.github.com/repos/oppia/oppia/pulls/2846","id":97679320,"html_url":"https://github.com/oppia/oppia/pull/2846","diff_url":"https://github.com/oppia/oppia/pull/2846.diff","patch_url":"https://github.com/oppia/oppia/pull/2846.patch","issue_url":"https://api.github.com/repos/oppia/oppia/issues/2846","number":2846,"state":"open","locked":false,"title":"Fix #2726: Create domain & storage classes for classifier model & tests","user":{"login":"anmolshkl","id":6338799,"avatar_url":"https://avatars.githubusercontent.com/u/6338799?v=3","gravatar_id":"","url":"https://api.github.com/users/anmolshkl","html_url":"https://github.com/anmolshkl","followers_url":"https://api.github.com/users/anmolshkl/followers","following_url":"https://api.github.com/users/anmolshkl/following{/other_user}","gists_url":"https://api.github.com/users/anmolshkl/gists{/gist_id}","starred_url":"https://api.github.com/users/anmolshkl/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/anmolshkl/subscriptions","organizations_url":"https://api.github.com/users/anmolshkl/orgs","repos_url":"https://api.github.com/users/anmolshkl/repos","events_url":"https://api.github.com/users/anmolshkl/events{/privacy}","received_events_url":"https://api.github.com/users/anmolshkl/received_events","type":"User","site_admin":false},"body":"@BenHenning PTAL at the classifier model domain and storage layer classes and the corresponding test cases. Thanks!","created_at":"2016-12-13T03:12:40Z","updated_at":"2016-12-22T18:44:20Z","closed_at":null,"merged_at":null,"merge_commit_sha":"ef129209426b19dfba4cf1263aa41b0932a11e1c","assignee":{"login":"Andimeo","id":5801576,"avatar_url":"https://avatars.githubusercontent.com/u/5801576?v=3","gravatar_id":"","url":"https://api.github.com/users/Andimeo","html_url":"https://github.com/Andimeo","followers_url":"https://api.github.com/users/Andimeo/followers","following_url":"https://api.github.com/users/Andimeo/following{/other_user}","gists_url":"https://api.github.com/users/Andimeo/gists{/gist_id}","starred_url":"https://api.github.com/users/Andimeo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Andimeo/subscriptions","organizations_url":"https://api.github.com/users/Andimeo/orgs","repos_url":"https://api.github.com/users/Andimeo/repos","events_url":"https://api.github.com/users/Andimeo/events{/privacy}","received_events_url":"https://api.github.com/users/Andimeo/received_events","type":"User","site_admin":false},"assignees":[{"login":"Andimeo","id":5801576,"avatar_url":"https://avatars.githubusercontent.com/u/5801576?v=3","gravatar_id":"","url":"https://api.github.com/users/Andimeo","html_url":"https://github.com/Andimeo","followers_url":"https://api.github.com/users/Andimeo/followers","following_url":"https://api.github.com/users/Andimeo/following{/other_user}","gists_url":"https://api.github.com/users/Andimeo/gists{/gist_id}","starred_url":"https://api.github.com/users/Andimeo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Andimeo/subscriptions","organizations_url":"https://api.github.com/users/Andimeo/orgs","repos_url":"https://api.github.com/users/Andimeo/repos","events_url":"https://api.github.com/users/Andimeo/events{/privacy}","received_events_url":"https://api.github.com/users/Andimeo/received_events","type":"User","site_admin":false},{"login":"anmolshkl","id":6338799,"avatar_url":"https://avatars.githubusercontent.com/u/6338799?v=3","gravatar_id":"","url":"https://api.github.com/users/anmolshkl","html_url":"https://github.com/anmolshkl","followers_url":"https://api.github.com/users/anmolshkl/followers","following_url":"https://api.github.com/users/anmolshkl/following{/other_user}","gists_url":"https://api.github.com/users/anmolshkl/gists{/gist_id}","starred_url":"https://api.github.com/users/anmolshkl/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/anmolshkl/subscriptions","organizations_url":"https://api.github.com/users/anmolshkl/orgs","repos_url":"https://api.github.com/users/anmolshkl/repos","events_url":"https://api.github.com/users/anmolshkl/events{/privacy}","received_events_url":"https://api.github.com/users/anmolshkl/received_events","type":"User","site_admin":false}],"milestone":null,"commits_url":"https://api.github.com/repos/oppia/oppia/pulls/2846/commits","review_comments_url":"https://api.github.com/repos/oppia/oppia/pulls/2846/comments","review_comment_url":"https://api.github.com/repos/oppia/oppia/pulls/comments{/number}","comments_url":"https://api.github.com/repos/oppia/oppia/issues/2846/comments","statuses_url":"https://api.github.com/repos/oppia/oppia/statuses/7d3ac3c4b427843b6958f42c3dfff156c88b22d1","head":{"label":"anmolshkl:classifier-model","ref":"classifier-model","sha":"7d3ac3c4b427843b6958f42c3dfff156c88b22d1","user":{"login":"anmolshkl","id":6338799,"avatar_url":"https://avatars.githubusercontent.com/u/6338799?v=3","gravatar_id":"","url":"https://api.github.com/users/anmolshkl","html_url":"https://github.com/anmolshkl","followers_url":"https://api.github.com/users/anmolshkl/followers","following_url":"https://api.github.com/users/anmolshkl/following{/other_user}","gists_url":"https://api.github.com/users/anmolshkl/gists{/gist_id}","starred_url":"https://api.github.com/users/anmolshkl/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/anmolshkl/subscriptions","organizations_url":"https://api.github.com/users/anmolshkl/orgs","repos_url":"https://api.github.com/users/anmolshkl/repos","events_url":"https://api.github.com/users/anmolshkl/events{/privacy}","received_events_url":"https://api.github.com/users/anmolshkl/received_events","type":"User","site_admin":false},"repo":{"id":54198892,"name":"oppia","full_name":"anmolshkl/oppia","owner":{"login":"anmolshkl","id":6338799,"avatar_url":"https://avatars.githubusercontent.com/u/6338799?v=3","gravatar_id":"","url":"https://api.github.com/users/anmolshkl","html_url":"https://github.com/anmolshkl","followers_url":"https://api.github.com/users/anmolshkl/followers","following_url":"https://api.github.com/users/anmolshkl/following{/other_user}","gists_url":"https://api.github.com/users/anmolshkl/gists{/gist_id}","starred_url":"https://api.github.com/users/anmolshkl/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/anmolshkl/subscriptions","organizations_url":"https://api.github.com/users/anmolshkl/orgs","repos_url":"https://api.github.com/users/anmolshkl/repos","events_url":"https://api.github.com/users/anmolshkl/events{/privacy}","received_events_url":"https://api.github.com/users/anmolshkl/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/anmolshkl/oppia","description":"Tool for collaboratively building intelligent tutors.","fork":true,"url":"https://api.github.com/repos/anmolshkl/oppia","forks_url":"https://api.github.com/repos/anmolshkl/oppia/forks","keys_url":"https://api.github.com/repos/anmolshkl/oppia/keys{/key_id}","collaborators_url":"https://api.github.com/repos/anmolshkl/oppia/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/anmolshkl/oppia/teams","hooks_url":"https://api.github.com/repos/anmolshkl/oppia/hooks","issue_events_url":"https://api.github.com/repos/anmolshkl/oppia/issues/events{/number}","events_url":"https://api.github.com/repos/anmolshkl/oppia/events","assignees_url":"https://api.github.com/repos/anmolshkl/oppia/assignees{/user}","branches_url":"https://api.github.com/repos/anmolshkl/oppia/branches{/branch}","tags_url":"https://api.github.com/repos/anmolshkl/oppia/tags","blobs_url":"https://api.github.com/repos/anmolshkl/oppia/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/anmolshkl/oppia/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/anmolshkl/oppia/git/refs{/sha}","trees_url":"https://api.github.com/repos/anmolshkl/oppia/git/trees{/sha}","statuses_url":"https://api.github.com/repos/anmolshkl/oppia/statuses/{sha}","languages_url":"https://api.github.com/repos/anmolshkl/oppia/languages","stargazers_url":"https://api.github.com/repos/anmolshkl/oppia/stargazers","contributors_url":"https://api.github.com/repos/anmolshkl/oppia/contributors","subscribers_url":"https://api.github.com/repos/anmolshkl/oppia/subscribers","subscription_url":"https://api.github.com/repos/anmolshkl/oppia/subscription","commits_url":"https://api.github.com/repos/anmolshkl/oppia/commits{/sha}","git_commits_url":"https://api.github.com/repos/anmolshkl/oppia/git/commits{/sha}","comments_url":"https://api.github.com/repos/anmolshkl/oppia/comments{/number}","issue_comment_url":"https://api.github.com/repos/anmolshkl/oppia/issues/comments{/number}","contents_url":"https://api.github.com/repos/anmolshkl/oppia/contents/{+path}","compare_url":"https://api.github.com/repos/anmolshkl/oppia/compare/{base}...{head}","merges_url":"https://api.github.com/repos/anmolshkl/oppia/merges","archive_url":"https://api.github.com/repos/anmolshkl/oppia/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/anmolshkl/oppia/downloads","issues_url":"https://api.github.com/repos/anmolshkl/oppia/issues{/number}","pulls_url":"https://api.github.com/repos/anmolshkl/oppia/pulls{/number}","milestones_url":"https://api.github.com/repos/anmolshkl/oppia/milestones{/number}","notifications_url":"https://api.github.com/repos/anmolshkl/oppia/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/anmolshkl/oppia/labels{/name}","releases_url":"https://api.github.com/repos/anmolshkl/oppia/releases{/id}","deployments_url":"https://api.github.com/repos/anmolshkl/oppia/deployments","created_at":"2016-03-18T12:17:19Z","updated_at":"2016-03-18T12:17:22Z","pushed_at":"2016-12-13T03:12:15Z","git_url":"git://github.com/anmolshkl/oppia.git","ssh_url":"git@github.com:anmolshkl/oppia.git","clone_url":"https://github.com/anmolshkl/oppia.git","svn_url":"https://github.com/anmolshkl/oppia","homepage":"https://www.oppia.org","size":48050,"stargazers_count":0,"watchers_count":0,"language":"Python","has_issues":false,"has_downloads":false,"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":"develop"}},"base":{"label":"oppia:develop","ref":"develop","sha":"46071a210b15727837acf0723c1c9caecc66f4a8","user":{"login":"oppia","id":11620230,"avatar_url":"https://avatars.githubusercontent.com/u/11620230?v=3","gravatar_id":"","url":"https://api.github.com/users/oppia","html_url":"https://github.com/oppia","followers_url":"https://api.github.com/users/oppia/followers","following_url":"https://api.github.com/users/oppia/following{/other_user}","gists_url":"https://api.github.com/users/oppia/gists{/gist_id}","starred_url":"https://api.github.com/users/oppia/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/oppia/subscriptions","organizations_url":"https://api.github.com/users/oppia/orgs","repos_url":"https://api.github.com/users/oppia/repos","events_url":"https://api.github.com/users/oppia/events{/privacy}","received_events_url":"https://api.github.com/users/oppia/received_events","type":"Organization","site_admin":false},"repo":{"id":40687563,"name":"oppia","full_name":"oppia/oppia","owner":{"login":"oppia","id":11620230,"avatar_url":"https://avatars.githubusercontent.com/u/11620230?v=3","gravatar_id":"","url":"https://api.github.com/users/oppia","html_url":"https://github.com/oppia","followers_url":"https://api.github.com/users/oppia/followers","following_url":"https://api.github.com/users/oppia/following{/other_user}","gists_url":"https://api.github.com/users/oppia/gists{/gist_id}","starred_url":"https://api.github.com/users/oppia/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/oppia/subscriptions","organizations_url":"https://api.github.com/users/oppia/orgs","repos_url":"https://api.github.com/users/oppia/repos","events_url":"https://api.github.com/users/oppia/events{/privacy}","received_events_url":"https://api.github.com/users/oppia/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/oppia/oppia","description":"Tool for collaboratively building interactive lessons.","fork":false,"url":"https://api.github.com/repos/oppia/oppia","forks_url":"https://api.github.com/repos/oppia/oppia/forks","keys_url":"https://api.github.com/repos/oppia/oppia/keys{/key_id}","collaborators_url":"https://api.github.com/repos/oppia/oppia/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/oppia/oppia/teams","hooks_url":"https://api.github.com/repos/oppia/oppia/hooks","issue_events_url":"https://api.github.com/repos/oppia/oppia/issues/events{/number}","events_url":"https://api.github.com/repos/oppia/oppia/events","assignees_url":"https://api.github.com/repos/oppia/oppia/assignees{/user}","branches_url":"https://api.github.com/repos/oppia/oppia/branches{/branch}","tags_url":"https://api.github.com/repos/oppia/oppia/tags","blobs_url":"https://api.github.com/repos/oppia/oppia/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/oppia/oppia/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/oppia/oppia/git/refs{/sha}","trees_url":"https://api.github.com/repos/oppia/oppia/git/trees{/sha}","statuses_url":"https://api.github.com/repos/oppia/oppia/statuses/{sha}","languages_url":"https://api.github.com/repos/oppia/oppia/languages","stargazers_url":"https://api.github.com/repos/oppia/oppia/stargazers","contributors_url":"https://api.github.com/repos/oppia/oppia/contributors","subscribers_url":"https://api.github.com/repos/oppia/oppia/subscribers","subscription_url":"https://api.github.com/repos/oppia/oppia/subscription","commits_url":"https://api.github.com/repos/oppia/oppia/commits{/sha}","git_commits_url":"https://api.github.com/repos/oppia/oppia/git/commits{/sha}","comments_url":"https://api.github.com/repos/oppia/oppia/comments{/number}","issue_comment_url":"https://api.github.com/repos/oppia/oppia/issues/comments{/number}","contents_url":"https://api.github.com/repos/oppia/oppia/contents/{+path}","compare_url":"https://api.github.com/repos/oppia/oppia/compare/{base}...{head}","merges_url":"https://api.github.com/repos/oppia/oppia/merges","archive_url":"https://api.github.com/repos/oppia/oppia/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/oppia/oppia/downloads","issues_url":"https://api.github.com/repos/oppia/oppia/issues{/number}","pulls_url":"https://api.github.com/repos/oppia/oppia/pulls{/number}","milestones_url":"https://api.github.com/repos/oppia/oppia/milestones{/number}","notifications_url":"https://api.github.com/repos/oppia/oppia/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/oppia/oppia/labels{/name}","releases_url":"https://api.github.com/repos/oppia/oppia/releases{/id}","deployments_url":"https://api.github.com/repos/oppia/oppia/deployments","created_at":"2015-08-14T00:16:14Z","updated_at":"2016-12-20T04:59:21Z","pushed_at":"2016-12-22T11:34:55Z","git_url":"git://github.com/oppia/oppia.git","ssh_url":"git@github.com:oppia/oppia.git","clone_url":"https://github.com/oppia/oppia.git","svn_url":"https://github.com/oppia/oppia","homepage":"https://www.oppia.org","size":48979,"stargazers_count":202,"watchers_count":202,"language":"Python","has_issues":true,"has_downloads":false,"has_wiki":true,"has_pages":false,"forks_count":308,"mirror_url":null,"open_issues_count":356,"forks":308,"open_issues":356,"watchers":202,"default_branch":"develop"}},"_links":{"self":{"href":"https://api.github.com/repos/oppia/oppia/pulls/2846"},"html":{"href":"https://github.com/oppia/oppia/pull/2846"},"issue":{"href":"https://api.github.com/repos/oppia/oppia/issues/2846"},"comments":{"href":"https://api.github.com/repos/oppia/oppia/issues/2846/comments"},"review_comments":{"href":"https://api.github.com/repos/oppia/oppia/pulls/2846/comments"},"review_comment":{"href":"https://api.github.com/repos/oppia/oppia/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/oppia/oppia/pulls/2846/commits"},"statuses":{"href":"https://api.github.com/repos/oppia/oppia/statuses/7d3ac3c4b427843b6958f42c3dfff156c88b22d1"}}}}
{"actor":{"display_login":"anmolshkl"}}