<commit_before>package org.dstricks;


import static org.junit.Assert.*;

import java.io.File;
import java.io.FileInputStream;
import java.io.FileNotFoundException;
import java.io.IOException;

import org.junit.Test;


public class TesseractTest {

	@Test
	public void digitsTest() throws Exception {
		String expected = "0123456789";
		String actual = Tesseract.process("src/test/resources/digits.jpg").trim();
		assertEquals("digits.jpg was not read properly",  expected, actual);
	}
	
	@Test
	public void asciiSentenceTest() throws Exception {
		String expected = "Happy New Year 2003!";
		String actual = Tesseract.process("src/test/resources/asciiSentence.png").trim();
		assertEquals("digits.jpg was not read properly",  expected, actual);
	}
	
	@Test
	public void digitsInputStreamTest() throws IOException, InterruptedException {
		String expected = "0123456789";
		FileInputStream fis = new FileInputStream(new File("src/test/resources/digits.jpg"));
		String actual = Tesseract.process(fis).trim();
		assertEquals("digits.jpg was not read properly",  expected, actual);
	}
	
	@Test
	public void noTextImageTest() throws IOException, InterruptedException {
		String expected = "";
		String actual = Tesseract.process("src/test/resources/testJPEG.jpg").trim();
		
		assertEquals("testJPEG.jpg was not read properly",  expected, actual);
	}

}<commit_msg>Update tests<commit_after>package org.dstricks;


import static org.junit.Assert.*;

import java.io.File;
import java.io.FileInputStream;
import java.io.FileNotFoundException;
import java.io.IOException;

import org.junit.Test;


public class TesseractTest {

	@Test
	public void digitsTest() throws Exception {
		String expected = "0123456789";
		String actual = Tesseract.process("src/test/resources/digits.jpg").trim();
		assertEquals("digits.jpg was not read properly",  expected, actual);
	}
	
	@Test
	public void asciiSentenceTest() throws Exception {
		String expected = "Happy New Year 2003!";
		String actual = Tesseract.process("src/test/resources/asciiSentence.png").trim();
		assertEquals("asciiSentence.png was not read properly",  expected, actual);
	}
	
	@Test
	public void noTextImageTest() throws IOException, InterruptedException {
		String expected = "";
		String actual = Tesseract.process("src/test/resources/testJPEG.jpg").trim();
		
		assertEquals("testJPEG.jpg was not read properly",  expected, actual);
	}
	
	@Test
	public void digitsInputStreamTest() throws IOException, InterruptedException {
		String expected = "0123456789";
		FileInputStream fis = new FileInputStream(new File("src/test/resources/digits.jpg"));
		String actual = Tesseract.process(fis).trim();
		assertEquals("digits.jpg was not read properly",  expected, actual);
	}
	
	@Test
	public void digitsInputStreamNoTextTest() throws IOException, InterruptedException {
		String expected = "";
		FileInputStream fis = new FileInputStream(new File("src/test/resources/testJPEG.jpg"));
		String actual = Tesseract.process(fis).trim();
		assertEquals("testJPEG.jpg was not read properly",  expected, actual);
	}

}
{'fraction_non_alphanumeric': 0.11684073107049608, 'fraction_numerical': 0.015665796344647518, 'mean_word_length': 5.142284569138276, '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': '3511899', 'n_tokens_mistral': 975, 'n_tokens_neox': 867, 'n_words': 231}