<commit_before>#!/usr/bin/env python3

import sys
import os
import time

import docopt


# This is required only for Python 2
# pylint: disable=import-error
try:
    # First try local import for development
    from .adbe import adb_enhanced
    from .adbe import adb_helper
    from .adbe.output_helper import print_error_and_exit, print_message, set_verbose
except ImportError:
    # This works when the code is executed as a part of the module
    import adb_enhanced
    import adb_helper
    from output_helper import print_error_and_exit, print_message, set_verbose<commit_msg>Handle ModuleNotFoundError<commit_after>#!/usr/bin/env python3

import sys
import os
import time

import docopt


# This is required only for Python 2
# pylint: disable=import-error
try:
    # First try local import for development
    from .adbe import adb_enhanced
    from .adbe import adb_helper
    from .adbe.output_helper import print_error_and_exit, print_message, set_verbose
# Python 3.6 onwards, this throws ModuleNotFoundError
except (ImportError, ModuleNotFoundError):
    # This works when the code is executed as a part of the module
    import adb_enhanced
    import adb_helper
    from output_helper import print_error_and_exit, print_message, set_verbose
{'fraction_non_alphanumeric': 0.044585987261146494, 'fraction_numerical': 0.004777070063694267, 'mean_word_length': 4.348936170212766, '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': '1397115', 'n_tokens_mistral': 374, 'n_tokens_neox': 359, 'n_words': 137}