9fc989afc19ec56ccbf0b7b966d34bfdd254c651,parlai/core/build_data.py,,untar,#Any#Any#Any#,41

Before Change


    // remove tar file
    if deleteTar:
        s = ("cd "%s"" % path) + "" + "rm "%s"" % (path + fname)
        if os.system(s) != 0:
            raise RuntimeError("failed: " + s)

def _get_confirm_token(response):
    for key, value in response.cookies.items():
        if key.startswith("download_warning"):
            return value

After Change


    fullpath = os.path.join(path, fname)
    shutil.unpack_archive(fullpath, path)
    if deleteTar:
        os.remove(fullpath)

def _get_confirm_token(response):
    for key, value in response.cookies.items():
        if key.startswith("download_warning"):
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 5

Instances


Project Name: facebookresearch/ParlAI
Commit Name: 9fc989afc19ec56ccbf0b7b966d34bfdd254c651
Time: 2017-05-06
Author: ahm@fb.com
File Name: parlai/core/build_data.py
Class Name:
Method Name: untar


Project Name: autorope/donkeycar
Commit Name: c8e5a57b44aa57c820c87acb4521a44339680eac
Time: 2019-01-15
Author: tawnkramer@gmail.com
File Name: donkeycar/parts/network.py
Class Name: TCPServeValue
Method Name: send


Project Name: pymc-devs/pymc3
Commit Name: f76df8cf2caae4b40f2cb2a29554329bb564f123
Time: 2019-05-05
Author: rpgoldman@goldman-tribe.org
File Name: pymc3/model_graph.py
Class Name: ModelGraph
Method Name: _get_ancestors