<commit_before>import argparse

def defaultopts(parser):
    parser.add_argument('filename', help='The audio file to be processed')
    parser.add_argument('-n', action="store_false", help="Disable graph output", dest="display")
    parser.add_argument('-d', '--figure', metavar="FILENAME", help="Save figure to file")
    parser.add_argument('-g', '--order', type=int, default=17, metavar="ORDER", help="Set order of median filter, defaults to 17")

    parser.add_argument('-f', '--framelength', type=powof2, default=1024, metavar="SAMPLES", help="Set FFT framelength")
    parser.add_argument('--overlap', type=powof2, default=2, metavar="FRAMELENGTH/X", help="Set relative FFT frame overlap")

    parser.add_argument('-o', '--original', metavar="FILENAME", help="Save original signal to file")
    parser.add_argument('-p', '--prediction', metavar="FILENAME", help="Save predicted signal to file")
    parser.add_argument('-e', '--error', metavar="FILENAME", help="Save error signal to file")

def powof2(arg):
    num = int(arg)
    if(not(num != 0 and ((num & (num - 1)) == 0))):
        raise argparse.ArgumentTypeError("%r is not a power of two" % num)
    return value
<commit_msg>Programme mit unterschiedlichen Paramtern testen, hat einen Bug aufgedeckt<commit_after>import argparse

def defaultopts(parser):
    parser.add_argument('filename', help='The audio file to be processed')
    parser.add_argument('-n', action="store_false", help="Disable graph output", dest="display")
    parser.add_argument('-d', '--figure', metavar="FILENAME", help="Save figure to file")
    parser.add_argument('-g', '--order', type=int, default=17, metavar="ORDER", help="Set order of median filter, defaults to 17")

    parser.add_argument('-f', '--framelength', type=powof2, default=1024, metavar="SAMPLES", help="Set FFT framelength")
    parser.add_argument('--overlap', type=powof2, default=2, metavar="FRAMELENGTH/X", help="Set relative FFT frame overlap")

    parser.add_argument('-o', '--original', metavar="FILENAME", help="Save original signal to file")
    parser.add_argument('-p', '--prediction', metavar="FILENAME", help="Save predicted signal to file")
    parser.add_argument('-e', '--error', metavar="FILENAME", help="Save error signal to file")

def powof2(arg):
    num = int(arg)
    if(not(num != 0 and ((num & (num - 1)) == 0))):
        raise argparse.ArgumentTypeError("%r is not a power of two" % num)
    return num

{'fraction_non_alphanumeric': 0.16919295370749693, 'fraction_numerical': 0.012290045063498567, 'mean_word_length': 5.0, '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': '5635749', 'n_tokens_mistral': 799, 'n_tokens_neox': 777, 'n_words': 208}