eab2da81c65974e08b8245bbf8a052093f972df3,Pysb.py,Rule,__init__,#Rule#Any#Any#Any#Any#,287
Before Change
if isinstance(products, MonomerPattern):
products = [products]
if not all([isinstance(r, MonomerPattern) for r in reactants]):
raise Exception("Reactants must all be MonomerPatterns")
if not all([isinstance(p, MonomerPattern) for p in products]):
raise Exception("Products must all be MonomerPatterns")
if not isinstance(rate, Parameter):
raise Exception("Rate must be a Parameter")
After Change
if not isinstance(reaction_pattern_set, tuple) and len(reaction_pattern_set) != 3:
raise Exception("reaction_pattern_set must be a tuple of (ReactionPattern, ReactionPattern, Boolean)")
try:
reactant_pattern = as_reaction_pattern(reaction_pattern_set[0])
except InvalidReactionPatternException as e:
raise type(e)("Reactant does not look like a reaction pattern")
try:
product_pattern = as_reaction_pattern(reaction_pattern_set[1])
except InvalidReactionPatternException as e:
raise type(e)("Product does not look like a reaction pattern")
In pattern: SUPERPATTERN
Frequency: 4
Non-data size: 5
Instances
Project Name: pysb/pysb
Commit Name: eab2da81c65974e08b8245bbf8a052093f972df3
Time: 2009-08-09
Author: jmuhlich@bitflood.org
File Name: Pysb.py
Class Name: Rule
Method Name: __init__
Project Name: NifTK/NiftyNet
Commit Name: b655b81dfb4c079c1625e04915d3d0430c97d974
Time: 2017-11-23
Author: wenqi.li@ucl.ac.uk
File Name: niftynet/io/image_sets_partitioner.py
Class Name: ImageSetsPartitioner
Method Name: randomly_split_dataset
Project Name: JasonKessler/scattertext
Commit Name: 92c50bc4c19d457eada61f64797edc611d487c01
Time: 2016-12-02
Author: jason.kessler@gmail.com
File Name: scattertext/TermDocMatrixFilter.py
Class Name: TermDocMatrixFilter
Method Name: filter
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