1a1d9c0ac8f96a2f3b8a47f9d90e2b9f158c53c5,deeppavlov/run_model.py,,,#,22

Before Change


train_model_from_config(MODEL_CONFIG_PATH)
interact_model(MODEL_CONFIG_PATH)

Path(usr_dir).rmdir()

After Change



usr_dir = None

try:
    MODEL_CONFIG_PATH = "models/classifiers/intents/config.json"
    usr_dir = set_usr_dir(MODEL_CONFIG_PATH)
    train_model_from_config(MODEL_CONFIG_PATH)
    interact_model(MODEL_CONFIG_PATH)
except Exception:
    raise
finally:
    if usr_dir:
        usr_dir.rmdir()
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 4

Non-data size: 3

Instances


Project Name: deepmipt/DeepPavlov
Commit Name: 1a1d9c0ac8f96a2f3b8a47f9d90e2b9f158c53c5
Time: 2018-01-10
Author: ol.gure@gmail.com
File Name: deeppavlov/run_model.py
Class Name:
Method Name:


Project Name: deepchem/deepchem
Commit Name: f8b3071c68973dfb878f9071081a38a54c6e5786
Time: 2018-07-28
Author: Karl
File Name: devtools/conda-recipe/deepchem/run_test.py
Class Name: TestDeepchemBuild
Method Name: tearDown


Project Name: ilastik/ilastik
Commit Name: 630a400af2bffc27a173acf876d72a1a10cd2dbf
Time: 2014-05-08
Author: bergs@janelia.hhmi.org
File Name: ilastik/applets/base/appletSerializer.py
Class Name: SerialClassifierSlot
Method Name: _deserialize


Project Name: ilastik/ilastik
Commit Name: 04298d7c7303deea84b1e3a36e4b7c090a679b1a
Time: 2014-06-20
Author: bergs@janelia.hhmi.org
File Name: ilastik/applets/base/appletSerializer.py
Class Name: SerialCountingSlot
Method Name: _deserialize