<commit_before>"""
Plugin definition for the opat OPAL plugin
"""
from opal.utils import OpalPlugin

from opat.urls import urlpatterns

class OpatPlugin(OpalPlugin):
    """
    Main entrypoint to expose this plugin to our OPAL application.
    """
    urls = urlpatterns
    javascripts = {
        'opal.controllers': [
            'js/opat/controllers/opat_referral.js',
            'js/opat/controllers/opat_discharge.js'
        ],
        'opal.opat': [
            # 'js/opat/app.js',
            # 'js/opat/controllers/larry.js',
            # 'js/opat/services/larry.js',
        ]
    }

    def restricted_teams(self, user):
        """
        Return any restricted teams for particualr users that our
        plugin may define.
        """
        return []

    def list_schemas(self):
        """<commit_msg>Plugin base class has moved!<commit_after>"""
Plugin definition for the opat OPAL plugin
"""
from opal.core.plugins import OpalPlugin
from opat.urls import urlpatterns

class OpatPlugin(OpalPlugin):
    """
    Main entrypoint to expose this plugin to our OPAL application.
    """
    urls = urlpatterns
    javascripts = {
        'opal.controllers': [
            'js/opat/controllers/opat_referral.js',
            'js/opat/controllers/opat_discharge.js'
        ],
        'opal.opat': [
            # 'js/opat/app.js',
            # 'js/opat/controllers/larry.js',
            # 'js/opat/services/larry.js',
        ]
    }

    def restricted_teams(self, user):
        """
        Return any restricted teams for particualr users that our
        plugin may define.
        """
        return []

    def list_schemas(self):
        """
{'fraction_non_alphanumeric': 0.11277744451109778, 'fraction_numerical': 0.0, 'mean_word_length': 2.0162748643761303, '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': '7082610', 'n_tokens_mistral': 525, 'n_tokens_neox': 512, 'n_words': 116}