<commit_before>package com.kehxstudios.atlas.screens;

import com.badlogic.gdx.Gdx;
import com.badlogic.gdx.Screen;
import com.kehxstudios.atlas.data.ComponentData;
import com.kehxstudios.atlas.components.GraphicsComponent;
import com.kehxstudios.atlas.tools.Factory;
import com.kehxstudios.atlas.tools.Templates;
import com.kehxstudios.atlas.type.TextureType;
import com.kehxstudios.atlas.entities.Entity;
import com.kehxstudios.atlas.data.EntityData;
import com.kehxstudios.atlas.managers.GameManager;
import com.kehxstudios.atlas.data.HighScores;
import com.kehxstudios.atlas.type.ScreenType;

/**
 * Created by ReidC on 2017-04-07.
 */

public abstract class AScreen implements Screen {

    protected GameManager gm;
    protected ScreenType type;
    protected float width, height;

    protected Entity screenEntity;
    protected GraphicsComponent screenGraphics;

    protected float screenTime;
    protected HighScores highScores;
    protected int score;

    public AScreen(com.kehxstudios.atlas.type.ScreenType type) {
        this.type = type;
        gm = GameManager.getInstance();
        width = type.getWidth();
        height = type.getHeight();
        highScores = new HighScores(type);
        screenTime = 0;
        score = 0;

        screenEntity = Factory.createEntity(Templates.createEntityData(width/2, height/2));

        screenGraphics = (GraphicsComponent)Factory.createComponent(screenEntity, 
                  Templates.createGraphicsComponentData(0, 0, 1, TextureType.VOID));

        gm.getCamera().setToOrtho(false, width, height);
        gm.getCamera().update();
    }

    @Override
    public void render(float delta) {
        screenTime += delta;
    }

    @Override
    public void dispose() {
        highScores.dispose();
    }

    public float getGraphicsWidth() {
        return Gdx.graphics.getWidth();
    }
<commit_msg>Update AScreen.java<commit_after>package com.kehxstudios.atlas.screens;

import com.badlogic.gdx.Gdx;
import com.badlogic.gdx.Screen;
import com.kehxstudios.atlas.data.ComponentData;
import com.kehxstudios.atlas.components.GraphicsComponent;
import com.kehxstudios.atlas.tools.Factory;
import com.kehxstudios.atlas.tools.Templates;
import com.kehxstudios.atlas.type.TextureType;
import com.kehxstudios.atlas.entities.Entity;
import com.kehxstudios.atlas.data.EntityData;
import com.kehxstudios.atlas.managers.GameManager;
import com.kehxstudios.atlas.data.HighScores;
import com.kehxstudios.atlas.type.ScreenType;

/**
 * Created by ReidC on 2017-04-07.
 */

public abstract class AScreen implements Screen {

    protected GameManager gm;
    protected ScreenType type;
    protected float width, height;

    protected Entity screenEntity;
    protected GraphicsComponent screenGraphics;
    protected CameraComponent screenCamera;

    protected float screenTime;
    protected HighScores highScores;
    protected int score;

    public AScreen(com.kehxstudios.atlas.type.ScreenType type) {
        this.type = type;
        gm = GameManager.getInstance();
        width = type.getWidth();
        height = type.getHeight();
        highScores = new HighScores(type);
        screenTime = 0;
        score = 0;

        screenEntity = Factory.createEntity(Templates.createEntityData(width/2, height/2));

        screenGraphics = (GraphicsComponent)Factory.createComponent(screenEntity, 
                  Templates.createGraphicsComponentData(0, 0, 1, TextureType.VOID));
        
        screenCamera = (CameraComponent)Factory.createComponent(screenEntity,
                  Templates.createCameraComponentData(false, width, height);
    }

    @Override
    public void render(float delta) {
        screenTime += delta;
    }

    @Override
    public void dispose() {
        highScores.dispose();
    }

    public float getGraphicsWidth() {
        return Gdx.graphics.getWidth();
    }

{'fraction_non_alphanumeric': 0.09548387096774194, 'fraction_numerical': 0.007741935483870968, 'mean_word_length': 3.4045454545454548, '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': '3308772', 'n_tokens_mistral': 1230, 'n_tokens_neox': 1161, 'n_words': 225}