<commit_before>package roart.config;

import java.io.IOException;
import java.util.ArrayList;
import java.util.List;
import java.util.Map;

import org.junit.Before;
import org.junit.Test;

import com.fasterxml.jackson.core.JsonParseException;
import com.fasterxml.jackson.databind.JsonMappingException;
import com.fasterxml.jackson.databind.ObjectMapper;

import roart.iclij.config.IclijConfig;
import roart.iclij.config.IclijXMLConfig;
import roart.iclij.config.Market;
import roart.iclij.config.MarketConfig;
import roart.iclij.config.MarketFilter;

public class IclijXMLConfigTest {

@Before
public void setup() {
    //IclijXMLConfig.instance();
}

@Test
public void test() throws JsonParseException, JsonMappingException, IOException {
    MarketConfig m = new MarketConfig();
    m.setFindtime((short) 5);
    m.setMarket("cb");
    List<MarketConfig> l = new ArrayList<>();
    l.add(m);
    ObjectMapper mapper = new ObjectMapper();
    System.out.println(mapper.writeValueAsString(l));
    IclijConfig conf = IclijXMLConfig.getConfigInstance();
    List<Market> ret = IclijXMLConfig.getMarkets(conf);
    //List<MarketFilter> ret2 = IclijXMLConfig.getFilterMarkets(conf);
}
}

<commit_msg>Automation, fix tests (I155).<commit_after>package roart.config;

import java.io.IOException;
import java.util.ArrayList;
import java.util.List;
import java.util.Map;

import org.junit.Before;
import org.junit.Test;

import com.fasterxml.jackson.core.JsonParseException;
import com.fasterxml.jackson.databind.JsonMappingException;
import com.fasterxml.jackson.databind.ObjectMapper;

import roart.iclij.config.IclijConfig;
import roart.iclij.config.IclijXMLConfig;
import roart.iclij.config.Market;
import roart.iclij.config.MarketConfig;
import roart.iclij.config.MarketFilter;

public class IclijXMLConfigTest {

@Before
public void setup() {
    //IclijXMLConfig.instance();
}

@Test
public void test() throws JsonParseException, JsonMappingException, IOException {
    MarketConfig m = new MarketConfig();
    m.setFindtime((short) 5);
    m.setMarket("cb");
    List<MarketConfig> l = new ArrayList<>();
    l.add(m);
    ObjectMapper mapper = new ObjectMapper();
    
    System.out.println(mapper.writeValueAsString(l));
    //IclijConfig conf = IclijXMLConfig.getConfigInstance();
    //List<Market> ret = IclijXMLConfig.getMarkets(conf);
    //List<MarketFilter> ret2 = IclijXMLConfig.getFilterMarkets(conf);
}
}


{'fraction_non_alphanumeric': 0.1181330028913672, 'fraction_numerical': 0.0028913672036348617, 'mean_word_length': 5.147208121827411, 'pattern_counts': {'":': 0, '<': 11, '<?xml version=': 0, '>': 11, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 6}, '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': '3633696', 'n_tokens_mistral': 813, 'n_tokens_neox': 777, 'n_words': 147}