<commit_before><commit_msg>adding required files<commit_after><?php
/**
* Loops through all plugin tests
* Adapted from wordpress-tests/all.php
* @package wordpress-plugin-tests
*
* Usage: Place any tests you'd like to run in the same folder as this file
* (usually /tests/ within your plugin repo), and name each file in the
* form of `test_{name_of_test}.php`. Within each file, include a single
* class in the form of `WP_Test_{name_of_test}. The class should extend
* the base class `WP_UnitTestCase`. All tests will be automatically run.
*
*/
require_once 'PHPUnit/Autoload.php';

$tests_dir = dirname( __FILE__ );
$old_cwd = getcwd();
chdir( $tests_dir );

for( $depth = 0; $depth <= 3; $depth++ ) {
foreach( glob( str_repeat( 'tests[_-]*/', $depth ) . 'test_*.php' ) as $test_file ) {
include_once $test_file;
}
}

class all {
    public static function suite() {
        $suite = new PHPUnit_Framework_TestSuite();
foreach( get_declared_classes() as $class ) {
if ( preg_match( '/^WP_Test_/', $class ) ) {
$suite->addTestSuite( $class );
}
}
        return $suite;
    }
}

chdir( $old_cwd );
{'fraction_non_alphanumeric': 0.1390909090909091, 'fraction_numerical': 0.0018181818181818182, 'mean_word_length': 4.242857142857143, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 4, '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': '1247997', 'n_tokens_mistral': 376, 'n_tokens_neox': 370, 'n_words': 117}