<commit_before>/**
 * 
 */
package com.trendrr.strest.examples;

import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;

import com.trendrr.strest.server.StrestServer;


/**
 * @author <NAME>
 * @created Mar 16, 2011
 * 
 */
public class Main {

	protected static Log log = LogFactory.getLog(Main.class);
	
	public static void main(String[] args) throws Exception {
		StrestServer server = StrestServer.instanceFromFile("example_config.yaml");
		System.out.println("!!! WELCOME TO STREST !!!");
		System.out.println("Strest-Server examples started");
		server.start();
    }
}<commit_msg>use the builder<commit_after>/**
 * 
 */
package com.trendrr.strest.examples;

import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;

import com.trendrr.strest.StrestServerBuilder;
import com.trendrr.strest.server.StrestServer;


/**
 * @author <NAME>
 * @created Mar 16, 2011
 * 
 */
public class Main {

	protected static Log log = LogFactory.getLog(Main.class);
	
	public static void main(String[] args) throws Exception {
		StrestServer server = new StrestServerBuilder().addConfigFile("example_config.yaml").build();
		System.out.println("!!! WELCOME TO STREST !!!");
		System.out.println("Strest-Server examples started");
		server.start();
    }
}
{'fraction_non_alphanumeric': 0.1419800460475825, 'fraction_numerical': 0.00920951650038373, 'mean_word_length': 4.572649572649572, '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': '120406', 'n_tokens_mistral': 447, 'n_tokens_neox': 407, 'n_words': 87}