<commit_before>#!/usr/bin/env jython

# This is an example plugin that can be used as a
# skeleton for new plugins.
# To test it just rename it as desired, place it in the
# kahuna/plugins folder and run kahuna. You will see the
# new plugin in the help.

class SkeletonPlugin:
    """ An example plugin that prints dummy messages. """
    def __init__(self):
        pass

    def commands(self):
        """ Returns the commands provided by the plugin, mapped to the handler methods. """
        commands = {}
        # Bind the 'print' plugin command to the 'print_handler' method
        commands['print'] = self.print_handler
        return commands

    # The documentation string in command methods will be used to
    # print the help of the command.
    def print_handler(self, args):
        """ Prints a dummy message. """
        print "This is the print_handler in the example plugin"

# Each plugin must provide a load method at module level that will be
# used to instantiate the plugin
def load():
    """ Loads the current plugin. """<commit_msg>Minor documentation change<commit_after>#!/usr/bin/env jython

# This is an example plugin that can be used as a
# skeleton for new plugins.
# To test it just rename it as desired, place it in the
# kahuna/plugins folder and run kahuna. You will see the
# new plugin in the help.

class SkeletonPlugin:
    """ An example plugin that prints dummy messages. """
    def __init__(self):
        pass

    def commands(self):
        """ Returns the commands provided by the plugin, mapped to the handler methods. """
        commands = {}
        # Bind the 'print' plugin command to the 'print_handler' method
        commands['print'] = self.print_handler
        return commands

    # The documentation string in command methods will be used to
    # print the help of the command.
    # The arguments are the options given to the command itself
    def print_handler(self, args):
        """ Prints a dummy message. """
        print "This is the print_handler in the example plugin"

# Each plugin must provide a load method at module level that will be
# used to instantiate the plugin
def load():
    """ Loads the current plugin. """
{'fraction_non_alphanumeric': 0.07489786654561961, 'fraction_numerical': 0.0, 'mean_word_length': 2.964028776978417, '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': '6152526', 'n_tokens_mistral': 575, 'n_tokens_neox': 560, 'n_words': 290}