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):

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
        return d

    def commit(self):
        self.Error.clear()
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 8

Non-data size: 7

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: pfnet-research/chainer-chemistry
Commit Name: 30376a1d866a81289a50d973f9e6871b14cf5b8c
Time: 2018-07-02
Author: mottodora@gmail.com
File Name: chainer_chemistry/dataset/splitters/scaffold_splitter.py
Class Name: ScaffoldSplitter
Method Name: _split


Project Name: sentinel-hub/eo-learn
Commit Name: a51009230ba17528e4462fe022af5f2c92bdae15
Time: 2020-01-22
Author: matej.aleksandrov@sinergise.com
File Name: core/eolearn/tests/test_eoworkflow.py
Class Name: TestEOWorkflow
Method Name: test_get_tasks


Project Name: pfnet/optuna
Commit Name: 3f04069df6b9e95eb3342519a9938264c55d370c
Time: 2020-05-26
Author: ytsmiling@gmail.com
File Name: optuna/storages/cached_storage.py
Class Name: _CachedStorage
Method Name: get_all_trials


Project Name: uber/ludwig
Commit Name: ca98f96d527a03a7d7d76377eff44e1591d93ebe
Time: 2020-05-04
Author: jimthompson5802@gmail.com
File Name: ludwig/models/modules/combiners.py
Class Name: ConcatCombiner
Method Name: call


Project Name: biotite-dev/biotite
Commit Name: c5cc97f70ecaa849f62d3707cd975a8b8679bdac
Time: 2018-11-19
Author: patrick.kunzm@gmail.com
File Name: src/biotite/sequence/io/fasta/convert.py
Class Name:
Method Name: get_alignment


Project Name: ray-project/ray
Commit Name: 62c7ab518214286a4721dd7410978effd6d05471
Time: 2020-11-12
Author: sven@anyscale.io
File Name: rllib/execution/train_ops.py
Class Name: TrainTFMultiGPU
Method Name: __call__


Project Name: analysiscenter/batchflow
Commit Name: 543e37e278a10165f2a9d7350945a579daa0225e
Time: 2019-06-20
Author: steve.sinobi@ya.ru
File Name: batchflow/tests/segmentation_metrics_test_brief.py
Class Name:
Method Name: