<commit_before>package em.embedded.se.devscout.scoutapi;

import org.evomaster.clientJava.controller.EmbeddedSutController;
import org.evomaster.clientJava.controller.InstrumentedSutStarter;
import org.evomaster.clientJava.controller.db.DbCleaner;
import org.evomaster.clientJava.controller.db.SqlScriptRunner;
import org.evomaster.clientJava.controllerApi.dto.AuthenticationDto;
import org.evomaster.clientJava.controllerApi.dto.HeaderDto;
import se.devscout.scoutapi.ScoutAPIApplication;

import java.io.File;
import java.io.InputStream;
import java.io.InputStreamReader;
import java.sql.Connection;
import java.sql.SQLException;
import java.util.Arrays;
import java.util.List;

/**
 * Class used to start/stop the SUT. This will be controller by the EvoMaster process
 */
public class EmbeddedEvoMasterController extends EmbeddedSutController {

    public static void main(String[] args){

        int port = 40100;
        if(args.length > 0){
            port = Integer.parseInt(args[0]);
        }

        EmbeddedEvoMasterController controller = new EmbeddedEvoMasterController(port);
        InstrumentedSutStarter starter = new InstrumentedSutStarter(controller);

        starter.start();
    }


    private ScoutAPIApplication application;
    private Connection connection;
    private List<String> sqlCommands;

    public EmbeddedEvoMasterController(){
        this(40100);
    }

    public EmbeddedEvoMasterController(int port) {
        setControllerPort(port);

        try(InputStream in = getClass().getResourceAsStream("/init_db.sql")) {
            sqlCommands = (new SqlScriptRunner()).readCommands(new InputStreamReader(in));
        } catch (Exception e){
            throw new RuntimeException(e);
        }
    }

    @Override
    public String startSut() {
        application = new ScoutAPIApplication(0);

        //Dirty hack for DW...
        System.setProperty("dw.server.connector.port", "0");

        try {
            application.run("server", "src/main/resources/scout_api_evomaster.yml");
        } catch (Exception e) {
            e.printStackTrace();
            return null;
        }
<commit_msg>compilation error<commit_after>package em.embedded.se.devscout.scoutapi;

import org.evomaster.clientJava.controller.EmbeddedSutController;
import org.evomaster.clientJava.controller.InstrumentedSutStarter;
import org.evomaster.clientJava.controller.db.DbCleaner;
import org.evomaster.clientJava.controller.db.SqlScriptRunner;
import org.evomaster.clientJava.controllerApi.dto.AuthenticationDto;
import org.evomaster.clientJava.controllerApi.dto.HeaderDto;
import se.devscout.scoutapi.ScoutAPIApplication;

import java.io.File;
import java.io.InputStream;
import java.io.InputStreamReader;
import java.sql.Connection;
import java.sql.SQLException;
import java.util.Arrays;
import java.util.List;

/**
 * Class used to start/stop the SUT. This will be controller by the EvoMaster process
 */
public class EmbeddedEvoMasterController extends EmbeddedSutController {

    public static void main(String[] args){

        int port = 40100;
        if(args.length > 0){
            port = Integer.parseInt(args[0]);
        }

        EmbeddedEvoMasterController controller = new EmbeddedEvoMasterController(port);
        InstrumentedSutStarter starter = new InstrumentedSutStarter(controller);

        starter.start();
    }


    private ScoutAPIApplication application;
    private Connection connection;
    private List<String> sqlCommands;

    public EmbeddedEvoMasterController(){
        this(40100);
    }

    public EmbeddedEvoMasterController(int port) {
        setControllerPort(port);

        try(InputStream in = getClass().getResourceAsStream("/init_db.sql")) {
            sqlCommands = (new SqlScriptRunner()).readCommands(new InputStreamReader(in));
        } catch (Exception e){
            throw new RuntimeException(e);
        }
    }

    @Override
    public String startSut() {
        application = new ScoutAPIApplication();

        //Dirty hack for DW...
        System.setProperty("dw.server.connector.port", "0");

        try {
            application.run("server", "src/main/resources/scout_api_evomaster.yml");
        } catch (Exception e) {
            e.printStackTrace();
            return null;
        }

{'fraction_non_alphanumeric': 0.0974131903985085, 'fraction_numerical': 0.006292239571195526, 'mean_word_length': 3.370672097759674, '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': '6966832', 'n_tokens_mistral': 1255, 'n_tokens_neox': 1208, 'n_words': 243}