{"action":"created","comment":{"url":"https://api.github.com/repos/oppia/oppia/pulls/comments/104231254","pull_request_review_id":25057894,"id":104231254,"diff_hunk":"@@ -118,3 +122,93 @@ def classify_string_classifier_rule(state, normalized_answer):\n             return None\n \n     return None\n+\n+\n+def get_classifier_from_model(classifier_model):\n+    \"\"\"Gets a classifier domain object from a classifier model.\n+\n+    Args:\n+        classifier_model: Classifier model instance in datastore.\n+\n+    Returns:\n+        classifier: Domain object for the classifier.\n+    \"\"\"\n+    return classifier_domain.Classifier(\n+        classifier_model.id, classifier_model.exp_id,\n+        classifier_model.exp_version_when_created,\n+        classifier_model.state_name, classifier_model.algorithm_id,\n+        classifier_model.cached_classifier_data,\n+        classifier_model.data_schema_version)\n+\n+def get_classifier_by_id(classifier_id):","path":"core/domain/classifier_services.py","position":null,"original_position":39,"commit_id":"2f178001379f7a1753f4e4dad2fa8209b7f2fba1","original_commit_id":"357d239c9730953d176d3d381126887edd80c4e2","user":{"login":"giritheja","id":8845039,"avatar_url":"https://avatars2.githubusercontent.com/u/8845039?v=3","gravatar_id":"","url":"https://api.github.com/users/giritheja","html_url":"https://github.com/giritheja","followers_url":"https://api.github.com/users/giritheja/followers","following_url":"https://api.github.com/users/giritheja/following{/other_user}","gists_url":"https://api.github.com/users/giritheja/gists{/gist_id}","starred_url":"https://api.github.com/users/giritheja/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/giritheja/subscriptions","organizations_url":"https://api.github.com/users/giritheja/orgs","repos_url":"https://api.github.com/users/giritheja/repos","events_url":"https://api.github.com/users/giritheja/events{/privacy}","received_events_url":"https://api.github.com/users/giritheja/received_events","type":"User","site_admin":false},"body":"Done.","created_at":"2017-03-03T19:58:38Z","updated_at":"2017-03-03T19:58:38Z","html_url":"https://github.com/oppia/oppia/pull/3070#discussion_r104231254","pull_request_url":"https://api.github.com/repos/oppia/oppia/pulls/3070","_links":{"self":{"href":"https://api.github.com/repos/oppia/oppia/pulls/comments/104231254"},"html":{"href":"https://github.com/oppia/oppia/pull/3070#discussion_r104231254"},"pull_request":{"href":"https://api.github.com/repos/oppia/oppia/pulls/3070"}}},"pull_request":{"url":"https://api.github.com/repos/oppia/oppia/pulls/3070","id":106385180,"html_url":"https://github.com/oppia/oppia/pull/3070","diff_url":"https://github.com/oppia/oppia/pull/3070.diff","patch_url":"https://github.com/oppia/oppia/pull/3070.patch","issue_url":"https://api.github.com/repos/oppia/oppia/issues/3070","number":3070,"state":"open","locked":false,"title":"Fix #2986: Add helper functions to classifier_services.py","user":{"login":"giritheja","id":8845039,"avatar_url":"https://avatars2.githubusercontent.com/u/8845039?v=3","gravatar_id":"","url":"https://api.github.com/users/giritheja","html_url":"https://github.com/giritheja","followers_url":"https://api.github.com/users/giritheja/followers","following_url":"https://api.github.com/users/giritheja/following{/other_user}","gists_url":"https://api.github.com/users/giritheja/gists{/gist_id}","starred_url":"https://api.github.com/users/giritheja/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/giritheja/subscriptions","organizations_url":"https://api.github.com/users/giritheja/orgs","repos_url":"https://api.github.com/users/giritheja/repos","events_url":"https://api.github.com/users/giritheja/events{/privacy}","received_events_url":"https://api.github.com/users/giritheja/received_events","type":"User","site_admin":false},"body":"This PR fixes #2986 . \r\nIt adds helper function to classifier_services.py","created_at":"2017-02-15T19:47:11Z","updated_at":"2017-03-03T19:58:38Z","closed_at":null,"merged_at":null,"merge_commit_sha":"3b5debfb595f0911efedf583091e98ffbd8d7fd0","assignee":{"login":"anmolshkl","id":6338799,"avatar_url":"https://avatars3.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},"assignees":[{"login":"anmolshkl","id":6338799,"avatar_url":"https://avatars3.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/3070/commits","review_comments_url":"https://api.github.com/repos/oppia/oppia/pulls/3070/comments","review_comment_url":"https://api.github.com/repos/oppia/oppia/pulls/comments{/number}","comments_url":"https://api.github.com/repos/oppia/oppia/issues/3070/comments","statuses_url":"https://api.github.com/repos/oppia/oppia/statuses/2f178001379f7a1753f4e4dad2fa8209b7f2fba1","head":{"label":"giritheja:classifier-services","ref":"classifier-services","sha":"2f178001379f7a1753f4e4dad2fa8209b7f2fba1","user":{"login":"giritheja","id":8845039,"avatar_url":"https://avatars2.githubusercontent.com/u/8845039?v=3","gravatar_id":"","url":"https://api.github.com/users/giritheja","html_url":"https://github.com/giritheja","followers_url":"https://api.github.com/users/giritheja/followers","following_url":"https://api.github.com/users/giritheja/following{/other_user}","gists_url":"https://api.github.com/users/giritheja/gists{/gist_id}","starred_url":"https://api.github.com/users/giritheja/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/giritheja/subscriptions","organizations_url":"https://api.github.com/users/giritheja/orgs","repos_url":"https://api.github.com/users/giritheja/repos","events_url":"https://api.github.com/users/giritheja/events{/privacy}","received_events_url":"https://api.github.com/users/giritheja/received_events","type":"User","site_admin":false},"repo":{"id":53139862,"name":"oppia","full_name":"giritheja/oppia","owner":{"login":"giritheja","id":8845039,"avatar_url":"https://avatars2.githubusercontent.com/u/8845039?v=3","gravatar_id":"","url":"https://api.github.com/users/giritheja","html_url":"https://github.com/giritheja","followers_url":"https://api.github.com/users/giritheja/followers","following_url":"https://api.github.com/users/giritheja/following{/other_user}","gists_url":"https://api.github.com/users/giritheja/gists{/gist_id}","starred_url":"https://api.github.com/users/giritheja/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/giritheja/subscriptions","organizations_url":"https://api.github.com/users/giritheja/orgs","repos_url":"https://api.github.com/users/giritheja/repos","events_url":"https://api.github.com/users/giritheja/events{/privacy}","received_events_url":"https://api.github.com/users/giritheja/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/giritheja/oppia","description":"Tool for collaboratively building intelligent tutors.","fork":true,"url":"https://api.github.com/repos/giritheja/oppia","forks_url":"https://api.github.com/repos/giritheja/oppia/forks","keys_url":"https://api.github.com/repos/giritheja/oppia/keys{/key_id}","collaborators_url":"https://api.github.com/repos/giritheja/oppia/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/giritheja/oppia/teams","hooks_url":"https://api.github.com/repos/giritheja/oppia/hooks","issue_events_url":"https://api.github.com/repos/giritheja/oppia/issues/events{/number}","events_url":"https://api.github.com/repos/giritheja/oppia/events","assignees_url":"https://api.github.com/repos/giritheja/oppia/assignees{/user}","branches_url":"https://api.github.com/repos/giritheja/oppia/branches{/branch}","tags_url":"https://api.github.com/repos/giritheja/oppia/tags","blobs_url":"https://api.github.com/repos/giritheja/oppia/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/giritheja/oppia/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/giritheja/oppia/git/refs{/sha}","trees_url":"https://api.github.com/repos/giritheja/oppia/git/trees{/sha}","statuses_url":"https://api.github.com/repos/giritheja/oppia/statuses/{sha}","languages_url":"https://api.github.com/repos/giritheja/oppia/languages","stargazers_url":"https://api.github.com/repos/giritheja/oppia/stargazers","contributors_url":"https://api.github.com/repos/giritheja/oppia/contributors","subscribers_url":"https://api.github.com/repos/giritheja/oppia/subscribers","subscription_url":"https://api.github.com/repos/giritheja/oppia/subscription","commits_url":"https://api.github.com/repos/giritheja/oppia/commits{/sha}","git_commits_url":"https://api.github.com/repos/giritheja/oppia/git/commits{/sha}","comments_url":"https://api.github.com/repos/giritheja/oppia/comments{/number}","issue_comment_url":"https://api.github.com/repos/giritheja/oppia/issues/comments{/number}","contents_url":"https://api.github.com/repos/giritheja/oppia/contents/{+path}","compare_url":"https://api.github.com/repos/giritheja/oppia/compare/{base}...{head}","merges_url":"https://api.github.com/repos/giritheja/oppia/merges","archive_url":"https://api.github.com/repos/giritheja/oppia/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/giritheja/oppia/downloads","issues_url":"https://api.github.com/repos/giritheja/oppia/issues{/number}","pulls_url":"https://api.github.com/repos/giritheja/oppia/pulls{/number}","milestones_url":"https://api.github.com/repos/giritheja/oppia/milestones{/number}","notifications_url":"https://api.github.com/repos/giritheja/oppia/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/giritheja/oppia/labels{/name}","releases_url":"https://api.github.com/repos/giritheja/oppia/releases{/id}","deployments_url":"https://api.github.com/repos/giritheja/oppia/deployments","created_at":"2016-03-04T14:14:16Z","updated_at":"2016-03-04T14:14:19Z","pushed_at":"2017-03-03T19:55:47Z","git_url":"git://github.com/giritheja/oppia.git","ssh_url":"git@github.com:giritheja/oppia.git","clone_url":"https://github.com/giritheja/oppia.git","svn_url":"https://github.com/giritheja/oppia","homepage":"https://www.oppia.org","size":48820,"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":"31dc125242a0fb2f2f9692807b5fbb03c543fdb7","user":{"login":"oppia","id":11620230,"avatar_url":"https://avatars2.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://avatars2.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":"2017-03-03T19:22:50Z","pushed_at":"2017-03-03T19:58:22Z","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":49902,"stargazers_count":231,"watchers_count":231,"language":"Python","has_issues":true,"has_downloads":false,"has_wiki":true,"has_pages":false,"forks_count":365,"mirror_url":null,"open_issues_count":359,"forks":365,"open_issues":359,"watchers":231,"default_branch":"develop"}},"_links":{"self":{"href":"https://api.github.com/repos/oppia/oppia/pulls/3070"},"html":{"href":"https://github.com/oppia/oppia/pull/3070"},"issue":{"href":"https://api.github.com/repos/oppia/oppia/issues/3070"},"comments":{"href":"https://api.github.com/repos/oppia/oppia/issues/3070/comments"},"review_comments":{"href":"https://api.github.com/repos/oppia/oppia/pulls/3070/comments"},"review_comment":{"href":"https://api.github.com/repos/oppia/oppia/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/oppia/oppia/pulls/3070/commits"},"statuses":{"href":"https://api.github.com/repos/oppia/oppia/statuses/2f178001379f7a1753f4e4dad2fa8209b7f2fba1"}}}}
{"actor":{"display_login":"giritheja"}}