<commit_before># -*- encoding: utf-8

"""
The main class that starts and runs Suplemon.
"""


import os
import sys

from . import ui
from . import module_loader
from . import themes
from . import helpers

from .file import File
from .logger import logger
from .config import Config
from .editor import Editor

__version__ = "0.1.61"


class App:
    def __init__(self, filenames=None, config_file=None):
        """
        Handle App initialization

        :param list filenames: Names of files to load initially
        :param str filenames[*]: Path to a file to load
        """
        self.version = __version__
        self.inited = 0
        self.running = 0
        self.debug = 1
        self.block_rendering = False

        # Set default variables
        self.path = os.path.dirname(os.path.realpath(__file__))
        self.files = []
        self.current_file = 0
        self.status_msg = ""
        self.last_input = None
        self.global_buffer = []
        self.event_bindings = {}

        # Maximum amount of inputs to process at once
        self.max_input = 100

        # Save filenames for later<commit_msg>Release 0.1.62<commit_after># -*- encoding: utf-8

"""
The main class that starts and runs Suplemon.
"""


import os
import sys

from . import ui
from . import module_loader
from . import themes
from . import helpers

from .file import File
from .logger import logger
from .config import Config
from .editor import Editor

__version__ = "0.1.62"


class App:
    def __init__(self, filenames=None, config_file=None):
        """
        Handle App initialization

        :param list filenames: Names of files to load initially
        :param str filenames[*]: Path to a file to load
        """
        self.version = __version__
        self.inited = 0
        self.running = 0
        self.debug = 1
        self.block_rendering = False

        # Set default variables
        self.path = os.path.dirname(os.path.realpath(__file__))
        self.files = []
        self.current_file = 0
        self.status_msg = ""
        self.last_input = None
        self.global_buffer = []
        self.event_bindings = {}

        # Maximum amount of inputs to process at once
        self.max_input = 100

        # Save filenames for later
{'fraction_non_alphanumeric': 0.08461877479065667, 'fraction_numerical': 0.0123402379903041, 'mean_word_length': 2.1971830985915495, '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': '5767148', 'n_tokens_mistral': 678, 'n_tokens_neox': 643, 'n_words': 218}