<commit_before>##==============================================================#
## SECTION: Imports                                             #
##==============================================================#

import os
import os.path as op
import sys
import unittest

# Allows development version of library to be used instead of installed.
libdir = op.normpath(op.join(op.abspath(op.dirname(__file__)), r"../lib"))
sys.path.insert(0, libdir)

from auxly.filesys import delete, makedirs

##==============================================================#
## SECTION: Global Definitions                                  #
##==============================================================#

FNAME = ["foo.txt", "bar.txt"]
DIR = ["foo", "bar", "baz", "qux"]
TEXT = ["hello", "world"]

##==============================================================#
## SECTION: Global Definitions                                  #
##==============================================================#

class BaseTest(unittest.TestCase):
    def tearDown(test):
        super(BaseTest, test).tearDown()
        for i in FNAME + DIR:
            delete(i)

##==============================================================#
## SECTION: Function Definitions                                #
##==============================================================#

def fwrite(path, text):
    makedirs(path)
    with open(path, "w") as fo:
        fo.write(text)

def fread(path):
    with open(path) as fi:
        return fi.read()

##==============================================================#
## SECTION: Main Body                                           #
##==============================================================#

if __name__ == '__main__':
    pass<commit_msg>Minor comment fix.<commit_after>##==============================================================#
## SECTION: Imports                                             #
##==============================================================#

import os
import os.path as op
import sys
import unittest

# Allows development version of library to be used instead of installed.
libdir = op.normpath(op.join(op.abspath(op.dirname(__file__)), r"../lib"))
sys.path.insert(0, libdir)

from auxly.filesys import delete, makedirs

##==============================================================#
## SECTION: Global Definitions                                  #
##==============================================================#

FNAME = ["foo.txt", "bar.txt"]
DIR = ["foo", "bar", "baz", "qux"]
TEXT = ["hello", "world"]

##==============================================================#
## SECTION: Class Definitions                                   #
##==============================================================#

class BaseTest(unittest.TestCase):
    def tearDown(test):
        super(BaseTest, test).tearDown()
        for i in FNAME + DIR:
            delete(i)

##==============================================================#
## SECTION: Function Definitions                                #
##==============================================================#

def fwrite(path, text):
    makedirs(path)
    with open(path, "w") as fo:
        fo.write(text)

def fread(path):
    with open(path) as fi:
        return fi.read()

##==============================================================#
## SECTION: Main Body                                           #
##==============================================================#

if __name__ == '__main__':
    pass
{'fraction_non_alphanumeric': 0.44510978043912175, 'fraction_numerical': 0.0005702879954376961, 'mean_word_length': 3.4348925410872315, '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': 9, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '2922703', 'n_tokens_mistral': 810, 'n_tokens_neox': 741, 'n_words': 183}