<commit_before>import os
import mylib
os.system('make all')


def test_squared():
    assert 16. == mylib.squared(4) 


def test_myfunction():
    assert 16. == mylib.myfunction(mylib.squared, 4) 


os.system('make clean')<commit_msg>Use pytest fixture to deal with compilation<commit_after>import os

import pytest

@pytest.fixture
def setup(request):
    def teardown():
        print("Running make clean")
        os.system('make clean')
        print("Completed finaliser")
    request.addfinalizer(teardown)
    os.system('make clean')
    os.system('make all')


def test_squared(setup):
    import mylib
    assert 16. == mylib.squared(4) 


def test_myfunction(setup):
    import mylib
    assert 16. == mylib.myfunction(mylib.squared, 4) 

{'fraction_non_alphanumeric': 0.12032085561497326, 'fraction_numerical': 0.016042780748663103, 'mean_word_length': 3.623456790123457, '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': '2753862', 'n_tokens_mistral': 270, 'n_tokens_neox': 243, 'n_words': 60}