<commit_before>package resources;

import static org.junit.Assert.*;

import java.util.Iterator;

import org.junit.*;

public class TestSortedLinkedList {

	private static SortedLinkedList<Character> list;
	private static final char TESTCHAR1 = 'a';
	private static final char TESTCHAR2 = 'b';
	private static final char TESTCHAR3 = 'c';

	/**
	 * Characters are compared by numerical value and they
	 * should therefore be stored in such order within the list.
	 */
	@Test
	public void testSorting() {
		resetList();
		Iterator<Character> it;
		
		list.add(TESTCHAR2);
		list.add(TESTCHAR3);
		list.add(TESTCHAR1);
		
		it = list.listIterator();
		
		assertTrue(it.next().equals(TESTCHAR1));
		assertTrue(it.next().equals(TESTCHAR2));
		assertTrue(it.next().equals(TESTCHAR3));
	}
	
	private static void resetList() {
		list = new SortedLinkedList<>();
	}
	
}<commit_msg>Changed wildcard imports and moved class fields into the test method in TestSortedLinkedList<commit_after>package resources;

import static org.junit.Assert.assertTrue;
import java.util.Iterator;
import org.junit.Test;

public class TestSortedLinkedList {

	/**
	 * Characters are compared by numerical value and they
	 * should therefore be stored in such order within the list.
	 */
	@Test
	public void testSorting() {
		SortedLinkedList<Character> list = new SortedLinkedList<>();
		final char testchar1 = 'a';
		final char testchar2 = 'b';
		final char testchar3 = 'c';
		Iterator<Character> it;
		
		list.add(testchar2);
		list.add(testchar3);
		list.add(testchar1);
		
		it = list.listIterator();
		
		assertTrue(it.next().equals(testchar1));
		assertTrue(it.next().equals(testchar2));
		assertTrue(it.next().equals(testchar3));
	}
	
}
{'fraction_non_alphanumeric': 0.11792177466433158, 'fraction_numerical': 0.010507880910683012, 'mean_word_length': 4.424050632911392, 'pattern_counts': {'":': 0, '<': 9, '<?xml version=': 0, '>': 9, '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': '1676988', 'n_tokens_mistral': 570, 'n_tokens_neox': 522, 'n_words': 146}