dfa0c1f47a6920ebe0efde372f5aee07284f2f68,deeppavlov/core/data/utils.py,,download,#Any#Any#,8

Before Change


        source_url: the source URL

    
    datapath = os.path.dirname(dest_file_path)
    os.makedirs(datapath, mode=0o755, exist_ok=True)

    dest_file_path = os.path.abspath(dest_file_path)

After Change


    

    dest_file_path = Path(dest_file_path).absolute()
    dest_file_path.parent.mkdir(mode=0o755, parents=True, exist_ok=True)

    r = requests.get(source_url, stream=True)
    total_length = int(r.headers.get("content-length", 0))
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 3

Instances


Project Name: deepmipt/DeepPavlov
Commit Name: dfa0c1f47a6920ebe0efde372f5aee07284f2f68
Time: 2017-12-29
Author: yoptar@gmail.com
File Name: deeppavlov/core/data/utils.py
Class Name:
Method Name: download


Project Name: aws/sagemaker-python-sdk
Commit Name: 2787824ebcca0a4e9974487f3e70fd0cfcb02005
Time: 2019-05-20
Author: mvs.usp@gmail.com
File Name: src/sagemaker/utils.py
Class Name:
Method Name: repack_model


Project Name: NervanaSystems/coach
Commit Name: 5332013bd17636a0d21d189ec21e8254a1d3f4e7
Time: 2018-11-23
Author: sina.beh@gmail.com
File Name: rl_coach/graph_managers/graph_manager.py
Class Name: GraphManager
Method Name: save_checkpoint