<commit_before>package ch.idsia.mario.simulation;

import ch.idsia.ai.agents.IAgent;
import ch.idsia.mario.engine.MarioComponent;
import ch.idsia.utils.SmartBool;
import ch.idsia.utils.SmartInt;

/**
 * Created by IntelliJ IDEA.
 * User: <NAME>
 * Date: Apr 12, 2009
 * Time: 9:55:56 PM
 * Package: com.mojang.mario.Simulation
 */


public class SimulationOptions 
{

    protected IAgent agent;
    protected MarioComponent marioComponent = null;
    protected SmartInt levelType = new SmartInt();         //int
    protected SmartInt levelDifficulty = new SmartInt();   //int
    protected SmartInt levelLength = new SmartInt();       //int
    protected SmartInt levelRandSeed = new SmartInt();     //int
    protected SmartBool visualization = new SmartBool();     //boolean
    protected SmartBool pauseWorld = new SmartBool();      // boolean
    protected SmartBool powerRestoration = new SmartBool(); //boolean
    protected SmartBool stopSimulationIfWin = new SmartBool(); //boolean

    //TODO: SK handle this common with all the rest options
    public int maxAttempts;
    public static int currentAttempt = 0;


    public SimulationOptions getBasicSimulatorOptions()
    {
        SimulationOptions ret = new SimulationOptions();
        ret.setAgent(agent);
        ret.setLevelDifficulty(levelDifficulty.getValue());
        ret.setLevelLength(levelLength.getValue());
        ret.setLevelRandSeed(levelRandSeed.getValue());
        ret.setLevelType(levelType.getValue());
        ret.setMarioComponent(marioComponent);
        ret.setVisualization(visualization.getValue());
        ret.setPauseWorld(pauseWorld.getValue());
        ret.setPowerRestoration(powerRestoration.getValue());
        ret.maxAttempts = this.maxAttempts;
        return ret;
    }

    public IAgent getAgent() {
        return agent;
    }<commit_msg>number of attempts starts from 1<commit_after>package ch.idsia.mario.simulation;

import ch.idsia.ai.agents.IAgent;
import ch.idsia.mario.engine.MarioComponent;
import ch.idsia.utils.SmartBool;
import ch.idsia.utils.SmartInt;

/**
 * Created by IntelliJ IDEA.
 * User: <NAME>
 * Date: Apr 12, 2009
 * Time: 9:55:56 PM
 * Package: com.mojang.mario.Simulation
 */


public class SimulationOptions 
{

    protected IAgent agent;
    protected MarioComponent marioComponent = null;
    protected SmartInt levelType = new SmartInt();         //int
    protected SmartInt levelDifficulty = new SmartInt();   //int
    protected SmartInt levelLength = new SmartInt();       //int
    protected SmartInt levelRandSeed = new SmartInt();     //int
    protected SmartBool visualization = new SmartBool();     //boolean
    protected SmartBool pauseWorld = new SmartBool();      // boolean
    protected SmartBool powerRestoration = new SmartBool(); //boolean
    protected SmartBool stopSimulationIfWin = new SmartBool(); //boolean

    //TODO: SK handle this common with all the rest options
    public int maxAttempts;
    public static int currentAttempt = 1;


    public SimulationOptions getBasicSimulatorOptions()
    {
        SimulationOptions ret = new SimulationOptions();
        ret.setAgent(agent);
        ret.setLevelDifficulty(levelDifficulty.getValue());
        ret.setLevelLength(levelLength.getValue());
        ret.setLevelRandSeed(levelRandSeed.getValue());
        ret.setLevelType(levelType.getValue());
        ret.setMarioComponent(marioComponent);
        ret.setVisualization(visualization.getValue());
        ret.setPauseWorld(pauseWorld.getValue());
        ret.setPowerRestoration(powerRestoration.getValue());
        ret.maxAttempts = this.maxAttempts;
        return ret;
    }

    public IAgent getAgent() {
        return agent;
    }
{'fraction_non_alphanumeric': 0.09760043138312213, 'fraction_numerical': 0.0067403612833647885, 'mean_word_length': 3.284064665127021, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, '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': '2975769', 'n_tokens_mistral': 1077, 'n_tokens_neox': 1016, 'n_words': 257}