<commit_before># -*- coding: utf-8 -*-

"""
test_form.py: Unit tests for ``bottle_utils.form`` module

Bottle Utils
2014 Outernet Inc <<EMAIL>>
All rights reserved

Licensed under BSD license. See ``LICENSE`` file in the source directory.
"""

from __future__ import unicode_literals

import mock
import pytest

import bottle_utils.form as mod
from bottle_utils.lazy import Lazy

MOD = mod.__name__


class TestLabel(object):<commit_msg>Use unittest.mock in py3<commit_after># -*- coding: utf-8 -*-

"""
test_form.py: Unit tests for ``bottle_utils.form`` module

Bottle Utils
2014 Outernet Inc <<EMAIL>>
All rights reserved

Licensed under BSD license. See ``LICENSE`` file in the source directory.
"""

from __future__ import unicode_literals

try:
    from unittest import mock
except ImportError:
    import mock

import pytest

import bottle_utils.form as mod
from bottle_utils.lazy import Lazy

MOD = mod.__name__


class TestLabel(object):
{'fraction_non_alphanumeric': 0.09206349206349207, 'fraction_numerical': 0.01164021164021164, 'mean_word_length': 4.597633136094674, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 7, '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': '3904481', 'n_tokens_mistral': 309, 'n_tokens_neox': 298, 'n_words': 107}