<commit_before>package com.mijecu25.dsa.algorithms.shuffle.linear;

import org.junit.Assert;
import org.junit.Before;
import org.junit.Test;

import com.mijecu25.dsa.algorithms.shuffle.linear.FYShuffle;
import com.mijecu25.dsa.algorithms.sort.Sort;

/**
 * This is the FYShuffle test class.
 * 
 * @author <NAME>
 * @version 0.1.3.1
 */
public class TestFYShuffle {
	
	@Before
	public void initialize() {
		;
	}	
	
	/**
	 * Test shuffle
	 */
	@Test 
	public void shuffle() {
		// Create a new array
		int[] random = {2,4,23,3,23,12,12,5,23,6,4,96,68,34,6,4};
		
		// Create a temp array
		int[] temp = new int[random.length];
		
		// Make a copy of the random array to avoid pointing to the same memory reference
		System.arraycopy(random, 0, temp, 0, random.length);
		
		// Shuffle the new array
		FYShuffle.shuffle(random);
		
		// Assert that the list was shuffled
		boolean shuffled = false;
		
		for(int i = 0; !shuffled && i < random.length ; i++) {
			shuffled = random[i] != temp[i];
		}
		
		Assert.assertTrue(shuffled);
	}
<commit_msg>Added TODOs for non primitive tests<commit_after>package com.mijecu25.dsa.algorithms.shuffle.linear;

import org.junit.Assert;
import org.junit.Before;
import org.junit.Test;

import com.mijecu25.dsa.algorithms.shuffle.linear.FYShuffle;
import com.mijecu25.dsa.algorithms.sort.Sort;

/**
 * This is the FYShuffle test class.
 * 
 * @author <NAME>
 * @version 0.1.3.2
 */
public class TestFYShuffle {
	
	@Before
	public void initialize() {
		;
	}	
	
	/**
	 * Test shuffle
	 */
	@Test 
	public void shuffle() {
		// Create a new array
		int[] random = {2,4,23,3,23,12,12,5,23,6,4,96,68,34,6,4};
		
		// Create a temp array
		int[] temp = new int[random.length];
		
		// Make a copy of the random array to avoid pointing to the same memory reference
		System.arraycopy(random, 0, temp, 0, random.length);
		
		// Shuffle the new array
		FYShuffle.shuffle(random);
		
		// Assert that the list was shuffled
		boolean shuffled = false;
		
		for(int i = 0; !shuffled && i < random.length; i++) {
			shuffled = random[i] != temp[i];
		}
		
		Assert.assertTrue(shuffled);
	}

	// TODO add tests for Object/float/double
{'fraction_non_alphanumeric': 0.13636363636363635, 'fraction_numerical': 0.03432282003710575, 'mean_word_length': 3.2294117647058824, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 5, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 2, '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': '6543574', 'n_tokens_mistral': 891, 'n_tokens_neox': 765, 'n_words': 200}