<commit_before>from __future__ import absolute_import, unicode_literals

from django import forms
from django.contrib import admin
from django.contrib.auth.models import User
from django.core import checks
from django.db import models
from django.test import TestCase
from django.test.utils import isolate_apps
from django.utils.safestring import mark_safe
# from django.utils import timezone

try:
    from django.urls import reverse
except ImportError:  # pragma: no cover
    from django.core.urlresolvers import reverse

from content_editor.admin import ContentEditor, ContentEditorInline, JS
from content_editor.contents import (
    contents_for_item, contents_for_mptt_item
)<commit_msg>Django 1.9 comes without isolate_apps<commit_after>from __future__ import absolute_import, unicode_literals

from django import forms
from django.contrib import admin
from django.contrib.auth.models import User
from django.core import checks
from django.db import models
from django.test import TestCase
from django.utils.safestring import mark_safe
# from django.utils import timezone

try:
    from django.urls import reverse
except ImportError:  # pragma: no cover
    from django.core.urlresolvers import reverse
try:
    from django.test.utils import isolate_apps
except ImportError:  # pragma: no cover
    # Do nothing decorator for Django 1.9
    def isolate_apps():
        def dec(fn):
            return fn
        return dec

from content_editor.admin import ContentEditor, ContentEditorInline, JS
from content_editor.contents import (
    contents_for_item, contents_for_mptt_item
)
{'fraction_non_alphanumeric': 0.04719949653870359, 'fraction_numerical': 0.0025173064820641915, 'mean_word_length': 4.802919708029197, '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': '4098316', 'n_tokens_mistral': 435, 'n_tokens_neox': 426, 'n_words': 156}