<commit_before>package testing;

import api.IEntity;
import com.google.common.base.Charsets;
import com.google.common.io.Files;
import events.Action;
import events.InputSystem;
import javafx.application.Application;
import javafx.scene.Scene;
import javafx.scene.input.KeyCode;
import javafx.scene.layout.BorderPane;
import javafx.stage.Stage;
import model.component.movement.Position;
import model.entity.Entity;
import model.entity.EntitySystem;

import java.io.File;
import java.io.IOException;

/**
 * Created by rhondusmithwick on 4/10/16.
 *
 * @author <NAME>
 */
public class InputSystemTesting extends Application {

    private final EntitySystem universe = new EntitySystem();
    private final InputSystem inputSystem = new InputSystem();

    private final String MOVE_SCRIPT = "resources/groovyScripts/SignalScript.groovy";

    private Scene mYInit() {
        BorderPane splash = new BorderPane();
        Scene scene = new Scene(splash, 500, 500);
        scene.setOnKeyPressed(e -> inputSystem.take(e.getCode(), universe));
        return scene;
    }

    private void setUp() {
        IEntity entity = new Entity("Ben");
        Position position = new Position();
        entity.forceAddComponent(position, true);
        universe.addEntity(entity);
        inputSystem.addEvent(KeyCode.E, getAction());
    }

    private Action getAction() {
        String script = null;
        try {
            script = Files.toString(new File(MOVE_SCRIPT), Charsets.UTF_8);
        } catch (IOException e) {
            e.printStackTrace();
        }
        return new Action(script);
    }

    @Override
    public void start(Stage primaryStage)  {
        primaryStage.setScene(mYInit());
        primaryStage.show();
        setUp();e
    }

}<commit_msg>extra e removal.<commit_after>package testing;

import api.IEntity;
import com.google.common.base.Charsets;
import com.google.common.io.Files;
import events.Action;
import events.InputSystem;
import javafx.application.Application;
import javafx.scene.Scene;
import javafx.scene.input.KeyCode;
import javafx.scene.layout.BorderPane;
import javafx.stage.Stage;
import model.component.movement.Position;
import model.entity.Entity;
import model.entity.EntitySystem;

import java.io.File;
import java.io.IOException;

/**
 * Created by rhondusmithwick on 4/10/16.
 *
 * @author <NAME>
 */
public class InputSystemTesting extends Application {

    private final EntitySystem universe = new EntitySystem();
    private final InputSystem inputSystem = new InputSystem();

    private final String MOVE_SCRIPT = "resources/groovyScripts/SignalScript.groovy";

    private Scene mYInit() {
        BorderPane splash = new BorderPane();
        Scene scene = new Scene(splash, 500, 500);
        scene.setOnKeyPressed(e -> inputSystem.take(e.getCode(), universe));
        return scene;
    }

    private void setUp() {
        IEntity entity = new Entity("Ben");
        Position position = new Position();
        entity.forceAddComponent(position, true);
        universe.addEntity(entity);
        inputSystem.addEvent(KeyCode.E, getAction());
    }

    private Action getAction() {
        String script = null;
        try {
            script = Files.toString(new File(MOVE_SCRIPT), Charsets.UTF_8);
        } catch (IOException e) {
            e.printStackTrace();
        }
        return new Action(script);
    }

    @Override
    public void start(Stage primaryStage)  {
        primaryStage.setScene(mYInit());
        primaryStage.show();
        setUp();
    }

}
{'fraction_non_alphanumeric': 0.10694130925507901, 'fraction_numerical': 0.006772009029345372, 'mean_word_length': 3.1317016317016315, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 7, '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': '6797478', 'n_tokens_mistral': 1040, 'n_tokens_neox': 992, 'n_words': 244}