<commit_before>package de.tu_darmstadt.gdi1.gorillas.entities;

import de.tu_darmstadt.gdi1.gorillas.assets.Assets;
import de.tu_darmstadt.gdi1.gorillas.main.Game;
import eea.engine.component.render.AnimationRenderComponent;
import eea.engine.entity.Entity;
import org.newdawn.slick.Image;
import org.newdawn.slick.geom.Vector2f;

public class Gorilla extends Entity {

    /** How fast should the Animation be */
    private static final float ANIMATION_SPEED = 1.0f;
    /** How long a single frame should be displayed [ms] */
    private static final int   FRAME_LENGTH    = 1000;

    /**
     * Create a new Gorilla
     * @param pos the gorillas center position
     */
    public Gorilla(Vector2f pos) {
        super("Gorilla");

        if (!Game.getInstance().isTestMode()) {
            // Rendering
            Image[] frames = new Image[] {
                    Assets.loadImage(Assets.Images.GORRILA_LEFT),
                    Assets.loadImage(Assets.Images.GORRILA),
                    Assets.loadImage(Assets.Images.GORRILA_RIGHT)
            };
            addComponent(new AnimationRenderComponent(frames, ANIMATION_SPEED / FRAME_LENGTH, frames[0].getWidth(), frames[0].getHeight(), true));
        } else {
            // In Test Mode set the size explicitly since we don't have a renderer
            setSize(new Vector2f(25, 42));
        }

        setPosition(pos);
    }

}<commit_msg>Testmodus eine Breite von 37 Pixeln und eine Höhe von 42 Pixeln<commit_after>package de.tu_darmstadt.gdi1.gorillas.entities;

import de.tu_darmstadt.gdi1.gorillas.assets.Assets;
import de.tu_darmstadt.gdi1.gorillas.main.Game;
import eea.engine.component.render.AnimationRenderComponent;
import eea.engine.entity.Entity;
import org.newdawn.slick.Image;
import org.newdawn.slick.geom.Vector2f;

public class Gorilla extends Entity {

    /** How fast should the Animation be */
    private static final float ANIMATION_SPEED = 1.0f;
    /** How long a single frame should be displayed [ms] */
    private static final int   FRAME_LENGTH    = 1000;

    /**
     * Create a new Gorilla
     * @param pos the gorillas center position
     */
    public Gorilla(Vector2f pos) {
        super("Gorilla");

        if (!Game.getInstance().isTestMode()) {
            // Rendering
            Image[] frames = new Image[] {
                    Assets.loadImage(Assets.Images.GORRILA_LEFT),
                    Assets.loadImage(Assets.Images.GORRILA),
                    Assets.loadImage(Assets.Images.GORRILA_RIGHT)
            };
            addComponent(new AnimationRenderComponent(frames, ANIMATION_SPEED / FRAME_LENGTH, frames[0].getWidth(), frames[0].getHeight(), true));
        } else {
            // In Test Mode set the size explicitly since we don't have a renderer
            setSize(new Vector2f(37, 42));
        }

        setPosition(pos);
    }

}
{'fraction_non_alphanumeric': 0.10181311018131102, 'fraction_numerical': 0.01394700139470014, 'mean_word_length': 2.5507425742574257, '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': '7483832', 'n_tokens_mistral': 916, 'n_tokens_neox': 864, 'n_words': 201}