eab2da81c65974e08b8245bbf8a052093f972df3,Pysb.py,Model,observe,#Model#Any#Any#,57

Before Change


        if isinstance(pattern_list, MonomerPattern):
            pattern_list = [pattern_list]
        if not all([isinstance(p, MonomerPattern) for p in pattern_list]):
            raise Exception("Observable must be a list of MonomerPatterns")
        self.observables.append( (name, pattern_list) )

    def __repr__(self):
        return "%s( \\\n    monomers=%s \\\n    compartments=%s\\\n    parameters=%s\\\n    rules=%s\\\n)" % \

After Change


        try:
            reaction_pattern = as_reaction_pattern(reaction_pattern)
        except InvalidReactionPatternException as e:
            raise type(e)("Observable does not look like a reaction pattern")
        self.observables.append( (name, reaction_pattern) )

    def __repr__(self):
        return "%s( \\\n    monomers=%s \\\n    compartments=%s\\\n    parameters=%s\\\n    rules=%s\\\n)" % \
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 4

Instances


Project Name: pysb/pysb
Commit Name: eab2da81c65974e08b8245bbf8a052093f972df3
Time: 2009-08-09
Author: jmuhlich@bitflood.org
File Name: Pysb.py
Class Name: Model
Method Name: observe


Project Name: ray-project/ray
Commit Name: 272edcca94b063dfa9172c2dca7bf362806a779f
Time: 2020-11-12
Author: me@barakmich.com
File Name: python/ray/experimental/client/worker.py
Class Name: Worker
Method Name: get


Project Name: snipsco/snips-nlu
Commit Name: a05ea9b6422bf13fdff4eed2e1373eb99c2db30d
Time: 2018-05-14
Author: adrien.ball@snips.net
File Name: snips_nlu_dataset/intent_dataset.py
Class Name: SM
Method Name: __getitem__