<commit_before>package owltools.cli;

import static junit.framework.Assert.*;

import java.io.File;

import org.junit.Test;

import owltools.OWLToolsTestBasics;

/**
 * Tests for {@link CommandRunner}.
 * 
 * these are somewhat ad-hoc at the moment - output is written to stdout;
 * no attempt made to check results
 * 
 */
public class AbstractCommandRunnerTest extends OWLToolsTestBasics {
	
	protected CommandRunner runner;
	
	protected void init() {
		runner = new CommandRunner();
	}
	
	protected void load(String file) throws Exception {
		String path = getResource(file).getAbsolutePath();
		System.out.println("Loading: "+path);
		run(path);		
	}
	
	protected void run(String[] args) throws Exception {
		runner.run(args);
	}
	protected void run(String argStr) throws Exception {
		run(argStr.split(" "));
	}
	
	protected void run(String[] args, String[] expectedLines) {
		// TODO
	}
	
	
	
}<commit_msg>uses runSingleIteration, to avoid reasoner disposal<commit_after>package owltools.cli;

import static junit.framework.Assert.*;

import java.io.File;

import org.junit.Test;

import owltools.OWLToolsTestBasics;

/**
 * Tests for {@link CommandRunner}.
 * 
 * these are somewhat ad-hoc at the moment - output is written to stdout;
 * no attempt made to check results
 * 
 */
public class AbstractCommandRunnerTest extends OWLToolsTestBasics {
	
	protected CommandRunner runner;
	
	protected void init() {
		runner = new CommandRunner();
	}
	
	protected void load(String file) throws Exception {
		String path = getResource(file).getAbsolutePath();
		run(path);		
	}
	
	protected void run(String[] args) throws Exception {
		runner.runSingleIteration(args);
	}
	protected void run(String argStr) throws Exception {
		run(argStr.split(" "));
	}
	
	protected void run(String[] args, String[] expectedLines) {
		// TODO
	}
	
	public String path(String in) {
		return getResource(in).getAbsolutePath();
	}

	
}
{'fraction_non_alphanumeric': 0.10751565762004175, 'fraction_numerical': 0.0, 'mean_word_length': 4.153225806451613, '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': '5045817', 'n_tokens_mistral': 616, 'n_tokens_neox': 564, 'n_words': 169}