<commit_before><commit_msg>bb/pt - Added Nop plugin, fixed 'worker' behavior, and fixed thumbnails.<commit_after>from . import PluginController, PluginView, PluginWrapper


class NopView(PluginView):
    def view(self, data):
        return ''


class Nop(PluginController):
    """Nothing Plugin

    This plugin does nothing execept allows for the thumbnail to be generated.
    """

    @PluginWrapper(html=NopView)
    def analyze(self, scratch):
        return self.view_data()
{'fraction_non_alphanumeric': 0.0954356846473029, 'fraction_numerical': 0.0, 'mean_word_length': 3.9285714285714284, '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': '202221', 'n_tokens_mistral': 143, 'n_tokens_neox': 133, 'n_words': 42}