def debase(self, x):
        n = len(self.alphabet)
        result = 0
        for i, c in enumerate(reversed(x)):
            result += self.alphabet.index(c) * (n ** i)
        return result
dataset/ETHPy150Open mozillazg/ShortURL/shorturl/libs/short_url.py/UrlEncoder.debase/original