<commit_before>package nars.nario;

import java.awt.event.KeyEvent;
import static java.lang.Math.log;
import static java.lang.Math.signum;
import static java.lang.Math.signum;
import java.util.ArrayList;
import java.util.List;
import javax.swing.SwingUtilities;
import nars.core.EventEmitter.EventObserver;
import nars.core.Events;
import nars.core.Memory;
import nars.core.NAR;
import nars.core.Parameters;
import nars.core.build.Default;
import nars.entity.Task;
import nars.gui.NARSwing;
import nars.io.ChangedTextInput;
import nars.language.Term;
import nars.nario.level.Level;
import nars.nario.level.LevelGenerator;
import nars.nario.sprites.Enemy;
import nars.nario.sprites.Mario;
import nars.nario.sprites.Particle;
import nars.nario.sprites.Sparkle;
import nars.nario.sprites.Sprite;
import nars.operator.NullOperator;
import nars.operator.Operation;
import nars.plugin.app.plan.TemporalParticlePlanner;
import nars.plugin.mental.InternalExperience;

/**
 *
 * @author me
 */
public class NARio extends Run {

    static int memoryCyclesPerFrame = 20;
    
    private final NAR nar;
    private LevelScene level;
    private float lastX = -1;
    private float lastY = -1;
    int cycle = 0;
    int gotCoin = 0;
    private Mario mario;    
    static double gameRate;

    boolean offKeys = false;
    
    private ChangedTextInput moveInput;
    private ChangedTextInput velInput;

    public NARio(NAR n) {
        super();
        this.nar = n;
        //start();
        run();
    }

    public static void main(String[] arg) {
        //NAR nar = new Default().realtime().build();
        
        NAR nar = new Default().simulationTime().setConceptBagSize(500).<commit_msg>10 was fine<commit_after>package nars.nario;

import java.awt.event.KeyEvent;
import static java.lang.Math.log;
import static java.lang.Math.signum;
import static java.lang.Math.signum;
import java.util.ArrayList;
import java.util.List;
import javax.swing.SwingUtilities;
import nars.core.EventEmitter.EventObserver;
import nars.core.Events;
import nars.core.Memory;
import nars.core.NAR;
import nars.core.Parameters;
import nars.core.build.Default;
import nars.entity.Task;
import nars.gui.NARSwing;
import nars.io.ChangedTextInput;
import nars.language.Term;
import nars.nario.level.Level;
import nars.nario.level.LevelGenerator;
import nars.nario.sprites.Enemy;
import nars.nario.sprites.Mario;
import nars.nario.sprites.Particle;
import nars.nario.sprites.Sparkle;
import nars.nario.sprites.Sprite;
import nars.operator.NullOperator;
import nars.operator.Operation;
import nars.plugin.app.plan.TemporalParticlePlanner;
import nars.plugin.mental.InternalExperience;

/**
 *
 * @author me
 */
public class NARio extends Run {

    static int memoryCyclesPerFrame = 10;
    
    private final NAR nar;
    private LevelScene level;
    private float lastX = -1;
    private float lastY = -1;
    int cycle = 0;
    int gotCoin = 0;
    private Mario mario;    
    static double gameRate;

    boolean offKeys = false;
    
    private ChangedTextInput moveInput;
    private ChangedTextInput velInput;

    public NARio(NAR n) {
        super();
        this.nar = n;
        //start();
        run();
    }

    public static void main(String[] arg) {
        //NAR nar = new Default().realtime().build();
        
        NAR nar = new Default().simulationTime().setConceptBagSize(500).
{'fraction_non_alphanumeric': 0.10585452395032525, 'fraction_numerical': 0.0059136605558840925, 'mean_word_length': 3.5287817938420347, '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': '3926741', 'n_tokens_mistral': 1134, 'n_tokens_neox': 1110, 'n_words': 259}