1c758ba9d6c14d9b9d3599e44c3508e2692d8d35,pyprob/graph.py,Graph,__init__,#Graph#Any#Any#Any#Any#,53
Before Change
self.address_stats = OrderedDict()
address_id_to_variable = {}
for trace, trace_weight in trace_dist:
trace_weight = float(trace_weight)
for variable in trace.variables:
address = variable.address_base if use_address_base else variable.address
if address not in self.address_stats:
if address in self.address_ids:
address_id = self.address_ids[address]
else:
address_id = "A" + str(len(self.address_ids) + 1)
self.address_ids[address] = address_id
self.address_stats[address] = {"count": 1, "weight": trace_weight, "address_id": address_id, "variable": variable}
address_id_to_variable[address_id] = variable
else:
self.address_stats[address]["count"] += 1
self.address_stats[address]["weight"] += trace_weight
self.trace_stats = OrderedDict()
for trace, trace_weight in trace_dist:
trace_weight = float(trace_weight)
trace_str = "".join([variable.address_base if use_address_base else variable.address for variable in trace.variables])
After Change
self.trace_stats = OrderedDict()
for i in range(trace_dist.length):
trace = trace_dist._get_value(i)
trace_weight = float(trace_dist._get_weight(i))
trace_str = "".join([variable.address_base if use_address_base else variable.address for variable in trace.variables])
if trace_str not in self.trace_stats:
if trace_str in self.trace_ids:
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 4
Instances Project Name: pyprob/pyprob
Commit Name: 1c758ba9d6c14d9b9d3599e44c3508e2692d8d35
Time: 2018-09-28
Author: atilimgunes.baydin@gmail.com
File Name: pyprob/graph.py
Class Name: Graph
Method Name: __init__
Project Name: analysiscenter/batchflow
Commit Name: fb9c6af24400732aae9cf6cd3a84f916777ff655
Time: 2017-10-26
Author: rhudor@gmail.com
File Name: dataset/pipeline.py
Class Name: Pipeline
Method Name: _make_model_args
Project Name: mlflow/mlflow
Commit Name: 0ed27c5071061588aee0382673b4a5f1678e3370
Time: 2019-03-28
Author: mani@databricks.com
File Name: mlflow/utils/search_utils.py
Class Name: SearchFilter
Method Name: _get_comparison