<commit_before>import copy
from datetime import date, datetime
from decimal import Decimal
from django.test import SimpleTestCase
from fakecouch import FakeCouchDb
from casexml.apps.case.models import CommCareCase
from corehq.apps.userreports.exceptions import BadSpecError
from corehq.apps.userreports.expressions.factory import ExpressionFactory
from corehq.apps.userreports.expressions.specs import (
    PropertyNameGetterSpec,
    PropertyPathGetterSpec,
    RelatedDocExpressionSpec,
)
from corehq.apps.userreports.specs import EvaluationContext


class ExpressionPluginTest(SimpleTestCase):

    def test_custom_expression(self):
        """Confirm that plugin framework is being bootstrapped."""
        ExpressionFactory.from_spec({
            "type": "abt_supervisor"
        })

    def test_double_registration(self):
<commit_msg>unused import<commit_after>import copy
from datetime import date, datetime
from decimal import Decimal
from django.test import SimpleTestCase
from fakecouch import FakeCouchDb
from casexml.apps.case.models import CommCareCase
from corehq.apps.userreports.exceptions import BadSpecError
from corehq.apps.userreports.expressions.factory import ExpressionFactory
from corehq.apps.userreports.expressions.specs import (
    PropertyNameGetterSpec,
    PropertyPathGetterSpec,
)
from corehq.apps.userreports.specs import EvaluationContext


class ExpressionPluginTest(SimpleTestCase):

    def test_custom_expression(self):
        """Confirm that plugin framework is being bootstrapped."""
        ExpressionFactory.from_spec({
            "type": "abt_supervisor"
        })

    def test_double_registration(self):

{'fraction_non_alphanumeric': 0.06340579710144928, 'fraction_numerical': 0.0, 'mean_word_length': 4.981949458483754, 'pattern_counts': {'":': 2, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 2}, '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': '5893819', 'n_tokens_mistral': 451, 'n_tokens_neox': 435, 'n_words': 114}