0df515fe240365bfe130f94629f2c0c8a6286218,Orange/widgets/data/owpythonscript.py,OWPythonScript,initial_locals_state,#OWPythonScript#,654
Before Change
f.close()
def initial_locals_state(self):
d = dict([(name, getattr(self, name, None)) for name in self.inputs_names])
d.update(dict([(name, None) for name in self.outputs_names]))
return d
def commit(self):
self.Error.clear()
After Change
d = {}
for name in self.signal_names:
value = getattr(self, name)
all_values = list(value.values() )
one_value = all_values[0] if len(all_values) == 1 else None
d["in_" + name + "s"] = all_values
d["in_" + name] = one_value
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 3
Instances Project Name: biolab/orange3
Commit Name: 0df515fe240365bfe130f94629f2c0c8a6286218
Time: 2017-08-18
Author: janez.demsar@fri.uni-lj.si
File Name: Orange/widgets/data/owpythonscript.py
Class Name: OWPythonScript
Method Name: initial_locals_state
Project Name: tensorflow/magenta
Commit Name: 128b1067af598a4aeb97f33285010a0eb7539855
Time: 2017-06-12
Author: adarob@google.com
File Name: magenta/models/sketch_rnn/model.py
Class Name:
Method Name: copy_hparams
Project Name: biolab/orange3
Commit Name: d050c00e6b9bd39b650e2f42108dce65821c4319
Time: 2015-03-27
Author: janez.demsar@fri.uni-lj.si
File Name: Orange/widgets/data/owfile.py
Class Name: OWFile
Method Name: OWFile_1