9f34a4079d65d65e680e338a67c0817a6a3c8fda,hyperopt/gdist.py,Union,perform,#Union#Any#Any#Any#,46

Before Change



    def perform(self, node, inputs, outstorage):
        v1, v2 = inputs  // numeric!
        ans = numpy.array(sorted(list(set(v1).union(v2)))).astype(v1.dtype)
        outstorage[0][0] = ans

union = Union()

After Change


                [argv[0].type()])

    def perform(self, node, inputs, outstorage):
        ans = set(inputs[0])
        for ii in inputs[1:]:
            ans.update(ii)
        ans = numpy.array(sorted(ans))
        outstorage[0][0] = node.outputs[0].type.filter(ans, strict=False)

union = Union()

Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 5

Instances


Project Name: hyperopt/hyperopt
Commit Name: 9f34a4079d65d65e680e338a67c0817a6a3c8fda
Time: 2011-10-31
Author: james.bergstra@gmail.com
File Name: hyperopt/gdist.py
Class Name: Union
Method Name: perform


Project Name: AlexsLemonade/refinebio
Commit Name: 3f5563740b444d0f8eb86f87eb30edc3d0ff9189
Time: 2019-06-19
Author: arielsvn@gmail.com
File Name: workers/data_refinery_workers/processors/qn_reference.py
Class Name:
Method Name: _update_experiment_caches


Project Name: AlexsLemonade/refinebio
Commit Name: d03c17c40a2f3874c6b901d75763dcfc1492955c
Time: 2018-03-16
Author: rich@anomos.info
File Name: workers/data_refinery_workers/processors/utils.py
Class Name:
Method Name: start_job