<commit_before>import os
import platform
import subprocess
import sys

try:
    from django.core.management.base import BaseCommand, CommandError as CE
    from django.conf import settings
except ImportError:
    print "\tCould not import Django python module. Is it installed properly?"
    sys.exit(1)

class Command(BaseCommand):
    """
    Script Class.
    """

    help = 'Check the CRITs install for necessary modules and configurations.'

    def handle(self, *args, **options):
        """
        Script Execution.
        """

        # Keep state in case we need to exit the test early
        fail = False

        # Test python imports
        imports = [ 'anyjson',
                   'bson',
                   'crits',
                   'dateutil',
                   'gridfs',
                   'importlib',
                   'lxml',
                   'M2Crypto',
                   'magic',
                   'mongoengine',
                   'nids',
                   'pymongo',<commit_msg>test presence of pyimpfuzzy in test_install<commit_after>import os
import platform
import subprocess
import sys

try:
    from django.core.management.base import BaseCommand, CommandError as CE
    from django.conf import settings
except ImportError:
    print "\tCould not import Django python module. Is it installed properly?"
    sys.exit(1)

class Command(BaseCommand):
    """
    Script Class.
    """

    help = 'Check the CRITs install for necessary modules and configurations.'

    def handle(self, *args, **options):
        """
        Script Execution.
        """

        # Keep state in case we need to exit the test early
        fail = False

        # Test python imports
        imports = [ 'anyjson',
                   'bson',
                   'crits',
                   'dateutil',
                   'gridfs',
                   'importlib',
                   'lxml',
                   'M2Crypto',
                   'pyimpfuzzy',
                   'magic',
                   'mongoengine',
                   'nids',
                   'pymongo',
{'fraction_non_alphanumeric': 0.08536003814973772, 'fraction_numerical': 0.0019074868860276585, 'mean_word_length': 1.485781990521327, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 2}, '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': '7312075', 'n_tokens_mistral': 544, 'n_tokens_neox': 506, 'n_words': 171}