<commit_before>package tests;

import static org.junit.Assert.*;

import java.util.ArrayList;

import org.junit.Test;
import logic.*;

/**
 * Class to test all the constructor of the BinaryTree class
 * @author <NAME>
 *
 */
public class BinaryTreeConstructorTests {

	@Test
	public void test_initWithoutFileAVL() {
		BinaryTreeMock tree = new BinaryTreeMock(false);
		assertFalse("AVL is active but it shouldn't", tree.avlActive());
		
		tree = new BinaryTreeMock(true);
		assertTrue("AVL is not active but it should", tree.avlActive());
	}
	
	@Test	
	public void test_initWithValidFileContent() {
		ArrayList<String> list = new ArrayList<String>();
		list.add("basn");
		list.add("abcd");
		
		try {
			BinaryTree tree = new BinaryTree(list);
			fail("Exception did not throw");
		} catch(Exception e) {
			// nothing to do here
		}
	}
	
	@Test
	public void test_initWithInvalidFileContent() {
		ArrayList<String> list = new ArrayList<String>();
		list.add("true");
		list.add("asd");
		
		try {
			BinaryTree tree = new BinaryTree(list);
			
		} catch(Exception e) {
			fail("Exception did throw but it shouldn't");
		}
	}

}<commit_msg>Fixed wrong names<commit_after>package tests;

import static org.junit.Assert.*;

import java.util.ArrayList;

import org.junit.Test;
import logic.*;

/**
 * Class to test all the constructor of the BinaryTree class
 * @author <NAME>
 *
 */
public class BinaryTreeConstructorTests {

	@Test
	public void test_initWithoutFileAVL() {
		BinaryTreeMock tree = new BinaryTreeMock(false);
		assertFalse("AVL is active but it shouldn't", tree.avlActive());
		
		tree = new BinaryTreeMock(true);
		assertTrue("AVL is not active but it should", tree.avlActive());
	}
	
	@Test	
	public void test_initWithInValidFileContent() {
		ArrayList<String> list = new ArrayList<String>();
		list.add("basn");
		list.add("abcd");
		
		try {
			BinaryTree tree = new BinaryTree(list);
			fail("Exception did not throw");
		} catch(Exception e) {
			// nothing to do here
		}
	}
	
	@Test
	public void test_initWithValidFileContent() {
		ArrayList<String> list = new ArrayList<String>();
		list.add("true");
		list.add("asd");
		
		try {
			BinaryTree tree = new BinaryTree(list);
			
		} catch(Exception e) {
			fail("Exception did throw but it shouldn't");
		}
	}

}
{'fraction_non_alphanumeric': 0.12784588441331, 'fraction_numerical': 0.0, 'mean_word_length': 3.9566160520607374, 'pattern_counts': {'":': 0, '<': 13, '<?xml version=': 0, '>': 13, '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': '5775164', 'n_tokens_mistral': 810, 'n_tokens_neox': 708, 'n_words': 202}