5497ef65228a48e6d7f89616f9dc683b34458bb9,pysb/importers/bngl.py,BnglBuilder,_parse_monomers,#BnglBuilder#,114
Before Change
"{0}MoleculeType")):
mon_name = m.get("id")
sites = []
states = {}
for ctype in m.iterfind(_ns("{0}ListOfComponentTypes/"
"{0}ComponentType")):
c_name = ctype.get("id")
sites.append(c_name)
After Change
if states_list is not None:
for s in states_list.iterfind(_ns("{}AllowedState")):
state = s.get("id")
if re.match("[0-9]*$", state):
new_state = "_" + state
while new_state in states[c_name]:
new_state = "_" + new_state
self._renamed_states[mon_name][state] = \
new_state
state = new_state
states[c_name].append(state)
if self._renamed_states[mon_name]:
self._log.info("Monomer "{}" states were renamed as "
"follows: {}".format(
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 3
Instances
Project Name: pysb/pysb
Commit Name: 5497ef65228a48e6d7f89616f9dc683b34458bb9
Time: 2018-05-30
Author: code@alexlubbock.com
File Name: pysb/importers/bngl.py
Class Name: BnglBuilder
Method Name: _parse_monomers
Project Name: Pinafore/qb
Commit Name: 8674436fdc36b67d397cf7868887af5d30d43ef2
Time: 2016-06-25
Author: ski.rodriguez@gmail.com
File Name: util/build_whoosh.py
Class Name:
Method Name:
Project Name: studioml/studio
Commit Name: 1aa325a65abb68cebb8a46174059fa444beaebf8
Time: 2017-09-14
Author: peter.zhokhov@sentient.ai
File Name: studio/completion_service/completion_service.py
Class Name: CompletionService
Method Name: submitTaskWithFiles