<commit_before>"""Tests for poke_jenkins hook."""
import contextlib
import os
import tempfile
import pytest

from mercurial import ui, hg, commands, util

import hg_commit_sanity


@pytest.fixture
def hg_ui():
    """Create test mercurial ui."""
    return ui.ui()


@pytest.fixture
def checkers():
    """Get checkers."""
    return {
        '.py': [
            '^[^#]*import pdb; pdb.set_trace\(\)',
            '^print'],
        '.js': ['^[^(//)]*console\.[a-zA-Z]+\(.*\)']
    }
<commit_msg>tests fixes<commit_after>"""Tests for poke_jenkins hook."""
import contextlib
import os
import tempfile
import pytest

from mercurial import ui, hg, commands, util

import hg_commit_sanity


@pytest.fixture
def hg_ui():
    """Create test mercurial ui."""
    return ui.ui()


@pytest.fixture
def checkers():
    """Get checkers."""
    return {
        '.py': """^[^#]*import pdb; pdb.set_trace\(\)
^print']""",
        '.js': '^[^(//)]*console\.[a-zA-Z]+\(.*\)'
    }

{'fraction_non_alphanumeric': 0.1993801652892562, 'fraction_numerical': 0.0, 'mean_word_length': 3.020746887966805, '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': '793996', 'n_tokens_mistral': 363, 'n_tokens_neox': 354, 'n_words': 87}