<commit_before>from django.contrib.sessions.middleware import SessionMiddleware
from django.http import HttpRequest, QueryDict
from django.test import TestCase, Client

from corehq.apps.data_interfaces.views import XFormManagementView
from corehq.apps.domain.shortcuts import create_domain
from corehq.apps.users.models import WebUser


class XFormManagementTest(TestCase):

    @classmethod
    def setUpClass(cls):<commit_msg>Fix ES index setup in XFormManagementTest<commit_after>from django.contrib.sessions.middleware import SessionMiddleware
from django.http import HttpRequest, QueryDict
from django.test import TestCase, Client

from corehq.apps.data_interfaces.views import XFormManagementView
from corehq.apps.domain.shortcuts import create_domain
from corehq.apps.users.models import WebUser
from corehq.pillows.mappings.xform_mapping import XFORM_INDEX_INFO
from corehq.util.elastic import reset_es_index


class XFormManagementTest(TestCase):

    @classmethod
    def setUpClass(cls):
        reset_es_index(XFORM_INDEX_INFO)
{'fraction_non_alphanumeric': 0.05678537054860443, 'fraction_numerical': 0.0, 'mean_word_length': 6.428571428571429, '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': '7056895', 'n_tokens_mistral': 302, 'n_tokens_neox': 296, 'n_words': 75}