<commit_before>import argparse


def log(args):
    print("Parsing log command")


def edit(args):
    print("Parsing edit command")
    if args.editor:
        print("Parsing edit's --editor option")


def stats(args):
    print("Parsing stats command")
    if args.today:
        print("Parsing stats's --today option")
    elif args.yesterday:
        print("Parsing stats's --yesterday option")
    elif args.day:
        print("Parsing stats's --day option")
    elif args.week:
        print("Parsing stats's --week option")
    elif args.last_week:
        print("Parsing stats's --last-week option")
    elif args.month:
        print("Parsing stats's --month option")
    elif args.last_month:
        print("Parsing stats's --last-month option")
    elif args.from:
        print("Parsing stats's --from option")
    elif args.to:
        print("Parsing stats's --to option")


def set_log_parser(subparser):
    log_parser = subparser.add_parser("log", help="Create timelog message")
    # call log() function, when processing log command
    log_parser.set_defaults(func=log)


def set_edit_parser(subparser):
    log_parser = subparser.add_parser("edit", help="Edit timelog file")
    log_parser.add_argument("-e", "--editor", help="Explicitly set editor")
    # call edit() function, when processing edit command
    log_parser.set_defaults(func=edit)


def set_stats_parser(subparser):
    log_parser = subparser.add_parser(
        "stats",
        help="Show how much time was spent working or slacking"
    )

    log_parser.add_argument("--today",
                            help="Show today's work times (default)")
    log_parser.add_argument("-y", "--yesterday",
                            help="Show yesterday's work times")
    log_parser.add_argument("-d", "--day",
                            help="Show specific day's work times")

    log_parser.add_argument("--week",
                            help="Show specific week's work times")
    log_parser.add_argument("--last-week",
                            help="Show last week's work times")

    log_parser.add_argument("--month",
                            help="Show specific month's work times")
    log_parser.add_argument("--last-month",
                            help="Show last month's work times")

    log_parser.add_argument("-f", "--from",
                            help="Show work times from specific date")
    log_parser.add_argument("-t", "--to",
                            help="Show work times from to specific date")

    # call stats() function, when processing stats command
    log_parser.set_defaults(func=stats)

<commit_msg>Parse --from as _from<commit_after>import argparse


def log(args):
    print("Parsing log command")


def edit(args):
    print("Parsing edit command")
    if args.editor:
        print("Parsing edit's --editor option")


def stats(args):
    print("Parsing stats command")
    if args.today:
        print("Parsing stats's --today option")
    elif args.yesterday:
        print("Parsing stats's --yesterday option")
    elif args.day:
        print("Parsing stats's --day option")
    elif args.week:
        print("Parsing stats's --week option")
    elif args.last_week:
        print("Parsing stats's --last-week option")
    elif args.month:
        print("Parsing stats's --month option")
    elif args.last_month:
        print("Parsing stats's --last-month option")
    elif args._from:
        print("Parsing stats's --from option")
    elif args.to:
        print("Parsing stats's --to option")


def set_log_parser(subparser):
    log_parser = subparser.add_parser("log", help="Create timelog message")
    # call log() function, when processing log command
    log_parser.set_defaults(func=log)


def set_edit_parser(subparser):
    log_parser = subparser.add_parser("edit", help="Edit timelog file")
    log_parser.add_argument("-e", "--editor", help="Explicitly set editor")
    # call edit() function, when processing edit command
    log_parser.set_defaults(func=edit)


def set_stats_parser(subparser):
    log_parser = subparser.add_parser(
        "stats",
        help="Show how much time was spent working or slacking"
    )

    log_parser.add_argument("--today",
                            help="Show today's work times (default)")
    log_parser.add_argument("-y", "--yesterday",
                            help="Show yesterday's work times")
    log_parser.add_argument("-d", "--day",
                            help="Show specific day's work times")

    log_parser.add_argument("--week",
                            help="Show specific week's work times")
    log_parser.add_argument("--last-week",
                            help="Show last week's work times")

    log_parser.add_argument("--month",
                            help="Show specific month's work times")
    log_parser.add_argument("--last-month",
                            help="Show last month's work times")

    log_parser.add_argument("-f", "--from",
                            help="Show work times from specific date",
                            dest="_from")
    log_parser.add_argument("-t", "--to",
                            help="Show work times from to specific date")

    # call stats() function, when processing stats command
    log_parser.set_defaults(func=stats)


{'fraction_non_alphanumeric': 0.12131455399061034, 'fraction_numerical': 0.0, 'mean_word_length': 2.364497789008212, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '2180536', 'n_tokens_mistral': 1521, 'n_tokens_neox': 1467, 'n_words': 392}