f31b7ad689b1435e76744af4ff443607643a37fd,studio/experiment.py,,create_experiment,#Any#Any#Any#Any#Any#Any#Any#Any#,116
Before Change
for i, pkg in enumerate(
pip.pip.get_installed_distributions(local_only=True)):
if pkg._key == "studioml":
continue
if resources_needed is not None and \
int(resources_needed.get("gpus")) > 0 and \
(pkg._key == "tensorflow" or pkg._key == "tf-nightly"):
packages.insert(0, pkg._key + "-gpu==" + pkg._version)
packages.insert(0, pkg._key + "==" + pkg._version)
elif pkg._key == "tensorflow-gpu" or pkg._key == "tf-nightly-gpu":
packages.insert(0, pkg._key[:-4] + "==" + pkg._version)
else:
packages.append(pkg._key + "==" + pkg._version)
return Experiment(
After Change
str(int(time.time())) + "_" + str(uuid.uuid4())
packages = []
freeze_output = [p for p in pip.operations.freeze.freeze()]
for pkg in pip.operations.freeze.freeze():
if pkg.startswith("-e git+"):
// git package
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 6
Instances
Project Name: studioml/studio
Commit Name: f31b7ad689b1435e76744af4ff443607643a37fd
Time: 2017-12-28
Author: peter.zhokhov@sentient.ai
File Name: studio/experiment.py
Class Name:
Method Name: create_experiment
Project Name: PyThaiNLP/pythainlp
Commit Name: a9ebcc488db9c635c5524de2ba56cee569e91552
Time: 2019-04-17
Author: arthit@gmail.com
File Name: pythainlp/transliterate/royin.py
Class Name:
Method Name: romanize
Project Name: mil-tokyo/webdnn
Commit Name: 76e11372587646d49fc5948814d2694ba53cb476
Time: 2017-06-29
Author: y.kikura@gmail.com
File Name: src/graph_transpiler/webdnn/graph/traverse.py
Class Name:
Method Name: listup_nodes