<commit_before><?php

/**
 *    Chico-UI 
 *    Unit Tests Packer-o-matic "Automatic papá"
 */
       $version = "0.1";
       $autor = "<NAME> <<EMAIL>>";
              
// HTML Content Type
header("Content-type: text/html");

$tests = "core, dropdown, layer, modal, tabNavigator, tooltip";
$files = explode(", ", $tests);

$outScript = "";

$out  = "<!doctype html>\n<html>\n<head>\n<title>Tests</title>\n";
$out .= "<link rel=\"stylesheet\" type=\"text/css\" href=\"../build/chico.css\">\n";
$out .=	"<link href=\"../libs/css/qunit.css\" rel=\"stylesheet\">\n";
$out .= "<script src=\"../libs/js/jquery.js\"></script>\n";
$out .= "<script src=\"../libs/js/qunit.js\"></script>\n";
$out .= "<script src=\"../build/chico.js\"></script>\n";
$out .= "<script src=\"functions.js\"></script>\n";
$out .= "</head>\n";
$out .= "<body>\n";
$out .= "<h1>Chico-UI Unit Tests Packer-o-matic</h1>\n";
$out .= "<h3>version ".$version." by ".$autor."</h3>\n";
$out .= "<hr />\n";
$out .= "<h1 id=\"qunit-header\">QUnit Test Suite</h1>\n<h2 id=\"qunit-banner\"></h2>\n<div id=\"qunit-testrunner-toolbar\"></div>\n<h2 id=\"qunit-userAgent\"></h2>\n<ol id=\"qunit-tests\"></ol>\n<div id=\"qunit-fixture\">test markup</div>\n";

foreach ($files as $file) {
    	
	$html = file_get_contents("../tests/".$file.".html");

	$html = explode("<!-- #body -->", $html);
	$body = explode("<!-- #script -->", $html[1]);	
    $script = explode("<!-- #script -->", $html[2]);
    $script = explode("</body>", $script[1]);
    
    $out .= "<!-- ". $file ." -->";
	$out .= $body[0];
	$outScript .= $script[0];
}

$out .= $outScript;
$out .= "</body>\n</html>";

echo $out;



?>
<commit_msg>Fix de ruteo en el Test-o-matic<commit_after><?php

/**
 *    Chico-UI 
 *    Unit Tests Packer-o-matic "Automatic papá"
 */
       $version = "0.1";
       $autor = "<NAME> <<EMAIL>>";
              
// HTML Content Type
header("Content-type: text/html");

$tests = "core, dropdown, layer, modal, tabNavigator, tooltip";
$files = explode(", ", $tests);

$outScript = "";

$out  = "<!doctype html>\n<html>\n<head>\n<title>Tests</title>\n";
$out .= "<link rel=\"stylesheet\" type=\"text/css\" href=\"../php/packer.php?type=css\">\n";
$out .=	"<link href=\"../libs/css/qunit.css\" rel=\"stylesheet\">\n";
$out .= "<script src=\"../libs/js/jquery.js\"></script>\n";
$out .= "<script src=\"../libs/js/qunit.js\"></script>\n";
$out .= "<script src=\"../php/packer.php\"></script>\n";
$out .= "<script src=\"functions.js\"></script>\n";
$out .= "</head>\n";
$out .= "<body>\n";
$out .= "<h1>Chico-UI Unit Tests Packer-o-matic</h1>\n";
$out .= "<h3>version ".$version." by ".$autor."</h3>\n";
$out .= "<hr />\n";
$out .= "<h1 id=\"qunit-header\">QUnit Test Suite</h1>\n<h2 id=\"qunit-banner\"></h2>\n<div id=\"qunit-testrunner-toolbar\"></div>\n<h2 id=\"qunit-userAgent\"></h2>\n<ol id=\"qunit-tests\"></ol>\n<div id=\"qunit-fixture\">test markup</div>\n";

foreach ($files as $file) {
    	
	$html = file_get_contents("../tests/".$file.".html");

	$html = explode("<!-- #body -->", $html);
	$body = explode("<!-- #script -->", $html[1]);	
    $script = explode("<!-- #script -->", $html[2]);
    $script = explode("</body>", $script[1]);
    
    $out .= "<!-- ". $file ." -->";
	$out .= $body[0];
	$outScript .= $script[0];
}

$out .= $outScript;
$out .= "</body>\n</html>";

echo $out;



?>

{'fraction_non_alphanumeric': 0.31283582089552237, 'fraction_numerical': 0.010149253731343283, 'mean_word_length': 3.1066176470588234, 'pattern_counts': {'":': 0, '<': 93, '<?xml version=': 0, '>': 93, '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': '6462356', 'n_tokens_mistral': 1300, 'n_tokens_neox': 1295, 'n_words': 231}