a8a37622f0ef987ca83c9b401700d0fcbece9b70,sos/__main__.py,,get_convert_parser,#,61

Before Change


        help="""Destination file format, which is usually determined from
            extension of `to_file` filename, but is needed if `to_file` is
            unspecified.""")
    parser.add_argument("-l", "--list", action="store_true",
        help="""List all available converters or converters matching input parameters 
            and their options.""")
    parser.add_argument("-v", "--verbosity", type=int, choices=range(5), default=2,
        help="""Output error (0), warning (1), info (2), debug (3) and trace (4)
            information to standard output (default to 2)."""),
    parser.set_defaults(func=cmd_convert)

After Change


    for entrypoint in pkg_resources.iter_entry_points(group="sos_converters"):
        try:
            name = entrypoint.name
            if not name.endswith(".parser"):
                continue
            f_format, t_format = name.rsplit(".",1)[0].split("-")
            subparser = add_sub_parser(subparsers, entrypoint.load()(), name="{}-{}".format(f_format, t_format))
            subparser.add_argument("from_file", metavar="FROM", nargs="?",
                help="""File to be converted.""")
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 3

Instances


Project Name: vatlab/SoS
Commit Name: a8a37622f0ef987ca83c9b401700d0fcbece9b70
Time: 2016-12-12
Author: ben.bog@gmail.com
File Name: sos/__main__.py
Class Name:
Method Name: get_convert_parser


Project Name: AllenCellModeling/pytorch_fnet
Commit Name: 14db8e4673cbbfd58ffb01e4374d5c87d7e5b6e3
Time: 2017-11-01
Author: chek.o@outlook.com
File Name: tools/colorize_tifs.py
Class Name:
Method Name:


Project Name: automl/auto-sklearn
Commit Name: 9d0ed839dc9df4c9afc5966c1e3276c478a58d53
Time: 2020-09-16
Author: feurerm@informatik.uni-freiburg.de
File Name: scripts/03_calculate_metafeatures.py
Class Name:
Method Name:


Project Name: vatlab/SoS
Commit Name: a8a37622f0ef987ca83c9b401700d0fcbece9b70
Time: 2016-12-12
Author: ben.bog@gmail.com
File Name: sos/__main__.py
Class Name:
Method Name: get_convert_parser