<commit_before>package acceptableLosses.screens;

import acceptableLosses.AcceptableLossesGame;
import acceptableLosses.map.Region;
import acceptableLosses.systems.ElevationSystem;
import acceptableLosses.systems.MapRenderSystem;
import com.badlogic.gdx.Gdx;
import com.badlogic.gdx.Screen;
import com.badlogic.gdx.graphics.GL20;
import com.badlogic.gdx.graphics.OrthographicCamera;
import com.badlogic.gdx.graphics.g2d.SpriteBatch;
import com.badlogic.gdx.graphics.glutils.ShapeRenderer;


public class GameScreen implements Screen {

    private AcceptableLossesGame game;
    private Region region;

    private OrthographicCamera camera;
    private OrthographicCamera hudCam;
    public int zLevel;

    private SpriteBatch spriteBatch;
    private ShapeRenderer shapeRenderer;


//    public InputManager inputManager;

    private ElevationSystem elevationSystem;
    private MapRenderSystem mapRenderSystem;

    public GameScreen(AcceptableLossesGame game) {

        this.game = game;

        spriteBatch = new SpriteBatch();
        shapeRenderer = new ShapeRenderer();

        camera = new OrthographicCamera();
        camera.position.set(250, 250, 250);
        camera.zoom = 0.5f;

        hudCam = new OrthographicCamera();

        zLevel = 50;

        region = new Region(500, 500, 500);

        elevationSystem = new ElevationSystem(this, region);
        mapRenderSystem = new MapRenderSystem(this, spriteBatch, region);


//        inputManager = new InputManager(camera);

//        LocationBuilder builder = new LocationBuilder();
//        location = builder.generateLocation(universe);

    }


    @Override
    public void render(float delta) {

        Gdx.gl.glClearColor(0.05f, 0.05f, 0.05f, 1);
        Gdx.gl.glClear(GL20.GL_COLOR_BUFFER_BIT);

        // controls

        elevationSystem.process();

        camera.update();

        spriteBatch.setProjectionMatrix(camera.combined);

        //Draw
        spriteBatch.begin();

        mapRenderSystem.process();

        // render characters

        // menu.render(spriteBatch);


        spriteBatch.end();
    }

    private float timeSinceMove = 0f;
    private static final float moveTime = 0.1f;

//    private void control(float deltaT) {
//        if (timeSinceMove < moveTime) {
//            timeSinceMove += deltaT;
//            return;
//        }
//
//        timeSinceMove = 0;
//
//        Vector3 cam = game.controller.getCameraMovement();
//        focus.x += cam.x;
//        focus.y += cam.y;
//        camera.zoom += cam.z;
//
//        focus.z += game.controller.checkLevelChange();
//
//        game.controller.clear();
//
////        menu = menu.control(keysPressed);
//    }

    @Override
    public void resize(int width, int height) {
        camera.setToOrtho(false, width, height);
        hudCam.setToOrtho(false, width, height);
    }

    @Override
    public void show() {


    }

    @Override<commit_msg>cleaning<commit_after>package acceptableLosses.screens;

import acceptableLosses.AcceptableLossesGame;
import acceptableLosses.map.Region;
import acceptableLosses.systems.ElevationSystem;
import acceptableLosses.systems.MapRenderSystem;
import com.badlogic.gdx.Gdx;
import com.badlogic.gdx.Screen;
import com.badlogic.gdx.graphics.GL20;
import com.badlogic.gdx.graphics.OrthographicCamera;
import com.badlogic.gdx.graphics.g2d.SpriteBatch;
import com.badlogic.gdx.graphics.glutils.ShapeRenderer;


public class GameScreen implements Screen {

    private AcceptableLossesGame game;
    private Region region;

    private OrthographicCamera camera;
    private OrthographicCamera hudCam;
    public int zLevel;

    private SpriteBatch spriteBatch;
    private ShapeRenderer shapeRenderer;

//    public InputManager inputManager;
    private ElevationSystem elevationSystem;
    private MapRenderSystem mapRenderSystem;

    public GameScreen(AcceptableLossesGame game) {

        this.game = game;

        spriteBatch = new SpriteBatch();
        shapeRenderer = new ShapeRenderer();

        camera = new OrthographicCamera();
        camera.position.set(250, 250, 250);
        camera.zoom = 0.5f;

        hudCam = new OrthographicCamera();

        zLevel = 50;

        region = new Region(500, 500, 500);

        elevationSystem = new ElevationSystem(this, region);
        mapRenderSystem = new MapRenderSystem(this, spriteBatch, region);


//        inputManager = new InputManager(camera);

//        LocationBuilder builder = new LocationBuilder();
//        location = builder.generateLocation(universe);

    }


    @Override
    public void render(float delta) {

        Gdx.gl.glClearColor(0.05f, 0.05f, 0.05f, 1);
        Gdx.gl.glClear(GL20.GL_COLOR_BUFFER_BIT);

        // controls

        elevationSystem.process();

        camera.update();

        spriteBatch.setProjectionMatrix(camera.combined);

        //Draw
        spriteBatch.begin();

        mapRenderSystem.process();

        // render characters

        // menu.render(spriteBatch);


        spriteBatch.end();
    }

    @Override
    public void resize(int width, int height) {
        camera.setToOrtho(false, width, height);
        hudCam.setToOrtho(false, width, height);
    }

    @Override
    public void show() {


    }

    @Override
{'fraction_non_alphanumeric': 0.09996206373292868, 'fraction_numerical': 0.014984825493171473, 'mean_word_length': 2.7344192634560907, 'pattern_counts': {'":': 0, '<': 4, '<?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': '2134377', 'n_tokens_mistral': 1655, 'n_tokens_neox': 1482, 'n_words': 321}