bb0b34fe488fc125fcd8cbb367db92212ac988b3,brian2/stateupdaters/base.py,StateUpdateMethod,determine_stateupdater,#Any#Any#Any#Any#,90

Before Change


                                              specifiers))
                         for name, updater in 
                         StateUpdateMethod.stateupdaters.iteritems()]
        priorities.sort(key=lambda elem: elem[1], reverse=True)

        // If the list is empty or the first (=best) priority is 0, we did not
        // find anything suitable
        if len(priorities) == 0 or priorities[0][1] == 0:

After Change


        for name, stateupdater in StateUpdateMethod.stateupdaters:
            if stateupdater.can_integrate(equations, namespace, specifiers):
                best_stateupdater = (name, stateupdater)
                break

        // No suitable stat updater has been found
        if best_stateupdater is None:
            raise ValueError(("No stateupdater that is suitable for the given "
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 2

Instances


Project Name: brian-team/brian2
Commit Name: bb0b34fe488fc125fcd8cbb367db92212ac988b3
Time: 2013-03-26
Author: marcel.stimberg@ens.fr
File Name: brian2/stateupdaters/base.py
Class Name: StateUpdateMethod
Method Name: determine_stateupdater


Project Name: akkana/scripts
Commit Name: cc1d29a7a7a20a83a78a51a37eafa22ec9fa895d
Time: 2019-06-27
Author: akkana@shallowsky.com
File Name: newreads.py
Class Name: GoodreadsAPI
Method Name: books_by_author


Project Name: kmike/pymorphy2
Commit Name: 837b2efde71507b09033c3ea6f2502e2306f8eef
Time: 2013-02-18
Author: kmike84@gmail.com
File Name: pymorphy2/analyzer.py
Class Name: MorphAnalyzer
Method Name: _parse_as_word_with_known_suffix