<commit_before>#!/usr/bin/env pytest

import re

from ornithology import (
    action,
    write_file,
    format_script,
    ClusterState,
)


@action
def plugin_log_file(test_dir):
    return test_dir / "plugin.log"


@action
def job_python_file(test_dir):
    job_python_file = test_dir / "debug.py"
    contents = format_script(
    """
        #!/usr/bin/python3

        import classad
        import json
        import os
        import posixpath
        import requests
        import shutil
        import socket
        import sys<commit_msg>HTCONDOR-899 test_htcondor_955 "import request"s, which doesn't exist on AmazonLinux2, but it doesn't use it either. So just remove it.<commit_after>#!/usr/bin/env pytest

import re

from ornithology import (
    action,
    write_file,
    format_script,
    ClusterState,
)


@action
def plugin_log_file(test_dir):
    return test_dir / "plugin.log"


@action
def job_python_file(test_dir):
    job_python_file = test_dir / "debug.py"
    contents = format_script(
    """
        #!/usr/bin/python3

        import classad
        import json
        import os
        import posixpath
        import shutil
        import socket
        import sys
{'fraction_non_alphanumeric': 0.0755813953488372, 'fraction_numerical': 0.007475083056478406, 'mean_word_length': 2.442857142857143, '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': '1869531', 'n_tokens_mistral': 392, 'n_tokens_neox': 378, 'n_words': 99}