<commit_before><?php


/**
 * Facade to quickly check if version requirements are met.
 *
 * @param array $requirements The requirements to check.
 */
function CheckVersions( $requirements ) {
	// Only show for admin users.
	if ( ! current_user_can( 'manage_options' ) || ! is_array( $requirements ) ) {
		return;
 	}

 	$config  = include_once '../configs/default.php';
	$checker = new Whip_RequirementsChecker( $config );

	foreach ( $requirements as $component => $version ) {
		$checker->addRequirement( new Whip_VersionRequirement( $component, $version ) );
	}<commit_msg>Reference config relative to current file<commit_after><?php


/**
 * Facade to quickly check if version requirements are met.
 *
 * @param array $requirements The requirements to check.
 */
function CheckVersions( $requirements ) {
	// Only show for admin users.
	if ( ! current_user_can( 'manage_options' ) || ! is_array( $requirements ) ) {
		return;
	}

	$config  = include_once dirname( __FILE__ ) . '/../configs/default.php';
	$checker = new Whip_RequirementsChecker( $config );

	foreach ( $requirements as $component => $version ) {
		$checker->addRequirement( new Whip_VersionRequirement( $component, $version ) );
	}
{'fraction_non_alphanumeric': 0.12967581047381546, 'fraction_numerical': 0.0, 'mean_word_length': 4.280701754385965, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 7, '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': '5417348', 'n_tokens_mistral': 379, 'n_tokens_neox': 367, 'n_words': 103}