<commit_before>from __future__ import absolute_import, unicode_literals

import unittest

from draftjs_exporter.constants import Enum, BLOCK_TYPES, ENTITY_TYPES, INLINE_STYLES


class EnumConstants(unittest.TestCase):
    def test_enum_returns_the_key_if_valid(self):
        foo_value = 'foo'<commit_msg>Fix import order picked up by isort<commit_after>from __future__ import absolute_import, unicode_literals

import unittest

from draftjs_exporter.constants import BLOCK_TYPES, ENTITY_TYPES, INLINE_STYLES, Enum


class EnumConstants(unittest.TestCase):
    def test_enum_returns_the_key_if_valid(self):
        foo_value = 'foo'
{'fraction_non_alphanumeric': 0.056962025316455694, 'fraction_numerical': 0.0, 'mean_word_length': 6.626506024096385, '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': '2230926', 'n_tokens_mistral': 206, 'n_tokens_neox': 205, 'n_words': 45}