<commit_before>"""
Author: <NAME>
Purpose: A script to concatenate my thesis chapters together into a single
         file. The key point here is that it adds a 'newline' character between
         documents, something that the bash `cat` command doesn't do.
"""

order = ['title.md',
         'introduction.md',
         'algorithm.md',
         'applications.md',
         'future-work.md',
         'appendices.md']

thesis = ''
for text in order:
    with open(text, 'r+') as f:
        thesis += f.read()
        thesis += "\n"

with open('thesis.md', 'w+') as f:
    f.write(thesis)<commit_msg>test hook<commit_after>"""
Author: <NAME>
Purpose: A script to concatenate my thesis chapters together into a single
         file. The key point here is that it adds a 'newline' character between
         documents, something that the bash `cat` command doesn't do.
"""


order = ['title.md',
         'introduction.md',
         'algorithm.md',
         'applications.md',
         'future-work.md',
         'appendices.md']

thesis = ''
for text in order:
    with open(text, 'r+') as f:
        thesis += f.read()
        thesis += "\n"

with open('thesis.md', 'w+') as f:
    f.write(thesis)
{'fraction_non_alphanumeric': 0.13700918964076858, 'fraction_numerical': 0.0, 'mean_word_length': 2.452449567723343, 'pattern_counts': {'":': 0, '<': 5, '<?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': '2778457', 'n_tokens_mistral': 379, 'n_tokens_neox': 370, 'n_words': 128}