46003aa14454ea427547d34d70a657e0c290128e,brian2/stateupdaters/exact.py,LinearStateUpdater,__call__,#LinearStateUpdater#Any#Any#,214

Before Change


        dt_var = variables.get("dt", None)
        if dt_var is not None:
            for symbol in symbols:
                if not t in set.union(*(el.atoms() for el in symbol.args)):
                    continue  // not a function of time
                symbol = str(symbol.func)
                var = variables.get(symbol, None)

After Change


        if dt_var is not None:
            // This will raise an error if we meet the symbol "t" anywhere
            // except as an argument of a locally constant function
            for entry in itertools.chain(matrix, constants):
                _check_for_t(entry, variables, dt_var.get_value(), t)
        symbols = [Symbol(variable, real=True) for variable in varnames]
        solution = sp.solve_linear_system(matrix.row_join(constants), *symbols)
        b = sp.ImmutableMatrix([solution[symbol] for symbol in symbols]).transpose()
        
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 5

Instances


Project Name: brian-team/brian2
Commit Name: 46003aa14454ea427547d34d70a657e0c290128e
Time: 2014-02-28
Author: marcel.stimberg@ens.fr
File Name: brian2/stateupdaters/exact.py
Class Name: LinearStateUpdater
Method Name: __call__


Project Name: tensorpack/tensorpack
Commit Name: 610a8b9baed5ff8f9e8624538141b414f8578d4a
Time: 2019-07-12
Author: ppwwyyxxc@gmail.com
File Name: examples/FasterRCNN/data.py
Class Name:
Method Name: print_class_histogram


Project Name: miso-belica/sumy
Commit Name: c0a5504ce6ff8a850eabd5a33488ccf535a55b4f
Time: 2013-05-21
Author: miso.belica@gmail.com
File Name: sumy/summarizers/edmundson_key.py
Class Name: EdmundsonKeyMethod
Method Name: _compute_significant_words