def gcd(self, a, b):
        try:
            ring = self.get_ring()
        except DomainError:
            return self.one

        p = ring.gcd(self.numer(a), self.numer(b))
        q = ring.lcm(self.denom(a), self.denom(b))

        return self.convert(p, ring)/q
Override the default user agent
dataset/ETHPy150Open sympy/sympy/sympy/polys/domains/field.py/Field.gcd--crossover with--dataset/ETHPy150Open abarmat/python-oembed/oembed/__init__.py/OEmbedEndpoint.setUserAgent