<commit_before>
import wx
import os
from wx import ToolBar as Tbar
from wx.lib.platebtn import PlateButton
from sans.guiframe.gui_style import GUIFRAME_ID
from sans.guiframe.gui_style import GUIFRAME_ICON
from wx.lib.platebtn import PB_STYLE_SQUARE, PB_STYLE_DROPARROW
#Control panel width 
import sys
if sys.platform.count("darwin")==0:
    FONT_VARIANT = 0
    NAME_BOX = wx.DefaultSize
    TB_H = 20
    IS_MAC = False
else:
    FONT_VARIANT = 1
    NAME_BOX = (200, 25)
    TB_H = 25
    IS_MAC = True

def clear_image(image):
    w, h = image.GetSize()
    factor = 155
    compress = lambda x: int(x * factor/255.) + factor
    for y in range(h):
        for x in range(w):
            grey = compress(image.GetGreen(x, y))
            image.SetRGB(x, y, grey, grey, grey)
    if image.HasAlpha():
        image.ConvertAlphaToMask()
    return image

class GUIToolBar(Tbar):
    """
    Implement toolbar for guiframe
    """
    def __init__(self, parent,  *args, **kwds):
        Tbar.__init__(self, parent,  *args, **kwds)
        #Set window's font size 
        self.SetWindowVariant(variant=FONT_VARIANT)<commit_msg>better size of tool bar<commit_after>
import wx
import os
from wx import ToolBar as Tbar
from wx.lib.platebtn import PlateButton
from sans.guiframe.gui_style import GUIFRAME_ID
from sans.guiframe.gui_style import GUIFRAME_ICON
from wx.lib.platebtn import PB_STYLE_SQUARE, PB_STYLE_DROPARROW
#Control panel width 
import sys
if sys.platform.count("darwin")==0:
    FONT_VARIANT = 0
    NAME_BOX = wx.DefaultSize
    TB_H = 21
    IS_MAC = False
else:
    FONT_VARIANT = 1
    NAME_BOX = (200, 25)
    TB_H = 25
    IS_MAC = True

def clear_image(image):
    w, h = image.GetSize()
    factor = 155
    compress = lambda x: int(x * factor/255.) + factor
    for y in range(h):
        for x in range(w):
            grey = compress(image.GetGreen(x, y))
            image.SetRGB(x, y, grey, grey, grey)
    if image.HasAlpha():
        image.ConvertAlphaToMask()
    return image

class GUIToolBar(Tbar):
    """
    Implement toolbar for guiframe
    """
    def __init__(self, parent,  *args, **kwds):
        Tbar.__init__(self, parent,  *args, **kwds)
        #Set window's font size 
        self.SetWindowVariant(variant=FONT_VARIANT)
{'fraction_non_alphanumeric': 0.09885260370697264, 'fraction_numerical': 0.01588702559576346, 'mean_word_length': 2.956369982547993, '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': '4590150', 'n_tokens_mistral': 856, 'n_tokens_neox': 779, 'n_words': 217}