11f771b4d9a9c895bde4dca9f0fff56b17956b0e,mathics/builtin/arithmetic.py,Power,apply_check,#Power#Any#Any#Any#,816

Before Change


                if py_y > 0:
                    return x
                elif py_y == 0.0:
                    if not isinstance(y, Number):
                        y = Real(py_y)
                    evaluation.message("Power", "indet", Expression("Power", x, y_err))
                    return Symbol("Indeterminate")
                elif py_y < 0:
                    if not isinstance(y, Number):

After Change


            else:
                y_err = Expression("N", y).evaluate(evaluation)
            if isinstance(y_err, Number):
                py_y = y_err.round().get_float_value(permit_complex=True).real
                if py_y > 0:
                    return x
                elif py_y == 0.0:
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 4

Instances


Project Name: mathics/Mathics
Commit Name: 11f771b4d9a9c895bde4dca9f0fff56b17956b0e
Time: 2016-08-05
Author: 16sn6uv@gmail.com
File Name: mathics/builtin/arithmetic.py
Class Name: Power
Method Name: apply_check


Project Name: elbayadm/attn2d
Commit Name: 44d27e645b5260098ff59454f4ae484defe01db0
Time: 2019-02-25
Author: myleott@fb.com
File Name: fairseq/progress_bar.py
Class Name: json_progress_bar
Method Name: _format_stats