7d40903e021cbf8893feeef0a7654aab53ef06c2,catalyst/contrib/scripts/project_embeddings.py,,parse_args,#,12
Before Change
def parse_args():
parser = argparse.ArgumentParser()
parser.add_argument(
"--in-npy",
type=str,
dest="in_npy",
help="path to npy with project embeddings",
required=True
)
parser.add_argument(
"--in-csv",
type=str,
dest="in_csv",
help="path to csv with photos",
required=True
)
parser.add_argument(
"--out-dir",
type=str,
dest="out_dir",
default=None,
help="directory to output files",
required=True
)
parser.add_argument(
"--out-prefix",
type=str,
dest="out_prefix",
default=None,
help="additional prefix to saved files"
)
parser.add_argument(
"--img-col",
type=str,
dest="img_col",
default=None,
help="column in the table that contains image paths"
)
parser.add_argument(
"--img-datapath",
type=str,
dest="img_datapath",
help="path to photos directory"
)
parser.add_argument(
"--img-size",
type=int,
dest="img_size",
default=16,
help="if --img-col is defined, "
"then images will be resized to (img-size, img-size, 3)"
)
parser.add_argument(
"--n-rows",
type=int,
dest="n_rows",
default=None,
help="count of rows to use in csv "
"(if not defined then it will use whole data)"
)
parser.add_argument(
"--meta-cols",
type=str,
dest="meta_cols",
default=None,
help="columns in the table to save, separated by commas"
)
args = parser.parse_args()
return args
After Change
def parse_args():
parser = argparse.ArgumentParser()
build_args(parser)
args = parser.parse_args()
return args
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 7
Instances
Project Name: Scitator/catalyst
Commit Name: 7d40903e021cbf8893feeef0a7654aab53ef06c2
Time: 2019-01-23
Author: scitator@gmail.com
File Name: catalyst/contrib/scripts/project_embeddings.py
Class Name:
Method Name: parse_args
Project Name: Scitator/catalyst
Commit Name: 7d40903e021cbf8893feeef0a7654aab53ef06c2
Time: 2019-01-23
Author: scitator@gmail.com
File Name: catalyst/contrib/scripts/project_embeddings.py
Class Name:
Method Name: parse_args
Project Name: Scitator/catalyst
Commit Name: a96d5c587fe58aeece67e53011b0e8740fe6c244
Time: 2019-01-21
Author: poletaev.va@gmail.com
File Name: dl/scripts/inference.py
Class Name:
Method Name: parse_args
Project Name: Scitator/catalyst
Commit Name: 7d40903e021cbf8893feeef0a7654aab53ef06c2
Time: 2019-01-23
Author: scitator@gmail.com
File Name: catalyst/contrib/scripts/create_index_model.py
Class Name:
Method Name: parse_args