491635f0fc00102c6729b704b30f64d1f271be23,sympy/solvers/ode/ode.py,,constant_renumber,#Any#Any#Any#,2821
Before Change
E1 + E2*x + E3*x**2
if type(expr) in (set, list, tuple):
renumbered = [constant_renumber(e, variables, newconstants) for e in expr]
return type(expr)(renumbered)
After Change
// System of expressions
if isinstance(expr, (set, list, tuple)):
return type(expr)(constant_renumber(Tuple(*expr),
variables=variables, newconstants=newconstants))
// Symbols in solution but not ODE are constants
if variables is not None:
variables = set(variables)
free_symbols = expr.free_symbols
constantsymbols = list(free_symbols - variables)
// Any Cn is a constant...
else:
variables = set()
isconstant = lambda s: s.startswith("C") and s[1:].isdigit()
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 4
Instances Project Name: sympy/sympy
Commit Name: 491635f0fc00102c6729b704b30f64d1f271be23
Time: 2020-07-13
Author: milan.cs16@iitp.ac.in
File Name: sympy/solvers/ode/ode.py
Class Name:
Method Name: constant_renumber
Project Name: tensorlayer/tensorlayer
Commit Name: b1dae602081efc6742f28134bdf0be6c87b9e918
Time: 2018-03-26
Author: dhsig552@163.com
File Name: tensorlayer/layers/core.py
Class Name: Layer
Method Name: __init__
Project Name: stellargraph/stellargraph
Commit Name: ab6e91b1b7415b4fa4576a9a581e4febace79759
Time: 2019-02-26
Author: habiba.habiba@data61.csiro.au
File Name: stellargraph/data/unsupervised_sampler.py
Class Name: UnsupervisedSampler
Method Name: __init__