<commit_before>import os
from .rendermanager import create_render_manager
from . import pman
import panda3d.core as p3d


class BPBase:
    def __init__(self, base, config):
        self.rendermanager = create_render_manager(base, config)


def init(base):
    config = pman.get_config()
    if not pman.is_frozen() and base.appRunner is None and config.getboolean('run', 'auto_build'):
        pman.build(config)

    # Add export directory to model path
    exportdir = pman.get_abs_path(config, config.get('build', 'export_dir'))
    maindir = os.path.dirname(pman.get_abs_path(config, config.get('run', 'main_file')))
    exportdir = os.path.relpath(exportdir, maindir)
    exportdir = p3d.Filename.from_os_specific(exportdir)
    p3d.get_model_path().prepend_directory(exportdir)<commit_msg>Update BlenderPanda<commit_after>import os
from .rendermanager import create_render_manager
from . import pman
import panda3d.core as p3d


class BPBase:
    def __init__(self, base, config):
        self.rendermanager = create_render_manager(base, config)


def init(base):
    config = pman.get_config()
    if not pman.is_frozen() and base.appRunner is None and config.getboolean('run', 'auto_build'):
        pman.build(config)

    # Add export directory to model path
    exportdir = pman.get_abs_path(config, config.get('build', 'export_dir'))
    maindir = os.path.dirname(pman.get_abs_path(config, config.get('run', 'main_file')))
    if pman.is_frozen():
        exportdir = os.path.relpath(exportdir, maindir)
    exportdir = p3d.Filename.from_os_specific(exportdir)
    p3d.get_model_path().prepend_directory(exportdir)
{'fraction_non_alphanumeric': 0.11063306699446834, 'fraction_numerical': 0.004917025199754148, 'mean_word_length': 4.481481481481482, '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': '6785738', 'n_tokens_mistral': 553, 'n_tokens_neox': 536, 'n_words': 116}