9db56d70bdf8205143b833e6fd72502e8cb619da,padatious/util.py,,resolve_conflicts,#Any#Any#,137
Before Change
inputs, outputs = [], []
for inp, outs in data.items():
inputs.append(list(inp))
outputs.append(np.maximum.reduce(outs) )
return inputs, outputs
After Change
inputs.append(list(inp))
combined = [0] * len(outs[0])
for i in range(len(combined)):
combined[i] = max(j [i] for j in outs)
outputs.append(combined)
return inputs, outputs
In pattern: SUPERPATTERN
Frequency: 4
Non-data size: 4
Instances Project Name: MycroftAI/padatious
Commit Name: 9db56d70bdf8205143b833e6fd72502e8cb619da
Time: 2017-10-02
Author: matthew3311999@gmail.com
File Name: padatious/util.py
Class Name:
Method Name: resolve_conflicts
Project Name: HazyResearch/fonduer
Commit Name: 506a594e8e5fd755bc02ea2c5fe6437b8b682057
Time: 2018-08-14
Author: lwhsiao@stanford.edu
File Name: fonduer/utils/udf.py
Class Name: UDFRunner
Method Name: apply_st
Project Name: nipy/dipy
Commit Name: 979c7a3c28bdf3c5565353987e93de55bf8fb632
Time: 2012-12-28
Author: matthew.brett@gmail.com
File Name: dipy/reconst/multi_voxel.py
Class Name:
Method Name: _squash
Project Name: pantsbuild/pants
Commit Name: ae7d2578c82d5157f580a7a19d37f5f7c196281c
Time: 2013-03-01
Author: benjy@foursquare.com
File Name: src/python/twitter/pants/base/build_invalidator.py
Class Name: CacheKeyGenerator
Method Name: combine_cache_keys