<commit_before>
from awx.fact.models import FactVersion
from mongoengine.connection import ConnectionError
from pymongo.errors import OperationFailure
from django.conf import settings

def drop_system_tracking_db():
    try:
        db = FactVersion._get_db()
        db.connection.drop_database(settings.MONGO_DB)
    except ConnectionError:
        # TODO: Log this. Not a deal-breaker. Just let the user know they
        # may need to manually drop/delete the database.
        pass
    except OperationFailure:
        # TODO: This means the database was up but something happened when we tried to query it
        return pass

def migrate_facts(apps, schema_editor):<commit_msg>Pass, don't return pass when checking mongo connectivity<commit_after>
from awx.fact.models import FactVersion
from mongoengine.connection import ConnectionError
from pymongo.errors import OperationFailure
from django.conf import settings

def drop_system_tracking_db():
    try:
        db = FactVersion._get_db()
        db.connection.drop_database(settings.MONGO_DB)
    except ConnectionError:
        # TODO: Log this. Not a deal-breaker. Just let the user know they
        # may need to manually drop/delete the database.
        pass
    except OperationFailure:
        # TODO: This means the database was up but something happened when we tried to query it
        pass

def migrate_facts(apps, schema_editor):
{'fraction_non_alphanumeric': 0.05413105413105413, 'fraction_numerical': 0.0, 'mean_word_length': 3.4321766561514195, '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': '6705262', 'n_tokens_mistral': 374, 'n_tokens_neox': 357, 'n_words': 141}