<commit_before>from collections import Counter, defaultdict
import tempfile

from tests import BZTestCase, setup_test_logging
from tests.mocks import EngineEmul
from bzt.modules.reporting import JUnitXMLReporter
from bzt.utils import BetterDict
from bzt.modules.passfail import PassFailStatus, FailCriteria
from bzt.modules.aggregator import DataPoint, KPISet

try:
    from lxml import etree
except ImportError:
    try:
        import cElementTree as etree
    except ImportError:
        import elementtree.ElementTree as etree

import os

setup_test_logging()


class TestJUnitXML(BZTestCase):
    def test_prepare_filename_in_settings(self):
        # test path parameter from config<commit_msg>Move etree import to six<commit_after>from collections import Counter, defaultdict
import tempfile

from tests import BZTestCase, setup_test_logging
from tests.mocks import EngineEmul
from bzt.modules.reporting import JUnitXMLReporter
from bzt.utils import BetterDict
from bzt.modules.passfail import PassFailStatus, FailCriteria
from bzt.modules.aggregator import DataPoint, KPISet
from bzt.six import etree

import os

setup_test_logging()


class TestJUnitXML(BZTestCase):
    def test_prepare_filename_in_settings(self):
        # test path parameter from config
{'fraction_non_alphanumeric': 0.04265402843601896, 'fraction_numerical': 0.0, 'mean_word_length': 5.335, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 1}, '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': '961003', 'n_tokens_mistral': 360, 'n_tokens_neox': 353, 'n_words': 117}