<commit_before>from flask import current_app

# Find the stack on which we want to store the database connection.
# Starting with Flask 0.9, the _app_ctx_stack is the correct one,
# before that we need to use the _request_ctx_stack.
try:
    from flask import _app_ctx_stack as stack
except ImportError:
    from flask import _request_ctx_stack as stack

from ..databases import MySQLDatabase

class FySQL(object):
    engines = {
        'MySQL': MySQLDatabase
    }

    def __init__(self, app=None):
        self.app = app
        if app is not None:<commit_msg>fix flask_fysql<commit_after># Find the stack on which we want to store the database connection.
# Starting with Flask 0.9, the _app_ctx_stack is the correct one,
# before that we need to use the _request_ctx_stack.
try:
    from flask import _app_ctx_stack as stack
except ImportError:
    from flask import _request_ctx_stack as stack

from ..databases import MySQLDatabase

class FySQL(object):
    engines = {
        'MySQL': MySQLDatabase
    }

    def __init__(self, app=None):
        self.app = app
        if app is not None:
{'fraction_non_alphanumeric': 0.05812897366030881, 'fraction_numerical': 0.0036330608537693005, 'mean_word_length': 3.355731225296443, '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': '4519348', 'n_tokens_mistral': 338, 'n_tokens_neox': 325, 'n_words': 133}