<commit_before># -*- coding: utf-8 -*-
#
# Copyright (c) 2016 - 2018 -- <NAME> - Semagia <http://www.semagia.com/>.
# All rights reserved.
#
# License: BSD License
#
"""\
QR Code and Micro QR Code encoder.

"QR Code" and "Micro QR Code" are registered trademarks of DENSO WAVE INCORPORATED.
"""
from __future__ import absolute_import, division
from operator import itemgetter, gt, lt, xor
from functools import partial, reduce
import re
import math
import codecs
from collections import namedtuple
from . import consts
_PY2 = False
try:  # pragma: no cover
    from itertools import zip_longest
    str_type = str
    numeric = int
except ImportError:  # pragma: no cover
    _PY2 = True
    from itertools import izip_longest as zip_longest
    str_type = basestring
    from numbers import Number
    numeric = Number
    str = unicode
    range = xrange

import sys
_MAX_PENALTY_SCORE = sys.maxsize
del sys<commit_msg>Use behaviour of imap in Py2<commit_after># -*- coding: utf-8 -*-
#
# Copyright (c) 2016 - 2018 -- <NAME> - Semagia <http://www.semagia.com/>.
# All rights reserved.
#
# License: BSD License
#
"""\
QR Code and Micro QR Code encoder.

"QR Code" and "Micro QR Code" are registered trademarks of DENSO WAVE INCORPORATED.
"""
from __future__ import absolute_import, division
from operator import itemgetter, gt, lt, xor
from functools import partial, reduce
import re
import math
import codecs
from collections import namedtuple
from . import consts
_PY2 = False
try:  # pragma: no cover
    from itertools import zip_longest
    str_type = str
    numeric = int
except ImportError:  # pragma: no cover
    _PY2 = True
    from itertools import izip_longest as zip_longest, imap as map
    str_type = basestring
    from numbers import Number
    numeric = Number
    str = unicode
    range = xrange

import sys
_MAX_PENALTY_SCORE = sys.maxsize
del sys
{'fraction_non_alphanumeric': 0.07754010695187166, 'fraction_numerical': 0.01229946524064171, 'mean_word_length': 3.5745721271393642, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 7, 'https://': 0, 'lorem ipsum': 0, 'www.': 2, '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': '2175499', 'n_tokens_mistral': 629, 'n_tokens_neox': 586, 'n_words': 229}