c8fdaf6c7bc7e58b025fe4aaf6e6f8948ae932de,parlai/tasks/wikimovies/build.py,,build,#Any#,12

Before Change


def build(opt):
    dpath = os.path.join(opt["datapath"], "WikiMovies")

    if not build_data.built(dpath):
        print("[building data: " + dpath + "]")
        build_data.remove_dir(dpath)
        build_data.make_dir(dpath)

        // Download the data.
        fname = "wikimovies.tar.gz"
        url = "https://s3.amazonaws.com/fair-data/parlai/wikimovies/" + fname
        build_data.download(url, dpath, fname)
        build_data.untar(dpath, fname)

        // Mark the data as built.
        build_data.mark_done(dpath)

After Change



def build(opt):
    dpath = os.path.join(opt["datapath"], "WikiMovies")
    version = None

    if not build_data.built(dpath, version_string=version):
        print("[building data: " + dpath + "]")
        if build_data.built(dpath):
            // An older version exists, so remove these outdated files.
            build_data.remove_dir(dpath)
        build_data.make_dir(dpath)

        // Download the data.
        fname = "wikimovies.tar.gz"
        url = "https://s3.amazonaws.com/fair-data/parlai/wikimovies/" + fname
        build_data.download(url, dpath, fname)
        build_data.untar(dpath, fname)

        // Mark the data as built.
        build_data.mark_done(dpath, version_string=version)
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 20

Non-data size: 10

Instances


Project Name: facebookresearch/ParlAI
Commit Name: c8fdaf6c7bc7e58b025fe4aaf6e6f8948ae932de
Time: 2017-07-10
Author: belbs@users.noreply.github.com
File Name: parlai/tasks/wikimovies/build.py
Class Name:
Method Name: build


Project Name: facebookresearch/ParlAI
Commit Name: c8fdaf6c7bc7e58b025fe4aaf6e6f8948ae932de
Time: 2017-07-10
Author: belbs@users.noreply.github.com
File Name: parlai/tasks/dbll_babi/build.py
Class Name:
Method Name: build


Project Name: facebookresearch/ParlAI
Commit Name: c8fdaf6c7bc7e58b025fe4aaf6e6f8948ae932de
Time: 2017-07-10
Author: belbs@users.noreply.github.com
File Name: parlai/tasks/mturkwikimovies/build.py
Class Name:
Method Name: build


Project Name: facebookresearch/ParlAI
Commit Name: c8fdaf6c7bc7e58b025fe4aaf6e6f8948ae932de
Time: 2017-07-10
Author: belbs@users.noreply.github.com
File Name: parlai/tasks/booktest/build.py
Class Name:
Method Name: build


Project Name: facebookresearch/ParlAI
Commit Name: c8fdaf6c7bc7e58b025fe4aaf6e6f8948ae932de
Time: 2017-07-10
Author: belbs@users.noreply.github.com
File Name: parlai/tasks/personalized_dialog/build.py
Class Name:
Method Name: build


Project Name: facebookresearch/ParlAI
Commit Name: c8fdaf6c7bc7e58b025fe4aaf6e6f8948ae932de
Time: 2017-07-10
Author: belbs@users.noreply.github.com
File Name: parlai/tasks/wikiqa/build.py
Class Name:
Method Name: build


Project Name: facebookresearch/ParlAI
Commit Name: c8fdaf6c7bc7e58b025fe4aaf6e6f8948ae932de
Time: 2017-07-10
Author: belbs@users.noreply.github.com
File Name: parlai/tasks/mnist_qa/build.py
Class Name:
Method Name: build


Project Name: facebookresearch/ParlAI
Commit Name: c8fdaf6c7bc7e58b025fe4aaf6e6f8948ae932de
Time: 2017-07-10
Author: belbs@users.noreply.github.com
File Name: parlai/tasks/dbll_movie/build.py
Class Name:
Method Name: build


Project Name: facebookresearch/ParlAI
Commit Name: c8fdaf6c7bc7e58b025fe4aaf6e6f8948ae932de
Time: 2017-07-10
Author: belbs@users.noreply.github.com
File Name: parlai/tasks/simplequestions/build.py
Class Name:
Method Name: build


Project Name: facebookresearch/ParlAI
Commit Name: c8fdaf6c7bc7e58b025fe4aaf6e6f8948ae932de
Time: 2017-07-10
Author: belbs@users.noreply.github.com
File Name: parlai/tasks/cornell_movie/build.py
Class Name:
Method Name: build


Project Name: facebookresearch/ParlAI
Commit Name: c8fdaf6c7bc7e58b025fe4aaf6e6f8948ae932de
Time: 2017-07-10
Author: belbs@users.noreply.github.com
File Name: parlai/tasks/opensubtitles/build.py
Class Name:
Method Name: build


Project Name: facebookresearch/ParlAI
Commit Name: c8fdaf6c7bc7e58b025fe4aaf6e6f8948ae932de
Time: 2017-07-10
Author: belbs@users.noreply.github.com
File Name: parlai/tasks/insuranceqa/build.py
Class Name:
Method Name: build


Project Name: facebookresearch/ParlAI
Commit Name: c8fdaf6c7bc7e58b025fe4aaf6e6f8948ae932de
Time: 2017-07-10
Author: belbs@users.noreply.github.com
File Name: parlai/tasks/babi/build.py
Class Name:
Method Name: build


Project Name: facebookresearch/ParlAI
Commit Name: c8fdaf6c7bc7e58b025fe4aaf6e6f8948ae932de
Time: 2017-07-10
Author: belbs@users.noreply.github.com
File Name: parlai/tasks/cbt/build.py
Class Name:
Method Name: build


Project Name: facebookresearch/ParlAI
Commit Name: c8fdaf6c7bc7e58b025fe4aaf6e6f8948ae932de
Time: 2017-07-10
Author: belbs@users.noreply.github.com
File Name: parlai/tasks/dialog_babi/build.py
Class Name:
Method Name: build


Project Name: facebookresearch/ParlAI
Commit Name: c8fdaf6c7bc7e58b025fe4aaf6e6f8948ae932de
Time: 2017-07-10
Author: belbs@users.noreply.github.com
File Name: parlai/tasks/mctest/build.py
Class Name:
Method Name: build


Project Name: facebookresearch/ParlAI
Commit Name: c8fdaf6c7bc7e58b025fe4aaf6e6f8948ae932de
Time: 2017-07-10
Author: belbs@users.noreply.github.com
File Name: parlai/tasks/vqa_v1/build.py
Class Name:
Method Name: build


Project Name: facebookresearch/ParlAI
Commit Name: c8fdaf6c7bc7e58b025fe4aaf6e6f8948ae932de
Time: 2017-07-10
Author: belbs@users.noreply.github.com
File Name: parlai/tasks/squad/build.py
Class Name:
Method Name: build


Project Name: facebookresearch/ParlAI
Commit Name: c8fdaf6c7bc7e58b025fe4aaf6e6f8948ae932de
Time: 2017-07-10
Author: belbs@users.noreply.github.com
File Name: parlai/tasks/ubuntu/build.py
Class Name:
Method Name: build


Project Name: facebookresearch/ParlAI
Commit Name: c8fdaf6c7bc7e58b025fe4aaf6e6f8948ae932de
Time: 2017-07-10
Author: belbs@users.noreply.github.com
File Name: parlai/tasks/vqa_v2/build.py
Class Name:
Method Name: build