c04aefe07dad54610c49e7841410c85876896b34,deeppavlov/core/commands/utils.py,,set_usr_dir,#Any#Any#,7

Before Change


        usr_dir = Path(config["usr_dir"])
    except KeyError:
        // usr_dir = Path(config_path).expanduser().absolute().parent / usr_dir_name
        root_dir = Path(config_path).cwd()
        usr_dir = root_dir / usr_dir_name

    usr_dir.mkdir(exist_ok=True)

After Change


    try:
        usr_dir = Path(config["usr_dir"])
    except KeyError:
        root_dir = (Path(__file__) / ".." / ".." / ".." / "..").resolve()
        usr_dir = root_dir / usr_dir_name

    usr_dir.mkdir(exist_ok=True)
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 11

Instances


Project Name: deepmipt/DeepPavlov
Commit Name: c04aefe07dad54610c49e7841410c85876896b34
Time: 2018-01-24
Author: yoptar@gmail.com
File Name: deeppavlov/core/commands/utils.py
Class Name:
Method Name: set_usr_dir


Project Name: deepmipt/DeepPavlov
Commit Name: 0ddd27b71f54be5682da90473d00ea671a3459ca
Time: 2018-01-29
Author: arkhipov@yahoo.com
File Name: deeppavlov/core/commands/utils.py
Class Name:
Method Name: set_usr_dir


Project Name: deepmipt/DeepPavlov
Commit Name: 2d801bcc9a25b2ec08e9e739f9402b7f2ba38c01
Time: 2018-01-24
Author: ol.gure@gmail.com
File Name: deeppavlov/core/commands/utils.py
Class Name:
Method Name: set_usr_dir