<commit_before>from burrito.cmdsprovider import CmdsProvider
from burrito.utils import reply_to_user
import random


class Greetings(CmdsProvider):
    local_data = {
        'cmds': ['hi', 'watcha', 'hello', 'oh, hai', ],
        'replies': ['hi', 'watcha', 'hello', 'oh, hai', ],
    }

    def __init__(self, *args, **kwargs):
        super(Greetings, self).__init__(*args, **kwargs)
        self.cmds = {cmd: self.cmd_greet for cmd in self.local_data['cmds']}

    def cmd_greet(self, command, data):
        return reply_to_user(data,
                             random.choice(self.local_data['replies']))<commit_msg>hide greeting list commands<commit_after>from burrito.cmdsprovider import CmdsProvider
from burrito.utils import reply_to_user
import random


class Greetings(CmdsProvider):
    local_data = {
        'cmds': ['hi', 'watcha', 'hello', 'oh, hai', ],
        'replies': ['hi', 'watcha', 'hello', 'oh, hai', ],
    }

    def __init__(self, *args, **kwargs):
        super(Greetings, self).__init__(*args, **kwargs)
        self.cmds = {cmd: self.cmd_greet for cmd in self.local_data['cmds']}

    def cmd_greet(self, command, data):
        return reply_to_user(data,
                             random.choice(self.local_data['replies']))

    def list_commands(self):
        # override to hide the commands
        return []
{'fraction_non_alphanumeric': 0.14391691394658754, 'fraction_numerical': 0.0, 'mean_word_length': 3.0755287009063443, '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': '7631395', 'n_tokens_mistral': 443, 'n_tokens_neox': 438, 'n_words': 102}