57f16e3567957b392f78be79d29429fcf51c9225,src/spn/experiments/RelationalCutSet/LearnStructure.py,,get_constraint_values,#Any#Any#Any#Any#,330
Before Change
for k in key:
constraints = [c for c in path_constraints if c[0] == k]
if len(constraints) > 0:
cache_values = cache_values[k][constraints[0][1]]
continue
else:
cache_values = cache_values[k]
for k, v in cache_values.items():
yield (k, v[1])
def build_csn2(dep_tree, table_keys, scopes, path_constraints=None, cache=None):
if path_constraints is None:
path_constraints = []
After Change
def get_constraint_values(key, table_name, path_constraints, cache):
cache_values = cache[table_name][key]
key_constraints = set(key)
path_constraints = [pc for pc in path_constraints if pc[0] in key_constraints]
def traverse_cache_values(cache_vals, path_constraints):
if len(path_constraints) > 0:
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 5
Instances Project Name: SPFlow/SPFlow
Commit Name: 57f16e3567957b392f78be79d29429fcf51c9225
Time: 2018-09-01
Author: molina@cs.tu-darmstadt.de
File Name: src/spn/experiments/RelationalCutSet/LearnStructure.py
Class Name:
Method Name: get_constraint_values
Project Name: pantsbuild/pants
Commit Name: fb69acebcd2b2783dc03913e46ecfa029704f0a8
Time: 2014-08-12
Author: pl@foursquare.com
File Name: src/python/pants/base/cmd_line_spec_parser.py
Class Name: CmdLineSpecParser
Method Name: _parse_spec
Project Name: pantsbuild/pants
Commit Name: 3f490de2c61c51cdf7cb78c8217842d2a9232758
Time: 2017-04-04
Author: stuhood@twitter.com
File Name: src/python/pants/engine/legacy/change_calculator.py
Class Name: EngineChangeCalculator
Method Name: iter_changed_target_addresses