<commit_before>from oled.device import ssd1306
from oled.render import canvas
from PIL import Image, ImageFont, ImageDraw, ImageOps
import time
import datetime
import subprocess
import json
import os

device = ssd1306(port=1, address=0x3c)
ttf = '/usr/share/fonts/truetype/freefont/FreeSerifBold.ttf'
font64 = ImageFont.truetype(ttf, 64)
font42 = ImageFont.truetype(ttf, 42)<commit_msg>Updated code due to recent api changes<commit_after>from oled.serial import i2c
from oled.device import ssd1306
from oled.render import canvas
from PIL import Image, ImageFont, ImageDraw, ImageOps
import time
import datetime
import subprocess
import json
import os

serial = i2c(port=1, address=0x3c)
device = ssd1306(serial)
ttf = '/usr/share/fonts/truetype/freefont/FreeSerifBold.ttf'
font64 = ImageFont.truetype(ttf, 64)
font42 = ImageFont.truetype(ttf, 42)
{'fraction_non_alphanumeric': 0.0851063829787234, 'fraction_numerical': 0.04728132387706856, 'mean_word_length': 6.239316239316239, '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': '4085987', 'n_tokens_mistral': 326, 'n_tokens_neox': 296, 'n_words': 83}