<commit_before>package ru.alexandr;

import org.junit.Test;
import java.io.ByteArrayOutputStream;
import java.io.PrintStream;
import static org.hamcrest.core.Is.is;
import static org.junit.Assert.assertThat;

public class CalculateTest {

       @Test
       public void whenAddOneToOneThenTwo() {
	 	ByteArrayOutputStream out = new ByteArrayOutputStream();
        	System.setOut(new PrintStream(out));
        	Calculate.main(null);
        	assertThat(out.toString(), is("Hello world!\r\n"));
    }
}
<commit_msg>add CalculateTest.java<commit_after>package ru.alexandr;

import org.junit.Test;
import java.io.ByteArrayOutputStream;
import java.io.PrintStream;
import static org.hamcrest.core.Is.is;
import static org.junit.Assert.assertThat;

/**
* Test.
*
* @author <NAME> (<EMAIL>)
* @version $Id$
* since 0.1
*/
public class CalculateTest {
	/**
	* Test add.
	*/
	@Test
    public void whenExecuteMainThenPrintToConsole() {
	    ByteArrayOutputStream out = new ByteArrayOutputStream();
        System.setOut(new PrintStream(out));
        Calculate.main(null);
        assertThat(out.toString(), is("Hello world!\r\n"));
    }
}


{'fraction_non_alphanumeric': 0.12852112676056338, 'fraction_numerical': 0.0017605633802816902, 'mean_word_length': 3.8382978723404255, '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': '1689423', 'n_tokens_mistral': 369, 'n_tokens_neox': 355, 'n_words': 73}