8d60cb0e1b7d501cf774039f55b450e26cceb26b,brian2/stateupdaters/exact.py,LinearStateUpdater,__call__,#LinearStateUpdater#Any#Any#Any#,94

Before Change


        // the specifiers dictionary, it should be sufficient to just check for
        // the presence of any non-constant specifiers.
        for spec in specifiers.itervalues():
            if (any(Symbol(spec.name) in element for element in matrix) and
                not getattr(spec, "constant", False)):
                raise ValueError(("The coefficient matrix for the equations "
                                 "contains "%s", which is not constant.") %

After Change


        // the presence of any non-constant specifiers.
        symbols = reduce(operator.add, (el.atoms() for el in matrix))
        // Only check true symbols, not numbers
        symbols = set([str(symbol) for symbol in symbols
                       if isinstance(symbol, Symbol)])

        for symbol in symbols:
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 4

Instances


Project Name: brian-team/brian2
Commit Name: 8d60cb0e1b7d501cf774039f55b450e26cceb26b
Time: 2013-05-03
Author: marcel.stimberg@ens.fr
File Name: brian2/stateupdaters/exact.py
Class Name: LinearStateUpdater
Method Name: __call__


Project Name: brian-team/brian2
Commit Name: 8d60cb0e1b7d501cf774039f55b450e26cceb26b
Time: 2013-05-03
Author: marcel.stimberg@ens.fr
File Name: brian2/stateupdaters/exact.py
Class Name: LinearStateUpdater
Method Name: __call__


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


Project Name: mathics/Mathics
Commit Name: e56f91c9b60f561712d28faae3e4d047adc67760
Time: 2016-09-14
Author: Bernhard.Liebl@gmx.org
File Name: mathics/builtin/importexport.py
Class Name: Import
Method Name: apply