<commit_before>package org.adligo.xml_io.client;

import java.math.BigDecimal;
import java.math.BigInteger;
import java.util.ArrayList;
import java.util.Collection;
import java.util.HashSet;
import java.util.Iterator;
import java.util.LinkedHashSet;
import java.util.LinkedList;
import java.util.Map;
import java.util.PriorityQueue;
import java.util.Stack;
import java.util.TreeSet;
import java.util.Vector;

import org.adligo.i.log.client.Log;
import org.adligo.i.log.client.LogFactory;
import org.adligo.models.params.client.XMLBuilder;
import org.adligo.tests.ATest;

public class Xml_IOReaderSimpleClassTests extends ATest {
	private static final Log log = LogFactory.getLog(Xml_IOReaderSimpleClassTests.class);
	
	
	public void testCharacter() {
		Xml_IOReader builder = new Xml_IOReader();
		
		Object result = builder.readXml(MockConstants.HEADER + "C" + MockConstants.HEADER_2 +  "H</a:C>");
		assertEquals('H', result);
		
		result = builder.readXml(MockConstants.HEADER + "C" + MockConstants.HEADER_2 +  "&gt;</a:C>" );
		assertEquals('>', result);
		
	}
	
	public void testString() {
		Xml_IOReader builder = new Xml_IOReader();
		
		Object result = builder.readXml(MockConstants.HEADER + "s" + MockConstants.HEADER_2 +  "Hey</a:s>");
		assertEquals("Hey", result);
		
		result = builder.readXml(MockConstants.HEADER + "s" + MockConstants.HEADER_2 +  "Hey&lt;1</a:s>" );
		assertEquals("Hey<1", result);
		
		result = builder.readXml(MockConstants.HEADER + "s" + MockConstants.HEADER_2 +  "Hey&gt;1</a:s>" );
		assertEquals("Hey>1", result);
		
		result = builder.readXml(MockConstants.HEADER + "s" + MockConstants.HEADER_2 +  "Hey&amp;1</a:s>" );
		assertEquals("Hey&1", result);
		
		result = builder.readXml(MockConstants.HEADER + "s" + MockConstants.HEADER_2 +  "Hey&quot;1</a:s>");
		assertEquals( "Hey\"1", result);
		
	}
	
	public void testBoolean() {<commit_msg>rolled back identifier mutants as that was something I did for the xml_serlizable code which has been repaced by the xml_io code<commit_after>package org.adligo.xml_io.client;

import java.math.BigDecimal;
import java.math.BigInteger;
import java.util.ArrayList;
import java.util.Collection;
import java.util.HashSet;
import java.util.Iterator;
import java.util.LinkedHashSet;
import java.util.LinkedList;
import java.util.Map;
import java.util.PriorityQueue;
import java.util.Stack;
import java.util.TreeSet;
import java.util.Vector;

import org.adligo.i.log.client.Log;
import org.adligo.i.log.client.LogFactory;
import org.adligo.models.params.client.XMLBuilder;
import org.adligo.tests.ATest;

public class Xml_IOReaderSimpleClassTests extends ATest {
	private static final Log log = LogFactory.getLog(Xml_IOReaderSimpleClassTests.class);
	
	
	public void testCharacter() {
		Xml_IOReader reader = new Xml_IOReader();
		
		Object result = reader.readXml(MockConstants.HEADER + "C" + MockConstants.HEADER_2 +  "H</a:C>");
		assertEquals('H', result);
		
		result = reader.readXml(MockConstants.HEADER + "C" + MockConstants.HEADER_2 +  "&gt;</a:C>" );
		assertEquals('>', result);
		
	}
	
	public void testString() {
		Xml_IOReader builder = new Xml_IOReader();
		
		Object result = builder.readXml(MockConstants.HEADER + "s" + MockConstants.HEADER_2 +  "Hey</a:s>");
		assertEquals("Hey", result);
		
		result = builder.readXml(MockConstants.HEADER + "s" + MockConstants.HEADER_2 +  "Hey&lt;1</a:s>" );
		assertEquals("Hey<1", result);
		
		result = builder.readXml(MockConstants.HEADER + "s" + MockConstants.HEADER_2 +  "Hey&gt;1</a:s>" );
		assertEquals("Hey>1", result);
		
		result = builder.readXml(MockConstants.HEADER + "s" + MockConstants.HEADER_2 +  "Hey&amp;1</a:s>" );
		assertEquals("Hey&1", result);
		
		result = builder.readXml(MockConstants.HEADER + "s" + MockConstants.HEADER_2 +  "Hey&quot;1</a:s>");
		assertEquals( "Hey\"1", result);
		
	}
	
	public void testBoolean() {
{'fraction_non_alphanumeric': 0.14352090862157976, 'fraction_numerical': 0.007743933918430563, 'mean_word_length': 4.907012195121951, 'pattern_counts': {'":': 0, '<': 19, '<?xml version=': 0, '>': 21, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 4}, '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': '1889000', 'n_tokens_mistral': 1394, 'n_tokens_neox': 1280, 'n_words': 253}