ff1c927d9119cb9a9b56f1e9ea941252aadf1516,benchmarking/frameworks/caffe2/caffe2.py,Caffe2Framework,__init__,#Caffe2Framework#Any#,22
Before Change
def __init__(self, tempdir):
super(Caffe2Framework, self).__init__()
self.tempdir = tempdir + "/" + self.getName()
os.makedirs(self.tempdir, 0o777)
// cannot have any variable pass among methods
def getName(self):
After Change
def __init__(self, tempdir):
super(Caffe2Framework, self).__init__()
self.tempdir = os.path.join(tempdir, self.getName())
os.makedirs(self.tempdir, 0o777)
// cannot have any variable pass among methods
def getName(self):
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 8
Instances
Project Name: facebook/FAI-PEP
Commit Name: ff1c927d9119cb9a9b56f1e9ea941252aadf1516
Time: 2018-08-13
Author: sf_wind@hotmail.com
File Name: benchmarking/frameworks/caffe2/caffe2.py
Class Name: Caffe2Framework
Method Name: __init__
Project Name: facebook/FAI-PEP
Commit Name: ff1c927d9119cb9a9b56f1e9ea941252aadf1516
Time: 2018-08-13
Author: sf_wind@hotmail.com
File Name: benchmarking/frameworks/tflite/tflite.py
Class Name: TFLiteFramework
Method Name: __init__
Project Name: facebook/FAI-PEP
Commit Name: ff1c927d9119cb9a9b56f1e9ea941252aadf1516
Time: 2018-08-13
Author: sf_wind@hotmail.com
File Name: benchmarking/frameworks/generic/generic.py
Class Name: GenericFramework
Method Name: __init__