<commit_before>from nose.tools import eq_, ok_
from nose.plugins.skip import SkipTest

# Skip test on PY3
from flask_admin._compat import PY2, as_unicode
if not PY2:
    raise SkipTest('MongoEngine is not Python 3 compatible')

from wtforms import fields, validators

from flask_admin import form
from flask_admin.contrib.mongoengine import ModelView

from . import setup

from datetime import datetime

class CustomModelView(ModelView):
    def __init__(self, model,
                 name=None, category=None, endpoint=None, url=None,
                 **kwargs):
        for k, v in kwargs.iteritems():<commit_msg>fix: skip tests for mongo engine on python v2.6<commit_after>from nose.tools import eq_, ok_
from nose.plugins.skip import SkipTest

# Skip test on PY3
from flask_admin._compat import PY2, as_unicode
if not PY2:
    raise SkipTest('MongoEngine is not Python 3 compatible')
# Skip test on Python 2.6 since it is still supported by flask-admin:
import sys
if sys.version_info[0] == 2 and sys.version_info[1] == 6:
    raise SkipTest('MongoEngine is not Python 2.6 compatible as of its 0.11 version.')

from wtforms import fields, validators

from flask_admin import form
from flask_admin.contrib.mongoengine import ModelView

from . import setup

from datetime import datetime

class CustomModelView(ModelView):
    def __init__(self, model,
                 name=None, category=None, endpoint=None, url=None,
                 **kwargs):
        for k, v in kwargs.iteritems():
{'fraction_non_alphanumeric': 0.07248322147651007, 'fraction_numerical': 0.014093959731543624, 'mean_word_length': 3.7788461538461537, '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': '4218730', 'n_tokens_mistral': 448, 'n_tokens_neox': 430, 'n_words': 165}