<commit_before>import sys

__author__ = 'EvilKhaosKat'


def get_filename():
    args = sys.argv

    #for arg in args:
    #    print(arg, sep="\n")

    if len(args) > 1:
        return args[1]
    else:
        return "qa_transfer.log"


def get_dest_filename(source_filename):
    """
    Calculates destination filename by source filename
    @param source_filename:
    @return: this realization returnst 'dest' + source filename
    """
    return "dest_" + source_filename


def need_to_append_line(line, prev_line_added):
    return True


filename = get_filename()

source_file = open(filename)
dest_file = open(get_dest_filename(filename), 'w')

prev_line_added = False
for line in source_file:
    if need_to_append_line(line, prev_line_added):
        dest_file.write(line)
        prev_line_added = True
    else:
        prev_line_added = False

source_file.close()
dest_file.close()<commit_msg>awesome commit - typo fixed<commit_after>import sys

__author__ = 'EvilKhaosKat'


def get_filename():
    args = sys.argv

    #for arg in args:
    #    print(arg, sep="\n")

    if len(args) > 1:
        return args[1]
    else:
        return "qa_transfer.log"


def get_dest_filename(source_filename):
    """
    Calculates destination filename by source filename
    @param source_filename: string with source filename
    @return: this realization returns 'dest_' + source filename
    """
    return "dest_" + source_filename


def need_to_append_line(line, prev_line_added):
    return True


filename = get_filename()

source_file = open(filename)
dest_file = open(get_dest_filename(filename), 'w')

prev_line_added = False
for line in source_file:
    if need_to_append_line(line, prev_line_added):
        dest_file.write(line)
        prev_line_added = True
    else:
        prev_line_added = False

source_file.close()
dest_file.close()
{'fraction_non_alphanumeric': 0.0929108485499463, 'fraction_numerical': 0.0021482277121374865, 'mean_word_length': 3.4783653846153846, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 5, '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': '148284', 'n_tokens_mistral': 617, 'n_tokens_neox': 596, 'n_words': 148}