<commit_before><!---
/**
 * OWASP Enterprise Security API (ESAPI)
 * 
 * This file is part of the Open Web Application Security Project (OWASP)
 * Enterprise Security API (ESAPI) project. For details, please see
 * <a href="http://www.owasp.org/index.php/ESAPI">http://www.owasp.org/index.php/ESAPI</a>.
 *
 * Copyright (c) 2011 - The OWASP Foundation
 * 
 * The ESAPI is published by OWASP under the BSD license. You should read and accept the
 * LICENSE before you use, modify, and/or redistribute this software.
 * 
 * @author <NAME>
 * @created 2011
 */
--->
<cfsetting requesttimeout="120">

<cfscript>
	System = createObject("java", "java.lang.System");
	variables.ESAPI = createObject("component", "org.owasp.esapi.ESAPI").init();

	System.out.println("INITIALIZING ALL TESTS");

	suite = createObject("component", "mxunit.framework.TestSuite").TestSuite();
	suite.addAll("esapi4cf.test.org.owasp.esapi.reference.DefaultSecurityConfigurationTest");
	suite.addAll("esapi4cf.test.org.owasp.esapi.reference.LoggerTest");
	suite.addAll("esapi4cf.test.org.owasp.esapi.reference.SafeFileTest");
	suite.addAll("esapi4cf.test.org.owasp.esapi.reference.UserTest");
	suite.addAll("esapi4cf.test.org.owasp.esapi.ESAPITest");
	suite.addAll("esapi4cf.test.org.owasp.esapi.reference.RandomizerTest");
	suite.addAll("esapi4cf.test.org.owasp.esapi.reference.AccessControllerTest");
	suite.addAll("esapi4cf.test.org.owasp.esapi.reference.HTTPUtilitiesTest");
	suite.addAll("esapi4cf.test.org.owasp.esapi.reference.ValidatorTest");
	suite.addAll("esapi4cf.test.org.owasp.esapi.reference.EncryptorTest");
	suite.addAll("esapi4cf.test.org.owasp.esapi.reference.IntrusionDetectorTest");
	suite.addAll("esapi4cf.test.org.owasp.esapi.reference.AccessReferenceMapTest");
	suite.addAll("esapi4cf.test.org.owasp.esapi.reference.IntegerAccessReferenceMapTest");
	suite.addAll("esapi4cf.test.org.owasp.esapi.reference.ExecutorTest");
	suite.addAll("esapi4cf.test.org.owasp.esapi.reference.EncoderTest");
	suite.addAll("esapi4cf.test.org.owasp.esapi.reference.EncryptedPropertiesTest");
	suite.addAll("esapi4cf.test.org.owasp.esapi.reference.AuthenticatorTest");

	// exceptions
	suite.addAll("esapi4cf.test.org.owasp.esapi.errors.EnterpriseSecurityExceptionTest");

	startTestSuiteRunTime = getTickCount();

	results = suite.run();
	writeOutput(results.getResultsOutput("html"));
	writeOutput("<p>Total Test Time: #(getTickCount() - startTestSuiteRunTime) / 1000# seconds</p><br/>");
</cfscript>
<commit_msg>Added CFML version to test results for clarity<commit_after><!---
/**
 * OWASP Enterprise Security API (ESAPI)
 *
 * This file is part of the Open Web Application Security Project (OWASP)
 * Enterprise Security API (ESAPI) project. For details, please see
 * <a href="http://www.owasp.org/index.php/ESAPI">http://www.owasp.org/index.php/ESAPI</a>.
 *
 * Copyright (c) 2011 - The OWASP Foundation
 *
 * The ESAPI is published by OWASP under the BSD license. You should read and accept the
 * LICENSE before you use, modify, and/or redistribute this software.
 *
 * @author <NAME>
 * @created 2011
 */
--->
<cfsetting requesttimeout="120">

<cfscript>
	serverVersion = "[CF " & server.coldfusion.ProductVersion & "]";
	if(structKeyExists(server, "railo")) {
		serverVersion = "[Railo " & server.railo.version & "]";
	}
	writeOutput("<h1>ESAPI4CF " & serverVersion & " Test Results</h1>");

	System = createObject("java", "java.lang.System");
	variables.ESAPI = createObject("component", "org.owasp.esapi.ESAPI").init();

	System.out.println("INITIALIZING ALL TESTS");

	suite = createObject("component", "mxunit.framework.TestSuite").TestSuite();
	suite.addAll("esapi4cf.test.org.owasp.esapi.reference.DefaultSecurityConfigurationTest");
	suite.addAll("esapi4cf.test.org.owasp.esapi.reference.LoggerTest");
	suite.addAll("esapi4cf.test.org.owasp.esapi.reference.SafeFileTest");
	suite.addAll("esapi4cf.test.org.owasp.esapi.reference.UserTest");
	suite.addAll("esapi4cf.test.org.owasp.esapi.ESAPITest");
	suite.addAll("esapi4cf.test.org.owasp.esapi.reference.RandomizerTest");
	suite.addAll("esapi4cf.test.org.owasp.esapi.reference.AccessControllerTest");
	suite.addAll("esapi4cf.test.org.owasp.esapi.reference.HTTPUtilitiesTest");
	suite.addAll("esapi4cf.test.org.owasp.esapi.reference.ValidatorTest");
	suite.addAll("esapi4cf.test.org.owasp.esapi.reference.EncryptorTest");
	suite.addAll("esapi4cf.test.org.owasp.esapi.reference.IntrusionDetectorTest");
	suite.addAll("esapi4cf.test.org.owasp.esapi.reference.AccessReferenceMapTest");
	suite.addAll("esapi4cf.test.org.owasp.esapi.reference.IntegerAccessReferenceMapTest");
	suite.addAll("esapi4cf.test.org.owasp.esapi.reference.ExecutorTest");
	suite.addAll("esapi4cf.test.org.owasp.esapi.reference.EncoderTest");
	suite.addAll("esapi4cf.test.org.owasp.esapi.reference.EncryptedPropertiesTest");
	suite.addAll("esapi4cf.test.org.owasp.esapi.reference.AuthenticatorTest");

	// exceptions
	suite.addAll("esapi4cf.test.org.owasp.esapi.errors.EnterpriseSecurityExceptionTest");

	startTestSuiteRunTime = getTickCount();

	results = suite.run();
	writeOutput(results.getResultsOutput("html"));
	writeOutput("<p>Total Test Time: #(getTickCount() - startTestSuiteRunTime) / 1000# seconds</p><br/>");
</cfscript>

{'fraction_non_alphanumeric': 0.15738267836703548, 'fraction_numerical': 0.013162914917970241, 'mean_word_length': 5.835723598435463, 'pattern_counts': {'":': 0, '<': 25, '<?xml version=': 0, '>': 25, 'https://': 0, 'lorem ipsum': 0, 'www.': 4, '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': '1863526', 'n_tokens_mistral': 1856, 'n_tokens_neox': 1797, 'n_words': 241}