<commit_before>from django.apps import AppConfig
from django.db.models import signals
from waldur_mastermind.marketplace_slurm import COMPONENTS


class MarketplaceSlurmConfig(AppConfig):
    name = 'waldur_mastermind.marketplace_slurm'
    verbose_name = 'Marketplace slurm'

    def ready(self):
        from waldur_mastermind.marketplace.plugins import manager
        from waldur_mastermind.marketplace import models as marketplace_models
        from waldur_mastermind.marketplace_slurm import PLUGIN_NAME
        from waldur_core.structure import models as structure_models

        from . import handlers, processor

        signals.post_save.connect(
            handlers.create_slurm_package,
            sender=marketplace_models.PlanComponent,
            dispatch_uid='waldur_mastermind.marketpace_slurm.create_slurm_package',
        )

        manager.register(PLUGIN_NAME, processor.process_slurm,
                         scope_model=structure_models.ServiceSettings,
                         components=COMPONENTS)
<commit_msg>Capitalize SLURM label<commit_after>from django.apps import AppConfig
from django.db.models import signals
from waldur_mastermind.marketplace_slurm import COMPONENTS


class MarketplaceSlurmConfig(AppConfig):
    name = 'waldur_mastermind.marketplace_slurm'
    verbose_name = 'Marketplace SLURM'

    def ready(self):
        from waldur_mastermind.marketplace.plugins import manager
        from waldur_mastermind.marketplace import models as marketplace_models
        from waldur_mastermind.marketplace_slurm import PLUGIN_NAME
        from waldur_core.structure import models as structure_models

        from . import handlers, processor

        signals.post_save.connect(
            handlers.create_slurm_package,
            sender=marketplace_models.PlanComponent,
            dispatch_uid='waldur_mastermind.marketpace_slurm.create_slurm_package',
        )

        manager.register(PLUGIN_NAME, processor.process_slurm,
                         scope_model=structure_models.ServiceSettings,
                         components=COMPONENTS)

{'fraction_non_alphanumeric': 0.04959465903671912, 'fraction_numerical': 0.0, 'mean_word_length': 3.255578093306288, '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': '6073655', 'n_tokens_mistral': 578, 'n_tokens_neox': 570, 'n_words': 108}