{"action":"created","comment":{"url":"https://api.github.com/repos/oppia/oppia/pulls/comments/48330922","id":48330922,"diff_hunk":"@@ -336,3 +344,243 @@ def _get_email(n):\n             self.assertEqual(\n                 response_dict['messages'][num + 1]['text'],\n                 'New Message %s' % num)\n+\n+    def _return_true(self, thread_id, exploration_id):\n+        return True\n+\n+    def _return_false(self, thread_id, exploration_id):\n+        return False\n+\n+    def _return_null(self, param_one, param_two, param_three, param_four):\n+        return None\n+\n+    def _return_null(self):\n+        return None\n+\n+    def _create_suggestions(self):\n+        # Login and create exploration and suggestions.        \n+        self.login(self.EDITOR_EMAIL)\n+        response = self.testapp.get('/create/%s' % self.EXP_ID)\n+        csrf_token = self.get_csrf_token_from_response(response)\n+        # Create exploration.\n+        self.EXP_ID = 'eid'\n+        self.save_new_valid_exploration(\n+            self.EXP_ID, self.editor_id,\n+            title='Exploration for suggestions',\n+            category='This is just a test category',\n+            objective='Test a suggestion.')\n+\n+        exploration = exp_services.get_exploration_by_id(self.EXP_ID)\n+        init_state = exploration.states[exploration.init_state_name]\n+        init_interaction = init_state.interaction\n+        init_interaction.default_outcome.dest = exploration.init_state_name\n+        exploration.add_states(['State A', 'State 2', 'State 3'])\n+        exploration.states['State A'].update_interaction_id('TextInput')\n+        exploration.states['State 2'].update_interaction_id('TextInput')\n+        exploration.states['State 3'].update_interaction_id('TextInput')\n+        exp_services._save_exploration(self.editor_id, exploration, '', [])\n+        rights_manager.publish_exploration(self.editor_id, self.EXP_ID)\n+        rights_manager.assign_role_for_exploration(\n+            self.editor_id, self.EXP_ID, self.owner_id,\n+            rights_manager.ROLE_EDITOR)\n+        # Create suggestions.\n+        self.post_json(\n+            '%s/%s' % (feconf.SUGGESTION_URL_PREFIX, self.EXP_ID), {\n+                'exploration_version': 3,\n+                'state_name': u'State A',\n+                'suggestion_content': {\n+                    'type': 'text', 'value': u'some new value'},\n+            }, csrf_token)\n+        self.post_json(\n+            '%s/%s' % (feconf.SUGGESTION_URL_PREFIX, self.EXP_ID), {\n+                'exploration_version': 1,\n+                'state_name': u'State 2',\n+                'suggestion_content': {\n+                    'type': 'text', 'value': 'some new value'},\n+            }, csrf_token)\n+        self.post_json(\n+            '%s/%s' % (feconf.SUGGESTION_URL_PREFIX, self.EXP_ID), {\n+                'exploration_version': 2,\n+                'state_name': u'State 3',\n+                'suggestion_content': {'type': 'text', 'value': ''},\n+            }, csrf_token)\n+        self.post_json(\n+            '%s/%s' % (feconf.SUGGESTION_URL_PREFIX, self.EXP_ID), {\n+                'exploration_version': 2,\n+                'state_name': u'State A',\n+                'suggestion_content': {'type': 'text', 'value': ' '},\n+            }, csrf_token)\n+        self.post_json(\n+            '%s/%s' % (feconf.SUGGESTION_URL_PREFIX, self.EXP_ID), {\n+                'exploration_version': 1,\n+                'state_name': u'State 2',\n+                'suggestion_content': {'type': 'text', 'value': '#!$%'},\n+            }, csrf_token)\n+        self.post_json(\n+            '%s/%s' % (feconf.SUGGESTION_URL_PREFIX, self.EXP_ID), {\n+                'exploration_version': 2,\n+                'state_name': u'State 3',\n+                'suggestion_content': {'type': 'text', 'value': u'#!$%'},\n+            }, csrf_token)\n+        self.logout()\n+        \n+    def test_create_and_fetch_suggestions(self):\n+        self._create_suggestions()\n+        self.login(self.EDITOR_EMAIL)\n+        csrf_token = self.get_csrf_token_from_response(\n+            self.testapp.get('/create/%s' % self.EXP_ID))\n+        # Create a thread without suggestions.\n+        self.post_json( \n+            '%s/%s' % (feconf.FEEDBACK_THREADLIST_URL_PREFIX, self.EXP_ID), {\n+                'state_name': None,\n+                'subject': u'New Thread ¡unicode!',\n+                'text': 'Message 0'}, csrf_token)     \n+\n+        # Get a list of open threads without suggestions. \n+        response_dict = self.get_json( \n+            '%s/%s?list_type=%s&has_suggestion=%s' % ( \n+                feconf.SUGGESTION_LIST_URL_PREFIX, self.EXP_ID,\n+                'open', 'false'))  \n+        self.assertEqual(len(response_dict['threads']), 1)       \n+ \n+        # Get a list of all threads with suggestion. \n+        response_dict = self.get_json(\n+            '%s/%s?list_type=%s&has_suggestion=%s' % ( \n+            feconf.SUGGESTION_LIST_URL_PREFIX, self.EXP_ID, 'all', 'true'))\n+        threads = response_dict['threads']\n+        self.assertEqual(len(threads), 6)\n+\n+        # Get a suggestion.\n+        thread_id_1 = threads[0]['thread_id']\n+        response_dict = self.get_json(\n+            '%s/%s/%s' % (feconf.FEEDBACK_THREAD_URL_PREFIX,\n+                          self.EXP_ID, thread_id_1.split('.')[1]))\n+        self.assertEqual(\n+            response_dict['suggestion']['id'], thread_id_1)\n+\n+        # Test invalid list type in GET request. We are using testapp.get()\n+        # here because get_json() with expect_errors=True does not work as\n+        # expected. Please look at the doc string for get_json() for details.\n+        response_dict = self.testapp.get(\n+            '%s/%s?list_type=%s&has_suggestion=%s' % ( \n+            feconf.SUGGESTION_LIST_URL_PREFIX, self.EXP_ID, 'clsed', 'true'),\n+            status=400, expect_errors=True)\n+        self.assertEqual(response_dict.status_int, 400)\n+\n+    def _accept_suggestion(self, thread_id, method_to_call, csrf_token,\n+                           expect_errors=False, expected_status_int=200):\n+        with self.swap(exp_domain.Exploration, '_verify_all_states_reachable',\n+                       self._return_null):\n+            with self.swap(exp_domain.Exploration, '_verify_no_dead_ends',\n+                           self._return_null):\n+                return self.put_json(\n+                    '%s/%s/%s' % (feconf.SUGGESTION_ACTION_URL_PREFIX,\n+                                  self.EXP_ID, thread_id.split('.')[1]), \n+                    {'action': u'accept'}, csrf_token,\n+                    expect_errors=expect_errors, \n+                    expected_status_int=expected_status_int)\n+\n+    def _reject_suggestion(self, thread_id, method_to_call, csrf_token,\n+                           expect_errors=False, expected_status_int=200):\n+        with self.swap(rights_manager.Actor, 'can_edit',\n+                       method_to_call):\n+            return self.put_json(\n+                '%s/%s/%s' % (feconf.SUGGESTION_ACTION_URL_PREFIX,\n+                              self.EXP_ID, thread_id.split('.')[1]), \n+                {'action': u'reject'}, csrf_token, expect_errors=expect_errors,\n+                expected_status_int=expected_status_int)\n+    \n+    def test_action_suggestions(self):\n+        self._create_suggestions()\n+        self.login(self.EDITOR_EMAIL)\n+        csrf_token = self.get_csrf_token_from_response(\n+            self.testapp.get('/create/%s' % self.EXP_ID))\n+        response_dict = self.get_json(\n+            '%s/%s?list_type=%s&has_suggestion=%s' % ( \n+            feconf.SUGGESTION_LIST_URL_PREFIX, self.EXP_ID, 'all', 'true'))\n+        threads = response_dict['threads']\n+        thread_id_1 = threads[0]['thread_id']\n+        thread_id_2 = threads[1]['thread_id']\n+        thread_id_3 = threads[2]['thread_id']\n+\n+        # Accept a suggestion.\n+        self._accept_suggestion(thread_id_1, self._return_true, csrf_token)\n+        updated_exploration = exp_services.get_exploration_by_id(self.EXP_ID)\n+        self.assertEqual(\n+            updated_exploration.states['State A'].content[0].to_dict(),\n+            feedback_services.get_suggestion(","path":"core/controllers/feedback_test.py","position":250,"original_position":250,"commit_id":"f5034c63c285bfe89e832d34b914d2e62fc12982","original_commit_id":"f5034c63c285bfe89e832d34b914d2e62fc12982","user":{"login":"sbhowmik89","id":8260362,"avatar_url":"https://avatars.githubusercontent.com/u/8260362?v=3","gravatar_id":"","url":"https://api.github.com/users/sbhowmik89","html_url":"https://github.com/sbhowmik89","followers_url":"https://api.github.com/users/sbhowmik89/followers","following_url":"https://api.github.com/users/sbhowmik89/following{/other_user}","gists_url":"https://api.github.com/users/sbhowmik89/gists{/gist_id}","starred_url":"https://api.github.com/users/sbhowmik89/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sbhowmik89/subscriptions","organizations_url":"https://api.github.com/users/sbhowmik89/orgs","repos_url":"https://api.github.com/users/sbhowmik89/repos","events_url":"https://api.github.com/users/sbhowmik89/events{/privacy}","received_events_url":"https://api.github.com/users/sbhowmik89/received_events","type":"User","site_admin":false},"body":"Done.","created_at":"2015-12-23T09:16:29Z","updated_at":"2015-12-23T09:16:29Z","html_url":"https://github.com/oppia/oppia/pull/1126#discussion_r48330922","pull_request_url":"https://api.github.com/repos/oppia/oppia/pulls/1126","_links":{"self":{"href":"https://api.github.com/repos/oppia/oppia/pulls/comments/48330922"},"html":{"href":"https://github.com/oppia/oppia/pull/1126#discussion_r48330922"},"pull_request":{"href":"https://api.github.com/repos/oppia/oppia/pulls/1126"}}},"pull_request":{"url":"https://api.github.com/repos/oppia/oppia/pulls/1126","id":50539140,"html_url":"https://github.com/oppia/oppia/pull/1126","diff_url":"https://github.com/oppia/oppia/pull/1126.diff","patch_url":"https://github.com/oppia/oppia/pull/1126.patch","issue_url":"https://api.github.com/repos/oppia/oppia/issues/1126","number":1126,"state":"open","locked":false,"title":"Handler changes for suggestions.","user":{"login":"sbhowmik89","id":8260362,"avatar_url":"https://avatars.githubusercontent.com/u/8260362?v=3","gravatar_id":"","url":"https://api.github.com/users/sbhowmik89","html_url":"https://github.com/sbhowmik89","followers_url":"https://api.github.com/users/sbhowmik89/followers","following_url":"https://api.github.com/users/sbhowmik89/following{/other_user}","gists_url":"https://api.github.com/users/sbhowmik89/gists{/gist_id}","starred_url":"https://api.github.com/users/sbhowmik89/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sbhowmik89/subscriptions","organizations_url":"https://api.github.com/users/sbhowmik89/orgs","repos_url":"https://api.github.com/users/sbhowmik89/repos","events_url":"https://api.github.com/users/sbhowmik89/events{/privacy}","received_events_url":"https://api.github.com/users/sbhowmik89/received_events","type":"User","site_admin":false},"body":"Handler changes for learner suggestions. @seanlip Please review.","created_at":"2015-11-12T17:12:26Z","updated_at":"2015-12-23T09:16:29Z","closed_at":null,"merged_at":null,"merge_commit_sha":"7f1b4c2903cb2f24a1d8b734044c156b1f6de620","assignee":{"login":"seanlip","id":10575562,"avatar_url":"https://avatars.githubusercontent.com/u/10575562?v=3","gravatar_id":"","url":"https://api.github.com/users/seanlip","html_url":"https://github.com/seanlip","followers_url":"https://api.github.com/users/seanlip/followers","following_url":"https://api.github.com/users/seanlip/following{/other_user}","gists_url":"https://api.github.com/users/seanlip/gists{/gist_id}","starred_url":"https://api.github.com/users/seanlip/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/seanlip/subscriptions","organizations_url":"https://api.github.com/users/seanlip/orgs","repos_url":"https://api.github.com/users/seanlip/repos","events_url":"https://api.github.com/users/seanlip/events{/privacy}","received_events_url":"https://api.github.com/users/seanlip/received_events","type":"User","site_admin":false},"milestone":null,"commits_url":"https://api.github.com/repos/oppia/oppia/pulls/1126/commits","review_comments_url":"https://api.github.com/repos/oppia/oppia/pulls/1126/comments","review_comment_url":"https://api.github.com/repos/oppia/oppia/pulls/comments{/number}","comments_url":"https://api.github.com/repos/oppia/oppia/issues/1126/comments","statuses_url":"https://api.github.com/repos/oppia/oppia/statuses/f5034c63c285bfe89e832d34b914d2e62fc12982","head":{"label":"sbhowmik89:suggestionhandler","ref":"suggestionhandler","sha":"f5034c63c285bfe89e832d34b914d2e62fc12982","user":{"login":"sbhowmik89","id":8260362,"avatar_url":"https://avatars.githubusercontent.com/u/8260362?v=3","gravatar_id":"","url":"https://api.github.com/users/sbhowmik89","html_url":"https://github.com/sbhowmik89","followers_url":"https://api.github.com/users/sbhowmik89/followers","following_url":"https://api.github.com/users/sbhowmik89/following{/other_user}","gists_url":"https://api.github.com/users/sbhowmik89/gists{/gist_id}","starred_url":"https://api.github.com/users/sbhowmik89/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sbhowmik89/subscriptions","organizations_url":"https://api.github.com/users/sbhowmik89/orgs","repos_url":"https://api.github.com/users/sbhowmik89/repos","events_url":"https://api.github.com/users/sbhowmik89/events{/privacy}","received_events_url":"https://api.github.com/users/sbhowmik89/received_events","type":"User","site_admin":false},"repo":{"id":42437530,"name":"oppia","full_name":"sbhowmik89/oppia","owner":{"login":"sbhowmik89","id":8260362,"avatar_url":"https://avatars.githubusercontent.com/u/8260362?v=3","gravatar_id":"","url":"https://api.github.com/users/sbhowmik89","html_url":"https://github.com/sbhowmik89","followers_url":"https://api.github.com/users/sbhowmik89/followers","following_url":"https://api.github.com/users/sbhowmik89/following{/other_user}","gists_url":"https://api.github.com/users/sbhowmik89/gists{/gist_id}","starred_url":"https://api.github.com/users/sbhowmik89/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sbhowmik89/subscriptions","organizations_url":"https://api.github.com/users/sbhowmik89/orgs","repos_url":"https://api.github.com/users/sbhowmik89/repos","events_url":"https://api.github.com/users/sbhowmik89/events{/privacy}","received_events_url":"https://api.github.com/users/sbhowmik89/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/sbhowmik89/oppia","description":"Tool for creating interactive tutors.","fork":true,"url":"https://api.github.com/repos/sbhowmik89/oppia","forks_url":"https://api.github.com/repos/sbhowmik89/oppia/forks","keys_url":"https://api.github.com/repos/sbhowmik89/oppia/keys{/key_id}","collaborators_url":"https://api.github.com/repos/sbhowmik89/oppia/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/sbhowmik89/oppia/teams","hooks_url":"https://api.github.com/repos/sbhowmik89/oppia/hooks","issue_events_url":"https://api.github.com/repos/sbhowmik89/oppia/issues/events{/number}","events_url":"https://api.github.com/repos/sbhowmik89/oppia/events","assignees_url":"https://api.github.com/repos/sbhowmik89/oppia/assignees{/user}","branches_url":"https://api.github.com/repos/sbhowmik89/oppia/branches{/branch}","tags_url":"https://api.github.com/repos/sbhowmik89/oppia/tags","blobs_url":"https://api.github.com/repos/sbhowmik89/oppia/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/sbhowmik89/oppia/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/sbhowmik89/oppia/git/refs{/sha}","trees_url":"https://api.github.com/repos/sbhowmik89/oppia/git/trees{/sha}","statuses_url":"https://api.github.com/repos/sbhowmik89/oppia/statuses/{sha}","languages_url":"https://api.github.com/repos/sbhowmik89/oppia/languages","stargazers_url":"https://api.github.com/repos/sbhowmik89/oppia/stargazers","contributors_url":"https://api.github.com/repos/sbhowmik89/oppia/contributors","subscribers_url":"https://api.github.com/repos/sbhowmik89/oppia/subscribers","subscription_url":"https://api.github.com/repos/sbhowmik89/oppia/subscription","commits_url":"https://api.github.com/repos/sbhowmik89/oppia/commits{/sha}","git_commits_url":"https://api.github.com/repos/sbhowmik89/oppia/git/commits{/sha}","comments_url":"https://api.github.com/repos/sbhowmik89/oppia/comments{/number}","issue_comment_url":"https://api.github.com/repos/sbhowmik89/oppia/issues/comments{/number}","contents_url":"https://api.github.com/repos/sbhowmik89/oppia/contents/{+path}","compare_url":"https://api.github.com/repos/sbhowmik89/oppia/compare/{base}...{head}","merges_url":"https://api.github.com/repos/sbhowmik89/oppia/merges","archive_url":"https://api.github.com/repos/sbhowmik89/oppia/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/sbhowmik89/oppia/downloads","issues_url":"https://api.github.com/repos/sbhowmik89/oppia/issues{/number}","pulls_url":"https://api.github.com/repos/sbhowmik89/oppia/pulls{/number}","milestones_url":"https://api.github.com/repos/sbhowmik89/oppia/milestones{/number}","notifications_url":"https://api.github.com/repos/sbhowmik89/oppia/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/sbhowmik89/oppia/labels{/name}","releases_url":"https://api.github.com/repos/sbhowmik89/oppia/releases{/id}","created_at":"2015-09-14T08:48:41Z","updated_at":"2015-09-14T08:48:43Z","pushed_at":"2015-12-08T03:53:09Z","git_url":"git://github.com/sbhowmik89/oppia.git","ssh_url":"git@github.com:sbhowmik89/oppia.git","clone_url":"https://github.com/sbhowmik89/oppia.git","svn_url":"https://github.com/sbhowmik89/oppia","homepage":"https://www.oppia.org","size":38249,"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:suggestions","ref":"suggestions","sha":"a8a1831b1e5a8849e90a610d1bd4dc9e45c0a8fd","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 tutors.","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}","created_at":"2015-08-14T00:16:14Z","updated_at":"2015-12-23T05:53:33Z","pushed_at":"2015-12-23T06:13:02Z","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":44634,"stargazers_count":64,"watchers_count":64,"language":"Python","has_issues":true,"has_downloads":false,"has_wiki":true,"has_pages":false,"forks_count":87,"mirror_url":null,"open_issues_count":240,"forks":87,"open_issues":240,"watchers":64,"default_branch":"develop"}},"_links":{"self":{"href":"https://api.github.com/repos/oppia/oppia/pulls/1126"},"html":{"href":"https://github.com/oppia/oppia/pull/1126"},"issue":{"href":"https://api.github.com/repos/oppia/oppia/issues/1126"},"comments":{"href":"https://api.github.com/repos/oppia/oppia/issues/1126/comments"},"review_comments":{"href":"https://api.github.com/repos/oppia/oppia/pulls/1126/comments"},"review_comment":{"href":"https://api.github.com/repos/oppia/oppia/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/oppia/oppia/pulls/1126/commits"},"statuses":{"href":"https://api.github.com/repos/oppia/oppia/statuses/f5034c63c285bfe89e832d34b914d2e62fc12982"}}}}