<commit_before>#include "api/app.h"
#include "api/rencache.h"
#include "api/font.h"

#include "font.ttf.h"

struct ImagesApp : App
{
    vec2 mouse = {0,0};

    std::shared_ptr<Font> font;

    ImagesApp()
        : font(font_load(FONT_TTF, 12.0f))
    {
    }

    void on_mouse_moved(const vec2& new_mouse, int xrel, int yrel) override
    {
        mouse = new_mouse;
    }

    void draw(RenCache* cache) override
    {
        cache->draw_rect(Rect::from_size(size), Color::rgb(255, 255, 255, 255));<commit_msg>feat: use scale when loading fonts<commit_after>#include "api/app.h"
#include "api/rencache.h"
#include "api/font.h"

#include "font.ttf.h"

struct ImagesApp : App
{
    vec2 mouse = {0,0};

    std::shared_ptr<Font> font;

    ImagesApp()
        : font(font_load(FONT_TTF, 12.0f * get_scale()))
    {
    }

    void on_mouse_moved(const vec2& new_mouse, int xrel, int yrel) override
    {
        mouse = new_mouse;
    }

    void draw(RenCache* cache) override
    {
        cache->draw_rect(Rect::from_size(size), Color::rgb(255, 255, 255, 255));
{'fraction_non_alphanumeric': 0.14593077642656688, 'fraction_numerical': 0.03554724041159962, 'mean_word_length': 3.053030303030303, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 7, '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': '7454815', 'n_tokens_mistral': 440, 'n_tokens_neox': 400, 'n_words': 83}