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

Before Change



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: 5

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: ricsinaruto/Seq2seqChatbots
Commit Name: 3b9042c743facfbd1e641784f21e29a95db2aac2
Time: 2018-09-20
Author: purgai.patrik@gmail.com
File Name: t2t_csaky/data_filtering/semantic_clustering.py
Class Name:
Method Name:


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: cve-search/cve-search
Commit Name: 8355f501c96016e14f268e26a2f034ee43b2f984
Time: 2015-01-07
Author: pieterjan.moreels@gmail.com
File Name: db_cpe_browser.py
Class Name:
Method Name: