<commit_before>from osmviz.manager import PILImageManager, OSMManager
import PIL.Image as Image


def test_pil():
    imgr = PILImageManager("RGB")
    osm = OSMManager(image_manager=imgr)
    image, bnds = osm.createOSMImage((30, 35, -117, -112), 9)
    wh_ratio = float(image.size[0]) / image.size[1]
    image2 = image.resize((int(800 * wh_ratio), 800), Image.ANTIALIAS)
    del image
    image2.show()
<commit_msg>Reduce number of tiles downloaded<commit_after>from osmviz.manager import PILImageManager, OSMManager
import PIL.Image as Image


def test_pil():
    image_manager = PILImageManager("RGB")
    osm = OSMManager(image_manager=image_manager)
    image, bounds = osm.createOSMImage((30, 31, -117, -116), 9)
    wh_ratio = float(image.size[0]) / image.size[1]
    image2 = image.resize((int(800 * wh_ratio), 800), Image.ANTIALIAS)
    del image
    image2.show()

{'fraction_non_alphanumeric': 0.1278538812785388, 'fraction_numerical': 0.04794520547945205, 'mean_word_length': 4.251497005988024, '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': 1, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '7198155', 'n_tokens_mistral': 347, 'n_tokens_neox': 311, 'n_words': 70}