<commit_before><?php

define( 'CFT_PLUGIN_DIR', realpath(__DIR__.'/../') );

require_once 'vendor/autoload.php';
require_once 'lib/Cft/Plugin.php';

spl_autoload_register(function($className) {
  $components = explode('\\', $className);

  if( array_shift($components) == 'CftTest' ) {
    $file = 'test/test-lib/' . implode('/', $components) . '.php';

    if( file_exists($file) ) {
      require $file;
    }
  }
});


?><commit_msg>correct CFT_PLUGIN_DIR in test bootstrap<commit_after><?php

define( 'CFT_PLUGIN_DIR', realpath(__DIR__.'/../') . '/' );

require_once 'vendor/autoload.php';
require_once 'lib/Cft/Plugin.php';

spl_autoload_register(function($className) {
  $components = explode('\\', $className);

  if( array_shift($components) == 'CftTest' ) {
    $file = 'test/test-lib/' . implode('/', $components) . '.php';

    if( file_exists($file) ) {
      require $file;
    }
  }
});


?>
{'fraction_non_alphanumeric': 0.20773480662983426, 'fraction_numerical': 0.0, 'mean_word_length': 3.8972972972972975, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, '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': '2533088', 'n_tokens_mistral': 340, 'n_tokens_neox': 334, 'n_words': 52}