<commit_before>import numpy as np
import cv2

from midi import PatternPlayer

MAIN_WINDOW = 'hello'
CELL_SIZE = 32
GRID_SIZE = 16 * CELL_SIZE

def is_note_color(color):
    b, g, r = color
    return ((r < 100 and g < 200 and b > 150) # blue brick
         or (r > 150 and g < 100 and b < 100) # red brick
         or (r > 200 and g > 150 and b < 150)) # yellow brick

def is_clear_color(color):
    b, g, r = color
    return r < 100 and g > 0 and b < 150
<commit_msg>Use smaller cells to reduce computation load (a little)<commit_after>import numpy as np
import cv2

from midi import PatternPlayer

MAIN_WINDOW = 'hello'
CELL_SIZE = 16
GRID_SIZE = 16 * CELL_SIZE

def is_note_color(color):
    b, g, r = color
    return ((r < 100 and g < 200 and b > 150) # blue brick
         or (r > 150 and g < 100 and b < 100) # red brick
         or (r > 200 and g > 150 and b < 150)) # yellow brick

def is_clear_color(color):
    b, g, r = color
    return r < 100 and g > 0 and b < 150

{'fraction_non_alphanumeric': 0.09183673469387756, 'fraction_numerical': 0.07959183673469387, 'mean_word_length': 2.646840148698885, 'pattern_counts': {'":': 0, '<': 17, '<?xml version=': 0, '>': 13, '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': '541623', 'n_tokens_mistral': 417, 'n_tokens_neox': 339, 'n_words': 150}