<commit_before>#!/usr/bin/env python
""" Script to start development test battery for the ROBUPY package.
"""

# standard library
from datetime import timedelta
from datetime import datetime

import numpy as np

import traceback
import importlib
import argparse
import random
import time
import sys
import os

# virtual environment
if not hasattr(sys, 'real_prefix'):
    raise AssertionError('Please use a virtual environment for testing')

# ROBUPY directory. This allows to compile the debug version of the FORTRAN
# program.
ROBUPY_DIR = os.path.dirname(os.path.realpath(__file__))
ROBUPY_DIR = ROBUPY_DIR.replace('development/testing', '') + 'robupy'

# ROBPUPY testing codes. The import of the PYTEST configuration file ensures
# that the PYTHONPATH is modified to allow for the use of the tests..
TEST_DIR = os.path.dirname(os.path.realpath(__file__))
TEST_DIR = TEST_DIR.replace('development/testing', '') + 'robupy/tests'

sys.path.insert(0, TEST_DIR)

# Setup for dealing with PYTEST command line options
import functools
import inspect<commit_msg>minor fix<commit_after>#!/usr/bin/env python
""" Script to start development test battery for the ROBUPY package.
"""

# standard library
from datetime import timedelta
from datetime import datetime

import numpy as np

import traceback
import importlib
import argparse
import random
import time
import sys
import os

# virtual environment
if not hasattr(sys, 'real_prefix'):
    raise AssertionError('Please use a virtual environment for testing')

# ROBUPY directory. This allows to compile the debug version of the FORTRAN
# program.
ROBUPY_DIR = os.path.dirname(os.path.realpath(__file__))
ROBUPY_DIR = ROBUPY_DIR.replace('development/testing', '') + 'robupy'

# ROBPUPY testing codes. The import of the PYTEST configuration file ensures
# that the PYTHONPATH is modified to allow for the use of the tests..
TEST_DIR = os.path.dirname(os.path.realpath(__file__))
TEST_DIR = TEST_DIR.replace('development/testing', '') + 'robupy/tests'

sys.path.insert(0, TEST_DIR)
import conftest

# Setup for dealing with PYTEST command line options
import functools
import inspect
{'fraction_non_alphanumeric': 0.08176691729323309, 'fraction_numerical': 0.0009398496240601503, 'mean_word_length': 5.298816568047338, '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': '4708188', 'n_tokens_mistral': 628, 'n_tokens_neox': 616, 'n_words': 232}