<commit_before>package com.worizon.junit.rpc;

import org.junit.Test;
import static org.junit.Assert.*;
import com.worizon.jsonrpc.TypesUtil;

public class TypesUtilTest {
	
	@Test
	public void testAllTrue(){
		
		Object objs[] = new Object[]{new Integer(1), new Integer(2), new Integer(3), new Integer(4)};
		assertTrue( TypesUtil.all(objs, Integer.class) );
		
	}
	
	@Test
	public void testAllFalse(){
		
		Object objs[] = new Object[]{new Integer(1), new Double(2), new Integer(3), new Integer(4)};
		assertFalse( TypesUtil.all(objs, Integer.class) );
		
	}
	
	@Test
	public void testAnyTrue(){
		
		Object objs[] = new Object[]{new Double(1), new Long(2), new Integer(3), new Float(4)};
		assertTrue( TypesUtil.any(objs, Integer.class) );
		
	}
	
	@Test
	public void testAnyFalse(){
		
		Object objs[] = new Object[]{new Double(1), new Long(2), new String(""), new Float(4)};
		assertFalse( TypesUtil.any(objs, Integer.class) );
		
	}
	
	@Test
	public void testNoneTrue(){
		
		Object objs[] = new Object[]{new Double(1), new Long(2), new Short((short)0), new Float(4)};
		assertTrue( TypesUtil.none(objs, Integer.class) );
		
	}
	
	@Test
	public void testNoneFalse(){
		
		Object objs[] = new Object[]{new Double(1), new Integer(2), new Short((short)0), new Float(4)};
		assertFalse( TypesUtil.none(objs, Integer.class) );
		
	}
	
	
}
<commit_msg>refactored tests to acommodate new TypesUtil interface.<commit_after>package com.worizon.junit.rpc;

import org.junit.Test;
import static org.junit.Assert.*;
import com.worizon.jsonrpc.TypesUtil;

public class TypesUtilTest {
	
	@Test
	public void testAllTrue(){
		
		Object objs[] = new Object[]{new Integer(1), new Integer(2), new Integer(3), new Integer(4)};
		assertTrue( TypesUtil.all(objs).haveType(Integer.class) );
		
	}
	
	@Test
	public void testAllFalse(){
		
		Object objs[] = new Object[]{new Integer(1), new Double(2), new Integer(3), new Integer(4)};
		assertFalse( TypesUtil.all(objs).haveType(Integer.class) );
		
	}
	
	@Test
	public void testAnyTrue(){
		
		Object objs[] = new Object[]{new Double(1), new Long(2), new Integer(3), new Float(4)};
		assertTrue( TypesUtil.any(objs).haveType(Integer.class) );
		
	}
	
	@Test
	public void testAnyFalse(){
		
		Object objs[] = new Object[]{new Double(1), new Long(2), new String(""), new Float(4)};
		assertFalse( TypesUtil.any(objs).haveType(Integer.class) );
		
	}
	
	@Test
	public void testNoneTrue(){
		
		Object objs[] = new Object[]{new Double(1), new Long(2), new Short((short)0), new Float(4)};
		assertTrue( TypesUtil.none(objs).haveType(Integer.class) );
		
	}
	
	@Test
	public void testNoneFalse(){
		
		Object objs[] = new Object[]{new Double(1), new Integer(2), new Short((short)0), new Float(4)};
		assertFalse( TypesUtil.none(objs).haveType(Integer.class) );
		
	}
	
	
}

{'fraction_non_alphanumeric': 0.16107142857142856, 'fraction_numerical': 0.016428571428571428, 'mean_word_length': 4.32509505703422, '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': '4324489', 'n_tokens_mistral': 1047, 'n_tokens_neox': 940, 'n_words': 240}