<commit_before>Javelin.Engine = function(registry, environment, config) {
    //this should persist
    this.registry = registry;
    this.environment = environment;
    this.loader = environment.getLoader();
    this.config = config;
    this.debug = config.debug || false;
    this.targetFps = config.stepsPerSecond || 1000/30;
    this.dispatcher = new Javelin.Dispatcher();
    this.initialized = false;
    
    //everything else can be reset
    this.reset();
};

//constant flags
Javelin.Engine.PRE_UPDATE = 0;
Javelin.Engine.POST_UPDATE = 1;

Javelin.Engine.prototype.reset = function() {
    //general state
    this.running = false;
    this.updating = false;
    this.isRunningSlowly = false;
    this.currentFps = 0.0;
    this.lastUpdateTimeTaken = 0.0;

    //game object
    this.gos = [];
    this.lastGoId = 0;
    this.createdGos = [];
    this.destroyedGos = [];
<commit_msg>implemented and tested core API changes, fixing several things along the way<commit_after>Javelin.Engine = function(registry, environment, config) {
    //this should persist
    this.registry = registry;
    this.environment = environment;
    this.loader = environment.getLoader();
    this.config = config;
    this.debug = config.debug || false;
    this.targetFps = config.stepsPerSecond || 1000/30;
    this.dispatcher = new Javelin.Dispatcher();
    this.initialized = false;
    
    //everything else can be reset
    this.reset();
};

Javelin.Engine.prototype.reset = function() {
    //general state
    this.running = false;
    this.updating = false;
    this.isRunningSlowly = false;
    this.currentFps = 0.0;
    this.lastUpdateTimeTaken = 0.0;

    //game object
    this.gos = [];
    this.lastGoId = 0;
    this.createdGos = [];
    this.destroyedGos = [];

{'fraction_non_alphanumeric': 0.12259887005649718, 'fraction_numerical': 0.013559322033898305, 'mean_word_length': 2.926829268292683, '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': '3061168', 'n_tokens_mistral': 573, 'n_tokens_neox': 546, 'n_words': 123}