4a8fb7e9e9441a892622701a85979307c67324e7,mathics/builtin/arithmetic.py,Times,apply,#Times#Any#Any#,546

Before Change


            elif number[1].is_zero and number[1].is_Integer and prec is None:
                leaves.insert(0, Number.from_mp(number[0], prec))
            else:
                real = Number.from_mp(number[0], prec)
                imag = Number.from_mp(number[1], prec)
                leaves.insert(0, Complex(real, imag))

        if not leaves:
            return Integer(1)

After Change



        if number is not None:
            if number[1].is_zero and is_real:
                leaves.insert(0, from_sympy(number[0]))
            elif number[1].is_zero and number[1].is_Integer and prec is None:
                leaves.insert(0, from_sympy(number[0]))
            else:
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 4

Instances


Project Name: mathics/Mathics
Commit Name: 4a8fb7e9e9441a892622701a85979307c67324e7
Time: 2016-08-05
Author: 16sn6uv@gmail.com
File Name: mathics/builtin/arithmetic.py
Class Name: Times
Method Name: apply


Project Name: mathics/Mathics
Commit Name: 4a8fb7e9e9441a892622701a85979307c67324e7
Time: 2016-08-05
Author: 16sn6uv@gmail.com
File Name: mathics/builtin/arithmetic.py
Class Name: Times
Method Name: apply


Project Name: mathics/Mathics
Commit Name: 4a8fb7e9e9441a892622701a85979307c67324e7
Time: 2016-08-05
Author: 16sn6uv@gmail.com
File Name: mathics/builtin/arithmetic.py
Class Name: Plus
Method Name: apply


Project Name: mathics/Mathics
Commit Name: 4a8fb7e9e9441a892622701a85979307c67324e7
Time: 2016-08-05
Author: 16sn6uv@gmail.com
File Name: mathics/builtin/arithmetic.py
Class Name: Complex_
Method Name: apply