033214ec7eb7c36006bc3c6846220166b6bb5a00,scripts/datasets/general_nlp_benchmark/prepare_glue.py,,main,#Any#,596

Before Change


            for key, df in df_dict.items():
                if key == "val":
                    key = "dev"
                df.to_pickle(os.path.join(base_dir, "{}.pd.pkl".format(key)))
            if meta_data is not None:
                with open(os.path.join(base_dir, "metadata.json"), "w") as f:
                    json.dump(meta_data, f)

After Change


            base_dir = os.path.join(args.data_dir, task)
            if os.path.exists(base_dir):
                print("Found!")
                continue
            zip_dir_name = None
            with zipfile.ZipFile(data_file) as zipdata:
                if zip_dir_name is None:
                    zip_dir_name = os.path.dirname(zipdata.infolist()[0].filename)
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 2

Instances


Project Name: dmlc/gluon-nlp
Commit Name: 033214ec7eb7c36006bc3c6846220166b6bb5a00
Time: 2020-07-29
Author: xshiab@connect.ust.hk
File Name: scripts/datasets/general_nlp_benchmark/prepare_glue.py
Class Name:
Method Name: main


Project Name: deeppomf/DeepCreamPy
Commit Name: 569305e77b02632e215ef9df99de87dc6da8879b
Time: 2019-04-22
Author: 46418312+ccppoo@users.noreply.github.com
File Name: decensor.py
Class Name: Decensor
Method Name: decensor_all_images_in_folder


Project Name: chainer/chainercv
Commit Name: 6ab83dc482c731b300a4f38a5cce6f82565bf1ae
Time: 2017-10-04
Author: Hakuyume@users.noreply.github.com
File Name: style_checker.py
Class Name:
Method Name: main