<commit_before>class Sprite {
    constructor(texture, screenWidth, screenHeight) {
        this.screenWidth  = screenWidth
        this.screenHeight = screenHeight
        // TODO: path
        local texture = texture
        this.eSprite = ebiten.Sprite(texture)
        // Texture is not created then!
        this.eSprite.srcWidth  = 32
        this.eSprite.srcHeight = 32
        // TODO: ebiten.Rand
        this.eSprite.x = 0
        this.eSprite.y = 0
    }
    function update() {
        this.eSprite.x += 1
        this.eSprite.y += 1
    }
    function draw(offscreen) {
        offscreen.drawSprite(this.eSprite)
    }
    eSprite = null
    screenWidth = 0
    screenHeight = 0
    vx = 1
    vy = 1
}

class Sprites {
    function update() {
        if (this.screenWidth == 0 || this.screenHeight == 0) {
            return
        }
        if (sprites == null) {
            local texture = ebiten.Texture("/Users/hajime/ebiten/test.png")
            this.sprites = []
            for (local i = 0; i < 1000; i++) {
                this.sprites.push(Sprite(texture, this.screenWidth, this.screenHeight))
            }
        }<commit_msg>Modified sprites.nut<commit_after>class Sprite {
    constructor(texture, screenWidth, screenHeight) {
        this.screenWidth  = screenWidth
        this.screenHeight = screenHeight
        // TODO: path
        this.eSprite = ebiten.Sprite(texture)
        // Texture is not created then!
        this.eSprite.srcWidth  = 32
        this.eSprite.srcHeight = 32
        // TODO: ebiten.Rand
        this.eSprite.x = 0
        this.eSprite.y = 0
    }
    function update() {
        throw "h"
        this.eSprite.x += this.vx
        this.eSprite.y += this.vy
        local regionWidth  = this.screenWidth  - this.eSprite.srcWidth
        local regionHeight = this.screenHeight - this.eSprite.srcHeight
        if (this.eSprite.x < 0) {
            this.eSprite.x = - this.eSprite.x
            this.vx        = -this.vx
        }
        if (regionWidth <= this.eSprite.x) {
            this.eSprite.x = -this.eSprite.x + 2 * regionWidth
            this.vx        = -this.vx
        }
        if (this.eSprite.y < 0) {
            this.eSprite.y = - this.eSprite.y
            this.vy        = -this.vy
        }
        if (regionHeight <= this.eSprite.y) {
            this.eSprite.y = -this.eSprite.y + 2 * regionHeight
            this.vy        = -this.vy
        }
    }
    function draw(offscreen) {
        offscreen.drawSprite(this.eSprite)
    }
    eSprite = null
    screenWidth = 0
    screenHeight = 0
    vx = 1
    vy = 1
}

class Sprites {
    function update() {
        if (this.screenWidth == 0 || this.screenHeight == 0) {
            return
        }
        if (sprites == null) {
            local texture = ebiten.Texture("/Users/hajime/ebiten/test.png")
            this.sprites = []
            for (local i = 0; i < 10; i++) {
                this.sprites.push(Sprite(texture, this.screenWidth, this.screenHeight))
            }
        }
{'fraction_non_alphanumeric': 0.11162483487450463, 'fraction_numerical': 0.012549537648612946, 'mean_word_length': 1.5604395604395604, 'pattern_counts': {'":': 0, '<': 9, '<?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': '615331', 'n_tokens_mistral': 975, 'n_tokens_neox': 961, 'n_words': 194}