8d247dfa5f1b9ae9f37734b007484bd13a9ad85b,starry/integrals.py,,polynomial_flux,#Any#Any#Any#,13

Before Change


        return factorial(0.5 * (i - 1)) * factorial(0.5 * (j - 1)) / \
               factorial(0.5 * (i + j + 2))
    elif k == 1:
        return 0.5 * np.sqrt(np.pi) * polynomial_flux(i, j, 0)
    else:
        raise ValueError("The z power `k` must be 0 or 1.")

After Change


        return factorial(0.5 * (i - 1)) * factorial(0.5 * (j - 1)) / \
               factorial(0.5 * (i + j + 2))
    elif k == 1:
        return 0.5 * np.sqrt(np.pi) * \
                     factorial(0.5 * (i - 1)) * factorial(0.5 * (j - 1)) / \
                     factorial(0.5 * (i + j + 3))
    else:
        raise ValueError("The z power `k` must be 0 or 1.")

Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 4

Instances


Project Name: rodluger/starry
Commit Name: 8d247dfa5f1b9ae9f37734b007484bd13a9ad85b
Time: 2018-02-09
Author: rodluger@gmail.com
File Name: starry/integrals.py
Class Name:
Method Name: polynomial_flux


Project Name: jonathf/chaospy
Commit Name: a255f5d1d2c64a6c48a6c8fc5fe7c7473401d055
Time: 2019-06-17
Author: jonathf@gmail.com
File Name: chaospy/bertran/operators.py
Class Name:
Method Name: terms


Project Name: scipy/scipy
Commit Name: c05be0075ca7751e894a9f3199871ca43039364f
Time: 2016-01-08
Author: ewm@redtetrahedron.org
File Name: scipy/special/basic.py
Class Name:
Method Name: factorial