<commit_before>from .babel.views import LocaleView
from .security.manager import SecurityManager
    
from .views import IndexView
from filters import TemplateFilters
from flask import Blueprint
from flask.ext.babel import gettext as _gettext, lazy_gettext
from flask.ext.appbuilder.babel.manager import BabelManager
from menu import Menu


class BaseApp():
    """
        This is the base class for the all framework.
        Will hold your flask app object, all your views, and security classes.
        
        initialize your application like this::
            
            app = Flask(__name__)
            app.config.from_object('config')
            db = SQLAlchemy(app)
            baseapp = BaseApp(app, db)
        
    """
    lst_baseview = []
    app = None
    db = None
    # Security Manager
    sm = None
    babelmanager = None
    
    app_name = ""
    app_theme = ''
    app_icon = None
    
    menu = None
    indexview = None
    
    static_folder = None
    static_url_path = None
    
    template_filters = None
    
    languages = None
    admin = None
    _gettext = _gettext

    def __init__(self, app, db, 
                    menu = None, 
                    indexview = None, 
                    static_folder='static/appbuilder', 
                    static_url_path='/appbuilder'):
        """
            BaseApp constructor
            :param app:
                The flask app object
            :param db:
                The SQLAlchemy db object
            :param menu:
                optional, a previous contructed menu
            :param indexview:<commit_msg>Update baseapp.py<commit_after>from .babel.views import LocaleView
from .security.manager import SecurityManager
    
from .views import IndexView
from filters import TemplateFilters
from flask import Blueprint
from flask.ext.babel import gettext as _gettext, lazy_gettext
from flask.ext.appbuilder.babel.manager import BabelManager
from menu import Menu


class BaseApp():
    """
        This is the base class for the all framework.
        Will hold your flask app object, all your views, and security classes.
        
        initialize your application like this::
            
            app = Flask(__name__)
            app.config.from_object('config')
            db = SQLAlchemy(app)
            baseapp = BaseApp(app, db)
        
    """
    lst_baseview = []
    app = None
    db = None
    # Security Manager
    sm = None
    babelmanager = None
    
    app_name = ""
    app_theme = ''
    app_icon = None
    
    menu = None
    indexview = None
    
    static_folder = None
    static_url_path = None
    
    template_filters = None
    
    languages = None
    admin = None
    _gettext = _gettext

    def __init__(self, app, db, 
                    menu = None, 
                    indexview = None, 
                    static_folder='static/appbuilder', 
                    static_url_path='/appbuilder'):
        """
            BaseApp constructor
            
            :param app:
                The flask app object
            :param db:
                The SQLAlchemy db object
            :param menu:
                optional, a previous contructed menu
            :param indexview:
{'fraction_non_alphanumeric': 0.061979648473635525, 'fraction_numerical': 0.0, 'mean_word_length': 1.6898839137645107, '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': '5187574', 'n_tokens_mistral': 873, 'n_tokens_neox': 826, 'n_words': 270}