<commit_before>--- Sprites
-- @module Sprites

local Sprites = {}

function Sprites.extract_monolith(filename, x, y, w, h)
    return {
        type = 'monolith',
        top_monolith_border = 0,
        right_monolith_border = 0,
        bottom_monolith_border = 0,
        left_monolith_border = 0,
        monolith_image = {
            filename = filename,
            priority = 'extra-high-no-scale',
            width = w,
            height = h,
            x = x,
            y = y
        }
    }
end

--- Quick to use empty picture.
-- @treturn table an empty pictures table
function Sprites.empty_picture()
    return {
        filename = '__core__/graphics/empty.png',
        priority = 'extra-high',
        width = 1,
        height = 1
    }
end

function Sprites.empty_sprite()
    return Sprites.empty_picture()
end

--- Quick to use empty pictures.
-- @treturn table an empty pictures table
function Sprites.empty_pictures()
    local empty = Sprites.empty_picture()
    return {
        filename = empty.filename,
        width = empty.width,
        height = empty.height,
        line_length = 1,
        frame_count = 1,
        shift = {0, 0},
        animation_speed = 1,
        direction_count = 1
    }
end

function Sprites.empty_animation()
    return Sprites.empty_pictures()
end

--- Quick to use empty animation.
-- @treturn table an empty animations table
function Sprites.empty_animations()
    return {
        Sprites.empty_pictures()
    }
end
<commit_msg>Sprites simplification<commit_after>--- Sprites
-- @module Sprites

local Sprites = {}

function Sprites.extract_monolith(filename, x, y, w, h)
    return {
        type = 'monolith',
        top_monolith_border = 0,
        right_monolith_border = 0,
        bottom_monolith_border = 0,
        left_monolith_border = 0,
        monolith_image = {
            filename = filename,
            priority = 'extra-high-no-scale',
            width = w,
            height = h,
            x = x,
            y = y
        }
    }
end

--- Quick to use empty picture.
-- @treturn table an empty pictures table
function Sprites.empty_picture()
    return {
        filename = '__core__/graphics/empty.png',
        priority = 'extra-high',
        width = 1,
        height = 1
    }
end
Sprites.empty_sprite = Sprites.empty_picture

--- Quick to use empty pictures.
-- @treturn table an empty pictures table
function Sprites.empty_pictures()
    local empty = Sprites.empty_picture()
    return {
        filename = empty.filename,
        width = empty.width,
        height = empty.height,
        line_length = 1,
        frame_count = 1,
        shift = {0, 0},
        animation_speed = 1,
        direction_count = 1
    }
end
Sprites.empty_animation = Sprites.empty_pictures

--- Quick to use empty animation.
-- @treturn table an empty animations table
function Sprites.empty_animations()
    return {
        Sprites.empty_pictures()
    }
end

{'fraction_non_alphanumeric': 0.09507640067911714, 'fraction_numerical': 0.008149405772495755, 'mean_word_length': 2.0371134020618555, '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': '6864963', 'n_tokens_mistral': 915, 'n_tokens_neox': 867, 'n_words': 237}