<commit_before>-------------------------------------------------------------------------------
-- Defines the shape of characters that can be drawn onto the screen.
-------------------------------------------------------------------------------
-- @classmod yae.Font

FreeTypeFontGenerator = yae.java.require "com.badlogic.gdx.graphics.g2d.freetype.FreeTypeFontGenerator"
GlyphLayout = yae.java.require "com.badlogic.gdx.graphics.g2d.GlyphLayout"
Constants = require "sauce.wrappers"

class
  new: (filename, size=16, filetype) =>
    file = nil

    if filename == nil
      file = yae.File("sauce3/font.ttf", filetype)
    else
      file = yae.File(filename, filetype)

    generator = yae.java.new FreeTypeFontGenerator, file.file<commit_msg>Fix imports<commit_after>-------------------------------------------------------------------------------
-- Defines the shape of characters that can be drawn onto the screen.
-------------------------------------------------------------------------------
-- @classmod yae.Font

FreeTypeFontGenerator = sauce3.java.require "com.badlogic.gdx.graphics.g2d.freetype.FreeTypeFontGenerator"
GlyphLayout = sauce3.java.require "com.badlogic.gdx.graphics.g2d.GlyphLayout"
Constants = require "sauce3.wrappers"

class
  new: (filename, size=16, filetype) =>
    file = nil

    if filename == nil
      file = yae.File("sauce3/font.ttf", filetype)
    else
      file = yae.File(filename, filetype)

    generator = yae.java.new FreeTypeFontGenerator, file.file
{'fraction_non_alphanumeric': 0.29792919171676685, 'fraction_numerical': 0.008684034736138945, 'mean_word_length': 1.6942446043165467, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 5, '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': '1523127', 'n_tokens_mistral': 415, 'n_tokens_neox': 404, 'n_words': 90}