f3f4bf67ad87c4d30e3694e251d274c3b85c81da,GPy/__init__.py,,load,#,37
Before Change
try:
import cPickle as pickle
if isinstance(file_or_path, basestring):
with open(file_or_path, "rb") as f:
u = pickle._Unpickler(f)
u.encoding = "latin1"
m = u.load()
else:
m = pickle.load(file_or_path)
except:
import pickle
After Change
for name, module in inspect.getmembers(kern.src):
if not name.startswith("_"):
sys.modules["GPy.kern._src.{}".format(name)] = module
try:
import pickle
strcl = basestring
except ImportError: //python3
import pickle
strcl = str
if isinstance(file_or_path, strcl):
with open(file_or_path, "rb") as f:
m = pickle.load(f)
else:
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 5
Instances
Project Name: SheffieldML/GPy
Commit Name: f3f4bf67ad87c4d30e3694e251d274c3b85c81da
Time: 2015-11-09
Author: ibinbei@gmail.com
File Name: GPy/__init__.py
Class Name:
Method Name: load
Project Name: akkana/scripts
Commit Name: e1e3f45530006843db21dc084f2dde2725056168
Time: 2018-06-24
Author: akkana@shallowsky.com
File Name: quickbrowse.py
Class Name:
Method Name:
Project Name: pyinstaller/pyinstaller
Commit Name: a5505747ac8b1f3891a63363a9b86af480452f77
Time: 2018-05-29
Author: itsayellow+dev@gmail.com
File Name: PyInstaller/building/osx.py
Class Name: BUNDLE
Method Name: assemble