<commit_before>import ctypes
import sys
from math import trunc

import sdl2
import sdl2.ext

STEP = 0.001
A_COEFF = 100
WIDTH = 500
HEIGHT = 500
INTERVAL = (-5, 5)


def draw(window, renderer, center):
    center_x, center_y = center
    sdl2.SDL_SetRenderDrawColor(renderer, 255, 255, 255, 255)
    sdl2.SDL_RenderClear(renderer)
    sdl2.SDL_SetRenderDrawColor(renderer, 0, 0, 0, 0)
    start, end = INTERVAL
    t = start
    while t < end:
        x = A_COEFF * t ** 2 / (1 + t ** 2) + center_x
        y = A_COEFF * t ** 3 / (1 + t ** 2) + center_y
        draw_point(renderer, (trunc(x), trunc(y)))
        t += STEP
    sdl2.SDL_SetRenderDrawColor(renderer, 192, 57, 43, 1)
    sdl2.SDL_RenderDrawLine(renderer, center_x, 0, center_x, window_size(window)[1])
    sdl2.SDL_RenderPresent(renderer)


def draw_point(renderer, point):
    x, y = point
    sdl2.SDL_RenderDrawPoint(renderer, x, y)

def window_size(window):
    width = ctypes.c_long()
    height = ctypes.c_long()<commit_msg>Fix type error<commit_after>import ctypes
import sys
from math import trunc

import sdl2
import sdl2.ext

STEP = 0.001
A_COEFF = 100
WIDTH = 500
HEIGHT = 500
INTERVAL = (-5, 5)


def draw(window, renderer, center):
    center_x, center_y = center
    sdl2.SDL_SetRenderDrawColor(renderer, 255, 255, 255, 255)
    sdl2.SDL_RenderClear(renderer)
    sdl2.SDL_SetRenderDrawColor(renderer, 0, 0, 0, 0)
    start, end = INTERVAL
    t = start
    while t < end:
        x = A_COEFF * t ** 2 / (1 + t ** 2) + center_x
        y = A_COEFF * t ** 3 / (1 + t ** 2) + center_y
        draw_point(renderer, (trunc(x), trunc(y)))
        t += STEP
    sdl2.SDL_SetRenderDrawColor(renderer, 192, 57, 43, 1)
    sdl2.SDL_RenderDrawLine(renderer, center_x, 0, center_x, window_size(window)[1])
    sdl2.SDL_RenderPresent(renderer)


def draw_point(renderer, point):
    x, y = point
    sdl2.SDL_RenderDrawPoint(renderer, x, y)

def window_size(window):
    width = ctypes.c_int()
    height = ctypes.c_int()
{'fraction_non_alphanumeric': 0.12078510317060896, 'fraction_numerical': 0.05636638147961751, 'mean_word_length': 3.275268817204301, 'pattern_counts': {'":': 0, '<': 5, '<?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': '3530724', 'n_tokens_mistral': 855, 'n_tokens_neox': 758, 'n_words': 193}