<commit_before># -*- coding: utf-8 -*-

"""Common fixtures and test functions"""

import gevent.monkey
gevent.monkey.patch_all()
import uuid
import pytest

TESTDATA_DIR = 'testdata'

# Timeout to apply when waiting for actions that should
# happen 'immediately', i.e. should take only a few
# milliseconds
QUASI_IMMEDIATE_TIMEOUT = .2


@pytest.fixture
def unique_filename():
    return str(uuid.uuid1())
<commit_msg>New constant PROJ_DIR<commit_after># -*- coding: utf-8 -*-

"""Common fixtures and test functions"""

import gevent.monkey
gevent.monkey.patch_all()
import uuid
import pytest
import os

TESTDATA_DIR = 'testdata'

# Timeout to apply when waiting for actions that should
# happen 'immediately', i.e. should take only a few
# milliseconds
QUASI_IMMEDIATE_TIMEOUT = .2

# Tests must be executed from project directory
PROJ_DIR = os.getcwd()


@pytest.fixture
def unique_filename():
    return str(uuid.uuid1())

{'fraction_non_alphanumeric': 0.10497835497835498, 'fraction_numerical': 0.006493506493506494, 'mean_word_length': 4.709876543209877, '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': '4520103', 'n_tokens_mistral': 303, 'n_tokens_neox': 304, 'n_words': 97}