<commit_before>from intermezzo import Intermezzo as mzo


TABSTOP_LEN = 8
PREFERRED_HORIZONTAL_THRESHOLD = 5
EDITBOX_WIDTH = 30

def tbPrint(x, y, fg, bg, msg):
    for c in msg:
        mzo.set_cell(x, y, c, fg, bg)
        x += len(c)

def fill(x, y, w, h, cell):
    for ly in range(0, h-1):
        for lx in range(0, w-1):
            mzo.set_cell(x+lx, y+ly, cell["Ch"], cell["Fg"], cell["Bg"])

def rune_advance_len(r, pos):
    if r == '\t':
        return TABSTOP_LEN - (pos % TABSTOP_LEN)
    return len(r)
<commit_msg>fixed editbox where text box did not have top and bottom margins<commit_after>from intermezzo import Intermezzo as mzo


TABSTOP_LEN = 8
PREFERRED_HORIZONTAL_THRESHOLD = 5
EDITBOX_WIDTH = 30

def tbPrint(x, y, fg, bg, msg):
    for c in msg:
        mzo.set_cell(x, y, c, fg, bg)
        x += len(c)

def fill(x, y, w, h, cell):
    for ly in range(0, h):
        for lx in range(0, w):
            mzo.set_cell(x+lx, y+ly, cell["Ch"], cell["Fg"], cell["Bg"])

def rune_advance_len(r, pos):
    if r == '\t':
        return TABSTOP_LEN - (pos % TABSTOP_LEN)
    return len(r)

{'fraction_non_alphanumeric': 0.1411764705882353, 'fraction_numerical': 0.012669683257918552, 'mean_word_length': 2.8137931034482757, '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': '7440264', 'n_tokens_mistral': 478, 'n_tokens_neox': 454, 'n_words': 135}