90a1e6ec42e7a81673637c7328e34abfc21fbfa7,tangent/anf.py,ANF,visit_Assign,#ANF#Any#,161
Before Change
self.append(stmt)
node.targets[0] = target
elif not isinstance(node.targets[0], gast.Name):
raise ValueError
node = self.generic_visit(node)
self.namer.target = None
self.trivializing = False
return node
After Change
self.append(stmt)
node.targets[0] = target
elif not isinstance(node.targets[0], gast.Name):
raise ValueError("Cannot Assign to %s" % type(node.target))
node = self.generic_visit(node)
self.namer.target = None
self.trivializing = False
return node

In pattern: SUPERPATTERN
Frequency: 4
Non-data size: 4
Instances
Project Name: google/tangent
Commit Name: 90a1e6ec42e7a81673637c7328e34abfc21fbfa7
Time: 2018-03-02
Author: alex.bw@gmail.com
File Name: tangent/anf.py
Class Name: ANF
Method Name: visit_Assign
Project Name: tensorlayer/tensorlayer
Commit Name: 417c082cafff43baa996ef21a614dcc9ad524393
Time: 2019-06-06
Author: jingqing.zhang15@imperial.ac.uk
File Name: tensorlayer/layers/recurrent.py
Class Name:
Method Name: target_mask_op
Project Name: streamlit/streamlit
Commit Name: 091b3739acb2280a84da3b275d4ad6675ad2e658
Time: 2018-10-02
Author: thiagot@gmail.com
File Name: lib/streamlit/generic_binary_proto.py
Class Name:
Method Name: marshall
Project Name: ray-project/ray
Commit Name: 272edcca94b063dfa9172c2dca7bf362806a779f
Time: 2020-11-12
Author: me@barakmich.com
File Name: python/ray/experimental/client/worker.py
Class Name: Worker
Method Name: get