<commit_before><?php

if (!defined('HTMLPurifierTest')) exit;

// define callable test files (sorted alphabetically)

if (!$AC['only-phpt']) {
    
    // HTML Purifier main library
    $test_dirs[] = 'HTMLPurifier';
    $test_files[] = 'HTMLPurifierTest.php';
    
    $test_dirs_exclude['HTMLPurifier/Filter/ExtractStyleBlocksTest.php'] = true;
    if ($csstidy_location) {
      $test_files[] = 'HTMLPurifier/Filter/ExtractStyleBlocksTest.php';
    }
    
    // ConfigSchema Validator tests
    $vtest_dirs[] = 'HTMLPurifier/ConfigSchema/Validator';
    
    // ConfigDoc auxiliary library
    if (version_compare(PHP_VERSION, '5.2', '>=')) {
        $test_dirs[] = 'ConfigDoc';
    }
    
    // FSTools auxiliary library
    $test_dirs[] = 'FSTools';
    
}

// PHPT tests
if (!$AC['disable-phpt']) {
    $phpt_dirs[] = 'HTMLPurifier/PHPT';
}<commit_msg>Automatically disable PHPT if version of PHP isn't supported.<commit_after><?php

if (!defined('HTMLPurifierTest')) exit;

// define callable test files (sorted alphabetically)

if (!$AC['only-phpt']) {
    
    // HTML Purifier main library
    $test_dirs[] = 'HTMLPurifier';
    $test_files[] = 'HTMLPurifierTest.php';
    
    $test_dirs_exclude['HTMLPurifier/Filter/ExtractStyleBlocksTest.php'] = true;
    if ($csstidy_location) {
      $test_files[] = 'HTMLPurifier/Filter/ExtractStyleBlocksTest.php';
    }
    
    // ConfigSchema Validator tests
    $vtest_dirs[] = 'HTMLPurifier/ConfigSchema/Validator';
    
    // ConfigDoc auxiliary library
    if (version_compare(PHP_VERSION, '5.2', '>=')) {
        $test_dirs[] = 'ConfigDoc';
    }
    
    // FSTools auxiliary library
    $test_dirs[] = 'FSTools';
    
}

// PHPT tests
if (!$AC['disable-phpt'] && version_compare(PHP_VERSION, '5.2', '>=')) {
    $phpt_dirs[] = 'HTMLPurifier/PHPT';
}
{'fraction_non_alphanumeric': 0.1571980143408715, 'fraction_numerical': 0.003309431880860452, 'mean_word_length': 3.3501199040767387, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 6, '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': '74645', 'n_tokens_mistral': 641, 'n_tokens_neox': 628, 'n_words': 110}