<commit_before>import time
from enthought.util.numerix import *

import sys
from enthought.kiva import agg

ArialFont = agg.FontType('arial')

def draw_text(gc, text, bbox, text_color, bbox_color):
    gc.set_stroke_color(bbox_color)
    gc.rect(bbox[0],bbox[1],bbox[2],bbox[3])
    gc.stroke_path()
    gc.set_fill_color(text_color)
    gc.show_text(text)
<commit_msg>Fixed, however this test does not use unittest and does not run with nosetests.<commit_after>import time
from math import pi

from enthought.kiva import agg, Font

ArialFont = Font('arial')

def draw_text(gc, text, bbox, text_color, bbox_color):
    gc.set_stroke_color(bbox_color)
    gc.rect(bbox[0],bbox[1],bbox[2],bbox[3])
    gc.stroke_path()
    gc.set_fill_color(text_color)
    gc.show_text(text)

{'fraction_non_alphanumeric': 0.11757105943152454, 'fraction_numerical': 0.0103359173126615, 'mean_word_length': 5.102362204724409, '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': '6873970', 'n_tokens_mistral': 314, 'n_tokens_neox': 298, 'n_words': 61}