<commit_before>#!/usr/bin/env python
import subprocess
import pytest


def test_findtext():
    ret = subprocess.check_output(['findtext', 'import'], universal_newlines=True)

    assert isinstance(ret, str)
    assert len(ret) > 0


if __name__ == '__main__':
    pytest.main(['-x', __file__])<commit_msg>test use specific directory in case of varying systems<commit_after>#!/usr/bin/env python
import subprocess
import pytest
from pathlib import Path

R = Path(__file__).parent


def test_findtext():
    ret = subprocess.check_output(['findtext', 'import'], universal_newlines=True, cwd=R)

    assert isinstance(ret, str)
    assert len(ret) > 0


if __name__ == '__main__':
    pytest.main(['-x', __file__])
{'fraction_non_alphanumeric': 0.13202247191011235, 'fraction_numerical': 0.0028089887640449437, 'mean_word_length': 4.796747967479675, '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': '4515448', 'n_tokens_mistral': 240, 'n_tokens_neox': 233, 'n_words': 60}