<commit_before>import types.Vector2;
import types.Data;
import vectorx.font.AttributedRange;
import vectorx.font.AttributedString.StringAttributes;
import types.Color4F;
import vectorx.font.Font;
import vectorx.font.FontCache;
import vectorx.font.StyledStringContext;
import vectorx.font.FontContext;
import vectorx.svg.SvgContext;
import lib.ha.svg.SVGData;
import vectorx.ColorStorage;
import types.DataTest;

interface StyledStringResourceProvider
{
    public function loadFont(file: String): Data;
    public function loadImage(file: String, origDimensions: Vector2, dimensions: Vector2): ColorStorage;
}

class MainCs
{
    public static function main(): Void
    {
        DataTest.testAll();
        var colorStorage: ColorStorage = new ColorStorage(512, 512);<commit_msg>resource provider as a class instead of an interface<commit_after>import types.Vector2;
import types.Data;
import vectorx.font.AttributedRange;
import vectorx.font.AttributedString.StringAttributes;
import types.Color4F;
import vectorx.font.Font;
import vectorx.font.FontCache;
import vectorx.font.StyledStringContext;
import vectorx.font.FontContext;
import vectorx.svg.SvgContext;
import lib.ha.svg.SVGData;
import vectorx.ColorStorage;
import types.DataTest;

class StyledStringResourceProvider
{
    public function loadFont(file: String): Data
    {
        throw "not implemented";
    }

    public function loadImage(file: String, origDimensions: Vector2, dimensions: Vector2): ColorStorage
    {
        throw "not implemented";
    }
}

class MainCs
{
    public static function main(): Void
    {
        DataTest.testAll();
        var colorStorage: ColorStorage = new ColorStorage(512, 512);
{'fraction_non_alphanumeric': 0.08788598574821853, 'fraction_numerical': 0.011876484560570071, 'mean_word_length': 4.850694444444445, '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': '2100419', 'n_tokens_mistral': 508, 'n_tokens_neox': 484, 'n_words': 125}