<commit_before>from collections import UserString
from .parser cimport Token, BaseDaffodilDelegate


RE_CASE = "CASE WHEN ({0}->'{1}' ~ E'"
RE_THEN = "') THEN "
RE_ELSE = "ELSE -2147483648 END"


class ExpressionStr(UserString):
    """
    Subclass of str() that allows annotations based on which key and
    test are being used.
    """
    daff_key = ''
    daff_test = ''
    daff_val = ''


def breaks_optimizer(expr):
    if not isinstance(expr, ExpressionStr):
        return True

    return (
        expr.daff_test in {"!=", "!in"} or<commit_msg>temporarily off<commit_after>from collections import UserString
from .parser cimport Token, BaseDaffodilDelegate


RE_CASE = "CASE WHEN ({0}->'{1}' ~ E'"
RE_THEN = "') THEN "
RE_ELSE = "ELSE -2147483648 END"


class ExpressionStr(UserString):
    """
    Subclass of str() that allows annotations based on which key and
    test are being used.
    """
    daff_key = ''
    daff_test = ''
    daff_val = ''


def breaks_optimizer(expr):
    return False
    if not isinstance(expr, ExpressionStr):
        return True

    return (
        expr.daff_test in {"!=", "!in"} or
{'fraction_non_alphanumeric': 0.12024756852343059, 'fraction_numerical': 0.021220159151193633, 'mean_word_length': 3.161764705882353, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 5, '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': '4013302', 'n_tokens_mistral': 394, 'n_tokens_neox': 369, 'n_words': 108}