7b7e2d4094931227e8291212e2acfca82497b54b,mindsdb/config/__init__.py,,,#,25

Before Change


    return else_value if env_var not in os.environ else os.environ[env_var]

// These are the paths for storing data regarding mindsdb models and model info
MINDSDB_STORAGE_PATH = os.path.abspath(os.path.dirname(os.path.abspath(inspect.getfile(inspect.currentframe())))+"/../storage/")
SQLITE_FILE = ifEnvElse("SQLITE_FILE", "{storage_path}/mindsdb.mdb".format(storage_path=MINDSDB_STORAGE_PATH))
LOCALSTORE_PATH = ifEnvElse("LOCALSTORE_PATH", "{storage_path}/local_jsondb_store".format(storage_path=MINDSDB_STORAGE_PATH))

// You can choose to store info about models in MongoDB or not By default it uses a local object store

After Change




// flag that config vars have been set to original values
set("MINDSDB_CONFIG_VARS_SET", True, vars())



Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 3

Instances


Project Name: mindsdb/mindsdb
Commit Name: 7b7e2d4094931227e8291212e2acfca82497b54b
Time: 2018-09-27
Author: jorge.torres.maldonado@gmail.com
File Name: mindsdb/config/__init__.py
Class Name:
Method Name:


Project Name: IDSIA/sacred
Commit Name: f2823cc5ad25abbe33e76c3555b490fdfbd9c902
Time: 2019-07-03
Author: r.sjogren89@gmail.com
File Name: tests/test_dependencies.py
Class Name:
Method Name: test_custom_base_dir


Project Name: daavoo/pyntcloud
Commit Name: 4e4d24e05b98c99fca8511df38e10fada683e24b
Time: 2017-09-29
Author: daviddelaiglesiacastro@gmail.com
File Name: test/test_sampling.py
Class Name:
Method Name: test_mesh_sampling