98f7bac81b00256bc31e66aab2d7752bc320e67c,odps/df/backends/optimize/utils.py,,copy_sequence,#Any#Any#Any#,44
Before Change
if dag:
dag.add_node(copied)
is_copied = set()
for path in sequence.all_path(collection, strict=True):
curr = copied
for seq in path[1:-1]:
if id(seq) in is_copied:
continue
is_copied.add(id(seq))
copied_seq = seq.copy()
curr.substitute(seq, copied_seq, dag=dag)
curr = copied_seq
return copied
After Change
if n is collection:
continue
parents = [p for p in dag.successors(n) if p._node_id in traversed]
for parent in parents:
copy(parent).substitute(n, copy(n), dag=dag)
return copies[sequence._node_id]
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 8
Instances
Project Name: aliyun/aliyun-odps-python-sdk
Commit Name: 98f7bac81b00256bc31e66aab2d7752bc320e67c
Time: 2017-08-03
Author: xuye.qin@alibaba-inc.com
File Name: odps/df/backends/optimize/utils.py
Class Name:
Method Name: copy_sequence
Project Name: autorope/donkeycar
Commit Name: d78d0732117d256aafb669b303e79a1da6fe0b26
Time: 2018-08-04
Author: tawnkramer@gmail.com
File Name: donkeycar/parts/lidar.py
Class Name: RPLidar
Method Name: update
Project Name: aws/sagemaker-python-sdk
Commit Name: 507f2cdd39a8a21a2ab8420e69ee87887956c101
Time: 2018-11-01
Author: 44241692+RodrigoAtAWS@users.noreply.github.com
File Name: src/sagemaker/job.py
Class Name: _Job
Method Name: _format_inputs_to_input_config