<commit_before># -*- coding: utf-8 -*-
from base import *
bfbackend = cload("bfbackend")
intext = ""


def msg(mp):
    global intext
    if mp.cmd('bf'):
        cmdinput = mp.args()
        cmdoutput = bfbackend.evaluate(cmdinput, intext)
        main.sendcmsg(cmdoutput)
        intext = ""
    if mp.cmd("bfinput"):
        intext = mp.args()
        main.sendcmsg("Input set to: " + intext)

<commit_msg>bf flooding fixed<commit_after># -*- coding: utf-8 -*-
from base import *
bfbackend = cload("bfbackend")
intext = ""


def msg(mp):
    global intext
    if mp.cmd('bf'):
        cmdinput = mp.args()
        cmdoutput = bfbackend.evaluate(cmdinput, intext)
        main.sendcmsg(
            cmdoutput[0:min(len(cmdoutput), 255)]
            .replace("\n", " ").replace("\r", " "))
        intext = ""
    if mp.cmd("bfinput"):
        intext = mp.args()
        main.sendcmsg("Input set to: " + intext)


{'fraction_non_alphanumeric': 0.16411378555798686, 'fraction_numerical': 0.006564551422319475, 'mean_word_length': 2.3394160583941606, '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': '3064454', 'n_tokens_mistral': 317, 'n_tokens_neox': 309, 'n_words': 66}