de3171b4d0c7b1cbf217b983359edb0f862ce168,compiler/quilt/tools/main.py,CustomHelpParser,__init__,#CustomHelpParser#,70

Before Change



class CustomHelpParser(argparse.ArgumentParser):
    def __init__(self, *args, **kwargs):
        full_help_only = kwargs.pop("full_help_only", False)
        helpcommand = kwargs.pop("helpcommand", False)

        kwargs["add_help"] = False
        super(CustomHelpParser, self).__init__(*args, **kwargs)

After Change


        helpcommand = kwargs.pop("helpcommand", False)

        kwargs["add_help"] = False
        kwargs.setdefault("formatter_class", argparse.RawDescriptionHelpFormatter)
        super(CustomHelpParser, self).__init__(*args, **kwargs)
        if helpcommand:
            self.add_argument("--help", "-h", action="help", help="Show this message")
        else:
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 3

Instances


Project Name: quiltdata/quilt
Commit Name: de3171b4d0c7b1cbf217b983359edb0f862ce168
Time: 2018-03-06
Author: aeon.descriptor@gmail.com
File Name: compiler/quilt/tools/main.py
Class Name: CustomHelpParser
Method Name: __init__


Project Name: arviz-devs/arviz
Commit Name: 259010ab242cc109b2b8dfbb20812d27b812dd14
Time: 2020-06-01
Author: aloctavodia@gmail.com
File Name: arviz/plots/loopitplot.py
Class Name:
Method Name: plot_loo_pit


Project Name: matplotlib/matplotlib
Commit Name: 9c7f926d6d70a994c3710ce570bb9807519ef090
Time: 2019-01-17
Author: anntzer.lee@gmail.com
File Name: lib/matplotlib/backends/backend_agg.py
Class Name: FigureCanvasAgg
Method Name: print_png