<commit_before>from twisted.internet import reactor
import config

def execute(parser, bot, user, args):
    if not parser.checkPerms(bot, user, "broadcaster") and not parser.checkPerms(bot, user, "owner"):
        return
    if not args:
        argument = ""
    else:
        argument = args.split()[0].strip().lower()
    if(argument == "off" and bot.commandsEnabled):
        bot.setCommandsEnabled(False)
        bot.addressUser(user, "Goldenrod turned off. Use %sgoldenrodctl to re-enable." % (config.cmdChar))
    elif(argument != "off" and not bot.commandsEnabled):
        bot.setCommandsEnabled(True)
        bot.addressUser(user, "Goldenrod Gaming enabled! Use %sgoldenrodctl off to turn it off when you want your chat back." % (config.cmdChar))
    else:
        bot.addressUser(user, "Goldenrod is currently %s." % ("on" if bot.commandsEnabled else "off"))
    
def requiredPerm():
    return "mod"
    
def canUseByWhisper():
    return False
<commit_msg>trialing goldenrod toggleability by mods<commit_after>from twisted.internet import reactor
import config

def execute(parser, bot, user, args):
    if not parser.checkPerms(bot, user, "mod"):
        return
    if not args:
        argument = ""
    else:
        argument = args.split()[0].strip().lower()
    if(argument == "off" and bot.commandsEnabled):
        bot.setCommandsEnabled(False)
        bot.addressUser(user, "Goldenrod turned off. Use %sgoldenrodctl to re-enable." % (config.cmdChar))
    elif(argument != "off" and not bot.commandsEnabled):
        bot.setCommandsEnabled(True)
        bot.addressUser(user, "Goldenrod Gaming enabled! Use %sgoldenrodctl off to turn it off when you want your chat back." % (config.cmdChar))
    else:
        bot.addressUser(user, "Goldenrod is currently %s." % ("on" if bot.commandsEnabled else "off"))
    
def requiredPerm():
    return "mod"
    
def canUseByWhisper():
    return False

{'fraction_non_alphanumeric': 0.11761630946157867, 'fraction_numerical': 0.0010454783063251437, 'mean_word_length': 3.3205417607223477, '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': '3915337', 'n_tokens_mistral': 574, 'n_tokens_neox': 574, 'n_words': 171}