e322a26c7cb05e926c28193b2d7b6abd10daef8a,plasma/conf.py,,,#,5

Before Change


import os
import errno

try:
    conf = parameters("./conf.yaml")
except: 
    raise FileNotFoundError(errno.ENOENT, os.strerror(errno.ENOENT), "conf.yaml")

//conf = parameters(os.path.join(os.path.abspath(os.path.dirname(__file__)), "conf.yaml"))

After Change



if os.path.exists("./conf.yaml"):
    conf = parameters("./conf.yaml")
elif os.path.exists(os.path.join(os.path.abspath(os.path.dirname(__file__)), "conf.yaml")):
    conf = parameters(os.path.join(os.path.abspath(os.path.dirname(__file__)), "conf.yaml"))
else:
    raise FileNotFoundError(errno.ENOENT, os.strerror(errno.ENOENT), "conf.yaml")
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 6

Instances


Project Name: PPPLDeepLearning/plasma-python
Commit Name: e322a26c7cb05e926c28193b2d7b6abd10daef8a
Time: 2017-01-11
Author: asvyatkovskiy@gmail.com
File Name: plasma/conf.py
Class Name:
Method Name:


Project Name: philipperemy/keras-activations
Commit Name: 0bc9d06224686cc32e5cf52f3aae979d3380ca24
Time: 2019-01-03
Author: premy@cogent.co.jp
File Name: examples/mnist.py
Class Name:
Method Name:


Project Name: A2Zadeh/CMU-MultimodalSDK
Commit Name: 1087ba3b4bf530f7b3e30042c4421bcf8067fad1
Time: 2018-07-17
Author: abagherz@cs.cmu.edu
File Name: mmsdk/mmdatasdk/computational_sequence/computational_sequence.py
Class Name: computational_sequence
Method Name: _initialize


Project Name: PPPLDeepLearning/plasma-python
Commit Name: e322a26c7cb05e926c28193b2d7b6abd10daef8a
Time: 2017-01-11
Author: asvyatkovskiy@gmail.com
File Name: plasma/conf.py
Class Name:
Method Name: