def request_test(self, domain, location):
        params = {'f': 'json', 'url': domain, 'location': location}
        if self.key:
            params['k'] = self.key

        request = requests.get("{0}/runtest.php".format(self.wpt_url),
                               params=params)
        return request.json()
Calculates a Charikar simhash with appropriate bitlength.
dataset/ETHPy150Open StackStorm/st2contrib/packs/webpagetest/actions/lib/webpagetest.py/WebPageTestAction.request_test--crossover with--dataset/ETHPy150Open androguard/androguard/elsim/elsim/similarity/simhash.py/simhash.create_hash