def generate_url(self):
        r_words  = [random.choice(self.get_words()) for i in range(0,7)]
        scheme   = random.choice(['http', 'https'])
        domain   = r_words[0]
        path     = '/'.join(r_words[1:3])
        query    = 'a=%s&b=%s' % (r_words[4], r_words[5])
        fragment = r_words[6]
        url      = '%s://%s.com/%s?%s#%s' % (scheme, domain, path, query, fragment)
        return url.lower()
dataset/ETHPy150Open kimpettersen/random-sublime-text-plugin/random.py/RandomUrlCommand.generate_url/original