{"action":"created","comment":{"url":"https://api.github.com/repos/TheTorProject/ooni-backend/pulls/comments/64817435","id":64817435,"diff_hunk":"@@ -168,7 +241,336 @@ def all(self, length, keyword):\n             length = 100000\n         self.write(self.genRandomPage(length, keyword))\n \n+\n+def encodeResponse(response):\n+    body = None\n+    body_length = 0\n+    if getattr(response, 'body', None):\n+        body = response.body\n+        body_length = len(response.body)\n+    return {\n+        'headers':\n+            {k.lower(): v for k, v in response.headers.getAllRawHeaders()},\n+        'code': response.code,\n+        'body_length': body_length,\n+        'body': body\n+    }\n+\n+\n+def encodeResponses(response):\n+    responses = []\n+    responses += [encodeResponse(response)]\n+    if response.previousResponse:\n+        responses += encodeResponses(response.previousResponse)\n+    return responses\n+\n+\n+TITLE_REGEXP = re.compile(\"<title>(.*?)</title>\", re.IGNORECASE | re.DOTALL)\n+\n+def extractTitle(body):\n+    m = TITLE_REGEXP.search(body, re.IGNORECASE | re.DOTALL)\n+    if m:\n+        return unicode(m.group(1), errors='ignore')\n+    return ''\n+\n+\n+class TCPConnectProtocol(Protocol):\n+    def connectionMade(self):\n+        self.transport.loseConnection()\n+\n+class TCPConnectFactory(Factory):\n+    def buildProtocol(self, addr):\n+        return TCPConnectProtocol()\n+\n+REQUEST_HEADERS = {\n+    'User-Agent': ['Mozilla/5.0 (Windows NT 6.1) AppleWebKit/537.36 (KHTML, '\n+                   'like Gecko) Chrome/47.0.2526.106 Safari/537.36'],\n+    'Accept-Language': ['en-US;q=0.8,en;q=0.5'],\n+    'Accept': ['text/html,application/xhtml+xml,application/xml;q=0.9,'\n+               '*/*;q=0.8']\n+}\n+\n+class TrueHeaders(Headers):\n+    def __init__(self, rawHeaders=None):\n+        self._rawHeaders = dict()\n+        if rawHeaders is not None:\n+            for name, values in rawHeaders.iteritems():\n+                if type(values) is list:\n+                    self.setRawHeaders(name, values[:])\n+                elif type(values) is dict:\n+                    self._rawHeaders[name.lower()] = values\n+                elif type(values) is str:\n+                    self.setRawHeaders(name, values)\n+\n+    def setRawHeaders(self, name, values):\n+        if name.lower() not in self._rawHeaders:\n+            self._rawHeaders[name.lower()] = dict()\n+        self._rawHeaders[name.lower()]['name'] = name\n+        self._rawHeaders[name.lower()]['values'] = values\n+\n+    def getAllRawHeaders(self):\n+        for k, v in self._rawHeaders.iteritems():\n+            yield v['name'], v['values']\n+\n+    def getRawHeaders(self, name, default=None):\n+        if name.lower() in self._rawHeaders:\n+            return self._rawHeaders[name.lower()]['values']\n+        return default\n+\n+class WebConnectivityCache(object):\n+    expiration_time = 200\n+    enable_caching = True\n+    http_retries = 2\n+    enable_debug = False\n+\n+    def __init__(self):\n+        self._response_types = (\n+            'http_request',\n+            'tcp_connect',\n+            'dns_consistency'\n+        )\n+        self._cache_lifecycle = {}\n+        self._cache_dir = tempfile.mkdtemp()\n+        for response_type in self._response_types:\n+            os.mkdir(os.path.join(self._cache_dir, response_type))\n+            self._cache_lifecycle[response_type] = {}\n+\n+    @defer.inlineCallbacks\n+    def expire_all(self):\n+        for response_type in self._cache_lifecycle.keys():\n+            for key_hash in self._cache_lifecycle[response_type].keys():\n+                yield self.expire(response_type, key_hash)\n+\n+    @defer.inlineCallbacks\n+    def cache_value(self, response_type, key, value):\n+        if response_type not in self._response_types:\n+            raise Exception(\"Invalid response type\")\n+        if self.enable_caching:\n+            key_hash = sha256(key).hexdigest()\n+            cache_file = os.path.join(self._cache_dir, response_type, key_hash)\n+\n+            if key_hash in self._cache_lifecycle[response_type]:\n+                yield self.expire(response_type, key_hash)\n+\n+            self._cache_lifecycle[response_type][key_hash] = {\n+                'expiration': reactor.callLater(self.expiration_time,\n+                                                self.expire,\n+                                                response_type, key_hash),\n+                'lock': defer.DeferredLock()\n+            }\n+            lock = self._cache_lifecycle[response_type][key_hash]['lock']\n+            yield lock.acquire()\n+            with open(cache_file, 'w+') as fw:\n+                json.dump(value, fw)\n+            lock.release()\n+\n+    @defer.inlineCallbacks\n+    def expire(self, response_type, key_hash):\n+        if response_type not in self._response_types:\n+            raise Exception(\"Invalid response type\")\n+        lifecycle = self._cache_lifecycle[response_type][key_hash]\n+        if lifecycle['expiration'].active():\n+            lifecycle['expiration'].cancel()\n+\n+        yield lifecycle['lock'].acquire()\n+        try:\n+            os.remove(os.path.join(self._cache_dir, response_type, key_hash))\n+        except OSError:\n+            pass\n+        lifecycle['lock'].release()\n+        del self._cache_lifecycle[response_type][key_hash]\n+\n+    @defer.inlineCallbacks\n+    def lookup(self, response_type, key):\n+        if not self.enable_caching:\n+            defer.returnValue(None)\n+\n+        key_hash = sha256(key).hexdigest()\n+        cache_file = os.path.join(self._cache_dir, response_type, key_hash)\n+\n+        if key_hash not in self._cache_lifecycle[response_type]:\n+            defer.returnValue(None)\n+\n+        lock = self._cache_lifecycle[response_type][key_hash]['lock']\n+        expiration = \\\n+            self._cache_lifecycle[response_type][key_hash]['expiration']\n+\n+        yield lock.acquire()\n+\n+        if not os.path.exists(cache_file):\n+            lock.release()\n+            defer.returnValue(None)\n+\n+        with open(cache_file, 'r') as fh:\n+            value = json.load(fh)\n+\n+        expiration.reset(self.expiration_time)\n+        lock.release()\n+        defer.returnValue(value)\n+\n+    @defer.inlineCallbacks\n+    def http_request(self, url):\n+        cached_value = yield self.lookup('http_request', url)\n+        if cached_value is not None:\n+            defer.returnValue(cached_value)\n+\n+        page_info = {\n+            'body_length': -1,\n+            'status_code': -1,\n+            'headers': {},\n+            'failure': None\n+        }\n+\n+        agent = ContentDecoderAgent(FixedRedirectAgent(Agent(reactor)),\n+                                    [('gzip', GzipDecoder)])\n+        try:\n+            retries = 0\n+            while True:\n+                try:\n+                    response = yield agent.request('GET', url,\n+                                                   TrueHeaders(REQUEST_HEADERS))\n+                    headers = {}\n+                    for name, value in response.headers.getAllRawHeaders():\n+                        headers[name] = unicode(value[0], errors='ignore')\n+                    body_length = -1\n+                    try:\n+                        body = yield readBody(response)\n+                        body_length = len(body)\n+                    except PartialDownloadError as pde:\n+                        if pde.response:\n+                            body_length = len(pde.response)\n+                    page_info['body_length'] = body_length\n+                    page_info['status_code'] = response.code\n+                    page_info['headers'] = headers\n+                    page_info['title'] = extractTitle(body)\n+                    if self.enable_debug:\n+                        response.body = body\n+                        page_info['responses'] = encodeResponses(response)\n+                    break\n+                except:\n+                    if retries > self.http_retries:\n+                        raise\n+                    retries += 1\n+        except DNSLookupError:\n+            page_info['failure'] = 'dns_lookup_error'","path":"oonib/testhelpers/http_helpers.py","position":307,"original_position":307,"commit_id":"441c7fbf9bd28fbdb170cb5548ac2abae11870ab","original_commit_id":"441c7fbf9bd28fbdb170cb5548ac2abae11870ab","user":{"login":"bassosimone","id":337298,"avatar_url":"https://avatars.githubusercontent.com/u/337298?v=3","gravatar_id":"","url":"https://api.github.com/users/bassosimone","html_url":"https://github.com/bassosimone","followers_url":"https://api.github.com/users/bassosimone/followers","following_url":"https://api.github.com/users/bassosimone/following{/other_user}","gists_url":"https://api.github.com/users/bassosimone/gists{/gist_id}","starred_url":"https://api.github.com/users/bassosimone/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bassosimone/subscriptions","organizations_url":"https://api.github.com/users/bassosimone/orgs","repos_url":"https://api.github.com/users/bassosimone/repos","events_url":"https://api.github.com/users/bassosimone/events{/privacy}","received_events_url":"https://api.github.com/users/bassosimone/received_events","type":"User","site_admin":false},"body":"wishful thinking: it would be nice to have a `dict` mapping classes to their ooni error string counterparts","created_at":"2016-05-26T20:44:46Z","updated_at":"2016-05-26T20:44:46Z","html_url":"https://github.com/TheTorProject/ooni-backend/pull/63#discussion_r64817435","pull_request_url":"https://api.github.com/repos/TheTorProject/ooni-backend/pulls/63","_links":{"self":{"href":"https://api.github.com/repos/TheTorProject/ooni-backend/pulls/comments/64817435"},"html":{"href":"https://github.com/TheTorProject/ooni-backend/pull/63#discussion_r64817435"},"pull_request":{"href":"https://api.github.com/repos/TheTorProject/ooni-backend/pulls/63"}}},"pull_request":{"url":"https://api.github.com/repos/TheTorProject/ooni-backend/pulls/63","id":62130756,"html_url":"https://github.com/TheTorProject/ooni-backend/pull/63","diff_url":"https://github.com/TheTorProject/ooni-backend/pull/63.diff","patch_url":"https://github.com/TheTorProject/ooni-backend/pull/63.patch","issue_url":"https://api.github.com/repos/TheTorProject/ooni-backend/issues/63","number":63,"state":"open","locked":false,"title":"Feature/web connectivity","user":{"login":"hellais","id":424620,"avatar_url":"https://avatars.githubusercontent.com/u/424620?v=3","gravatar_id":"","url":"https://api.github.com/users/hellais","html_url":"https://github.com/hellais","followers_url":"https://api.github.com/users/hellais/followers","following_url":"https://api.github.com/users/hellais/following{/other_user}","gists_url":"https://api.github.com/users/hellais/gists{/gist_id}","starred_url":"https://api.github.com/users/hellais/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hellais/subscriptions","organizations_url":"https://api.github.com/users/hellais/orgs","repos_url":"https://api.github.com/users/hellais/repos","events_url":"https://api.github.com/users/hellais/events{/privacy}","received_events_url":"https://api.github.com/users/hellais/received_events","type":"User","site_admin":false},"body":"","created_at":"2016-03-08T20:26:04Z","updated_at":"2016-05-26T20:44:46Z","closed_at":null,"merged_at":null,"merge_commit_sha":"5591933977d21a13e5fb11d86f02e942705953cc","assignee":{"login":"bassosimone","id":337298,"avatar_url":"https://avatars.githubusercontent.com/u/337298?v=3","gravatar_id":"","url":"https://api.github.com/users/bassosimone","html_url":"https://github.com/bassosimone","followers_url":"https://api.github.com/users/bassosimone/followers","following_url":"https://api.github.com/users/bassosimone/following{/other_user}","gists_url":"https://api.github.com/users/bassosimone/gists{/gist_id}","starred_url":"https://api.github.com/users/bassosimone/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bassosimone/subscriptions","organizations_url":"https://api.github.com/users/bassosimone/orgs","repos_url":"https://api.github.com/users/bassosimone/repos","events_url":"https://api.github.com/users/bassosimone/events{/privacy}","received_events_url":"https://api.github.com/users/bassosimone/received_events","type":"User","site_admin":false},"milestone":null,"commits_url":"https://api.github.com/repos/TheTorProject/ooni-backend/pulls/63/commits","review_comments_url":"https://api.github.com/repos/TheTorProject/ooni-backend/pulls/63/comments","review_comment_url":"https://api.github.com/repos/TheTorProject/ooni-backend/pulls/comments{/number}","comments_url":"https://api.github.com/repos/TheTorProject/ooni-backend/issues/63/comments","statuses_url":"https://api.github.com/repos/TheTorProject/ooni-backend/statuses/441c7fbf9bd28fbdb170cb5548ac2abae11870ab","head":{"label":"TheTorProject:feature/web_connectivity","ref":"feature/web_connectivity","sha":"441c7fbf9bd28fbdb170cb5548ac2abae11870ab","user":{"login":"TheTorProject","id":3301912,"avatar_url":"https://avatars.githubusercontent.com/u/3301912?v=3","gravatar_id":"","url":"https://api.github.com/users/TheTorProject","html_url":"https://github.com/TheTorProject","followers_url":"https://api.github.com/users/TheTorProject/followers","following_url":"https://api.github.com/users/TheTorProject/following{/other_user}","gists_url":"https://api.github.com/users/TheTorProject/gists{/gist_id}","starred_url":"https://api.github.com/users/TheTorProject/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/TheTorProject/subscriptions","organizations_url":"https://api.github.com/users/TheTorProject/orgs","repos_url":"https://api.github.com/users/TheTorProject/repos","events_url":"https://api.github.com/users/TheTorProject/events{/privacy}","received_events_url":"https://api.github.com/users/TheTorProject/received_events","type":"Organization","site_admin":false},"repo":{"id":8707973,"name":"ooni-backend","full_name":"TheTorProject/ooni-backend","owner":{"login":"TheTorProject","id":3301912,"avatar_url":"https://avatars.githubusercontent.com/u/3301912?v=3","gravatar_id":"","url":"https://api.github.com/users/TheTorProject","html_url":"https://github.com/TheTorProject","followers_url":"https://api.github.com/users/TheTorProject/followers","following_url":"https://api.github.com/users/TheTorProject/following{/other_user}","gists_url":"https://api.github.com/users/TheTorProject/gists{/gist_id}","starred_url":"https://api.github.com/users/TheTorProject/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/TheTorProject/subscriptions","organizations_url":"https://api.github.com/users/TheTorProject/orgs","repos_url":"https://api.github.com/users/TheTorProject/repos","events_url":"https://api.github.com/users/TheTorProject/events{/privacy}","received_events_url":"https://api.github.com/users/TheTorProject/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/TheTorProject/ooni-backend","description":"ooni-backend: the backend reporter and test helper for ooni-probe","fork":false,"url":"https://api.github.com/repos/TheTorProject/ooni-backend","forks_url":"https://api.github.com/repos/TheTorProject/ooni-backend/forks","keys_url":"https://api.github.com/repos/TheTorProject/ooni-backend/keys{/key_id}","collaborators_url":"https://api.github.com/repos/TheTorProject/ooni-backend/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/TheTorProject/ooni-backend/teams","hooks_url":"https://api.github.com/repos/TheTorProject/ooni-backend/hooks","issue_events_url":"https://api.github.com/repos/TheTorProject/ooni-backend/issues/events{/number}","events_url":"https://api.github.com/repos/TheTorProject/ooni-backend/events","assignees_url":"https://api.github.com/repos/TheTorProject/ooni-backend/assignees{/user}","branches_url":"https://api.github.com/repos/TheTorProject/ooni-backend/branches{/branch}","tags_url":"https://api.github.com/repos/TheTorProject/ooni-backend/tags","blobs_url":"https://api.github.com/repos/TheTorProject/ooni-backend/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/TheTorProject/ooni-backend/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/TheTorProject/ooni-backend/git/refs{/sha}","trees_url":"https://api.github.com/repos/TheTorProject/ooni-backend/git/trees{/sha}","statuses_url":"https://api.github.com/repos/TheTorProject/ooni-backend/statuses/{sha}","languages_url":"https://api.github.com/repos/TheTorProject/ooni-backend/languages","stargazers_url":"https://api.github.com/repos/TheTorProject/ooni-backend/stargazers","contributors_url":"https://api.github.com/repos/TheTorProject/ooni-backend/contributors","subscribers_url":"https://api.github.com/repos/TheTorProject/ooni-backend/subscribers","subscription_url":"https://api.github.com/repos/TheTorProject/ooni-backend/subscription","commits_url":"https://api.github.com/repos/TheTorProject/ooni-backend/commits{/sha}","git_commits_url":"https://api.github.com/repos/TheTorProject/ooni-backend/git/commits{/sha}","comments_url":"https://api.github.com/repos/TheTorProject/ooni-backend/comments{/number}","issue_comment_url":"https://api.github.com/repos/TheTorProject/ooni-backend/issues/comments{/number}","contents_url":"https://api.github.com/repos/TheTorProject/ooni-backend/contents/{+path}","compare_url":"https://api.github.com/repos/TheTorProject/ooni-backend/compare/{base}...{head}","merges_url":"https://api.github.com/repos/TheTorProject/ooni-backend/merges","archive_url":"https://api.github.com/repos/TheTorProject/ooni-backend/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/TheTorProject/ooni-backend/downloads","issues_url":"https://api.github.com/repos/TheTorProject/ooni-backend/issues{/number}","pulls_url":"https://api.github.com/repos/TheTorProject/ooni-backend/pulls{/number}","milestones_url":"https://api.github.com/repos/TheTorProject/ooni-backend/milestones{/number}","notifications_url":"https://api.github.com/repos/TheTorProject/ooni-backend/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/TheTorProject/ooni-backend/labels{/name}","releases_url":"https://api.github.com/repos/TheTorProject/ooni-backend/releases{/id}","deployments_url":"https://api.github.com/repos/TheTorProject/ooni-backend/deployments","created_at":"2013-03-11T16:37:48Z","updated_at":"2016-02-03T22:41:16Z","pushed_at":"2016-05-26T18:04:36Z","git_url":"git://github.com/TheTorProject/ooni-backend.git","ssh_url":"git@github.com:TheTorProject/ooni-backend.git","clone_url":"https://github.com/TheTorProject/ooni-backend.git","svn_url":"https://github.com/TheTorProject/ooni-backend","homepage":"","size":556,"stargazers_count":10,"watchers_count":10,"language":"Python","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":15,"mirror_url":null,"open_issues_count":9,"forks":15,"open_issues":9,"watchers":10,"default_branch":"master"}},"base":{"label":"TheTorProject:master","ref":"master","sha":"f03f8055d44d3bbb7cbcfb789946ba67a94e1e52","user":{"login":"TheTorProject","id":3301912,"avatar_url":"https://avatars.githubusercontent.com/u/3301912?v=3","gravatar_id":"","url":"https://api.github.com/users/TheTorProject","html_url":"https://github.com/TheTorProject","followers_url":"https://api.github.com/users/TheTorProject/followers","following_url":"https://api.github.com/users/TheTorProject/following{/other_user}","gists_url":"https://api.github.com/users/TheTorProject/gists{/gist_id}","starred_url":"https://api.github.com/users/TheTorProject/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/TheTorProject/subscriptions","organizations_url":"https://api.github.com/users/TheTorProject/orgs","repos_url":"https://api.github.com/users/TheTorProject/repos","events_url":"https://api.github.com/users/TheTorProject/events{/privacy}","received_events_url":"https://api.github.com/users/TheTorProject/received_events","type":"Organization","site_admin":false},"repo":{"id":8707973,"name":"ooni-backend","full_name":"TheTorProject/ooni-backend","owner":{"login":"TheTorProject","id":3301912,"avatar_url":"https://avatars.githubusercontent.com/u/3301912?v=3","gravatar_id":"","url":"https://api.github.com/users/TheTorProject","html_url":"https://github.com/TheTorProject","followers_url":"https://api.github.com/users/TheTorProject/followers","following_url":"https://api.github.com/users/TheTorProject/following{/other_user}","gists_url":"https://api.github.com/users/TheTorProject/gists{/gist_id}","starred_url":"https://api.github.com/users/TheTorProject/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/TheTorProject/subscriptions","organizations_url":"https://api.github.com/users/TheTorProject/orgs","repos_url":"https://api.github.com/users/TheTorProject/repos","events_url":"https://api.github.com/users/TheTorProject/events{/privacy}","received_events_url":"https://api.github.com/users/TheTorProject/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/TheTorProject/ooni-backend","description":"ooni-backend: the backend reporter and test helper for ooni-probe","fork":false,"url":"https://api.github.com/repos/TheTorProject/ooni-backend","forks_url":"https://api.github.com/repos/TheTorProject/ooni-backend/forks","keys_url":"https://api.github.com/repos/TheTorProject/ooni-backend/keys{/key_id}","collaborators_url":"https://api.github.com/repos/TheTorProject/ooni-backend/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/TheTorProject/ooni-backend/teams","hooks_url":"https://api.github.com/repos/TheTorProject/ooni-backend/hooks","issue_events_url":"https://api.github.com/repos/TheTorProject/ooni-backend/issues/events{/number}","events_url":"https://api.github.com/repos/TheTorProject/ooni-backend/events","assignees_url":"https://api.github.com/repos/TheTorProject/ooni-backend/assignees{/user}","branches_url":"https://api.github.com/repos/TheTorProject/ooni-backend/branches{/branch}","tags_url":"https://api.github.com/repos/TheTorProject/ooni-backend/tags","blobs_url":"https://api.github.com/repos/TheTorProject/ooni-backend/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/TheTorProject/ooni-backend/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/TheTorProject/ooni-backend/git/refs{/sha}","trees_url":"https://api.github.com/repos/TheTorProject/ooni-backend/git/trees{/sha}","statuses_url":"https://api.github.com/repos/TheTorProject/ooni-backend/statuses/{sha}","languages_url":"https://api.github.com/repos/TheTorProject/ooni-backend/languages","stargazers_url":"https://api.github.com/repos/TheTorProject/ooni-backend/stargazers","contributors_url":"https://api.github.com/repos/TheTorProject/ooni-backend/contributors","subscribers_url":"https://api.github.com/repos/TheTorProject/ooni-backend/subscribers","subscription_url":"https://api.github.com/repos/TheTorProject/ooni-backend/subscription","commits_url":"https://api.github.com/repos/TheTorProject/ooni-backend/commits{/sha}","git_commits_url":"https://api.github.com/repos/TheTorProject/ooni-backend/git/commits{/sha}","comments_url":"https://api.github.com/repos/TheTorProject/ooni-backend/comments{/number}","issue_comment_url":"https://api.github.com/repos/TheTorProject/ooni-backend/issues/comments{/number}","contents_url":"https://api.github.com/repos/TheTorProject/ooni-backend/contents/{+path}","compare_url":"https://api.github.com/repos/TheTorProject/ooni-backend/compare/{base}...{head}","merges_url":"https://api.github.com/repos/TheTorProject/ooni-backend/merges","archive_url":"https://api.github.com/repos/TheTorProject/ooni-backend/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/TheTorProject/ooni-backend/downloads","issues_url":"https://api.github.com/repos/TheTorProject/ooni-backend/issues{/number}","pulls_url":"https://api.github.com/repos/TheTorProject/ooni-backend/pulls{/number}","milestones_url":"https://api.github.com/repos/TheTorProject/ooni-backend/milestones{/number}","notifications_url":"https://api.github.com/repos/TheTorProject/ooni-backend/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/TheTorProject/ooni-backend/labels{/name}","releases_url":"https://api.github.com/repos/TheTorProject/ooni-backend/releases{/id}","deployments_url":"https://api.github.com/repos/TheTorProject/ooni-backend/deployments","created_at":"2013-03-11T16:37:48Z","updated_at":"2016-02-03T22:41:16Z","pushed_at":"2016-05-26T18:04:36Z","git_url":"git://github.com/TheTorProject/ooni-backend.git","ssh_url":"git@github.com:TheTorProject/ooni-backend.git","clone_url":"https://github.com/TheTorProject/ooni-backend.git","svn_url":"https://github.com/TheTorProject/ooni-backend","homepage":"","size":556,"stargazers_count":10,"watchers_count":10,"language":"Python","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":15,"mirror_url":null,"open_issues_count":9,"forks":15,"open_issues":9,"watchers":10,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/TheTorProject/ooni-backend/pulls/63"},"html":{"href":"https://github.com/TheTorProject/ooni-backend/pull/63"},"issue":{"href":"https://api.github.com/repos/TheTorProject/ooni-backend/issues/63"},"comments":{"href":"https://api.github.com/repos/TheTorProject/ooni-backend/issues/63/comments"},"review_comments":{"href":"https://api.github.com/repos/TheTorProject/ooni-backend/pulls/63/comments"},"review_comment":{"href":"https://api.github.com/repos/TheTorProject/ooni-backend/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/TheTorProject/ooni-backend/pulls/63/commits"},"statuses":{"href":"https://api.github.com/repos/TheTorProject/ooni-backend/statuses/441c7fbf9bd28fbdb170cb5548ac2abae11870ab"}}}}
{"actor":{"display_login":"bassosimone"}}