<commit_before>import json
from datetime import date, datetime, time
from unittest import SkipTest, mock

import django
import pytest
from django.core import serializers
from django.db import connection, connections
from django.db.migrations.writer import MigrationWriter
from django.db.models import CharField, Transform
from django.test import TestCase

from django_mysql.models import DynamicField
from django_mysql.utils import connection_is_mariadb
from tests.testapp.models import DynamicModel, SpeclessDynamicModel, TemporaryModel

try:
    import mariadb_dyncol
except ImportError:  # pragma: no cover
    mariadb_dyncol = None


class DynColTestCase(TestCase):

    @classmethod<commit_msg>Fix mariadb-dyncol import in tests (#551)<commit_after>import json
from datetime import date, datetime, time
from unittest import SkipTest, mock

import django
import mariadb_dyncol
import pytest
from django.core import serializers
from django.db import connection, connections
from django.db.migrations.writer import MigrationWriter
from django.db.models import CharField, Transform
from django.test import TestCase

from django_mysql.models import DynamicField
from django_mysql.utils import connection_is_mariadb
from tests.testapp.models import DynamicModel, SpeclessDynamicModel, TemporaryModel


class DynColTestCase(TestCase):

    @classmethod
{'fraction_non_alphanumeric': 0.04518518518518518, 'fraction_numerical': 0.0022222222222222222, 'mean_word_length': 6.382513661202186, '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': '4873111', 'n_tokens_mistral': 369, 'n_tokens_neox': 358, 'n_words': 128}