<commit_before><?php

/**
 * Plugin Name: Digster
 * Description: Twig templates for WordPress
 * Author: <NAME>
 * Author URI: https://forsmo.me/
 * Plugin URI: https://github.com/frozzare/digster
 * Text Domain: digster
 * Version: 1.0.0
 */

// Make sure the plugin does not expose any info if called directly
defined( 'ABSPATH' ) || exit;

// Framework requires PHP 5.4 or newer
if ( version_compare( PHP_VERSION, '5.4.0', '<' ) ) {
    exit( 'The Digster plugin for WordPress requires PHP version 5.4 or higher.' );
}

if ( ! defined( 'WP_AUTOLOAD_PREFIX' ) ) {
    define( 'WP_AUTOLOAD_PREFIX', 'Digster\\' );
}

if ( ! defined( 'WP_AUTOLOAD_BASE_DIR' ) ) {
    define( 'WP_AUTOLOAD_BASE_DIR', __DIR__ . '/src' );
}

// Load Composer autoloader.
require 'vendor/autoload.php';

/**
 * Load Digster plugin.
 *
 * @return \Digster\Plugin_Loader
 */

add_action( 'plugins_loaded', function () {
    return \Digster\Plugin_Loader::instance();
} );
<commit_msg>Only load composer if it exists<commit_after><?php

/**
 * Plugin Name: Digster
 * Description: Twig templates for WordPress
 * Author: <NAME>
 * Author URI: https://forsmo.me/
 * Plugin URI: https://github.com/frozzare/digster
 * Text Domain: digster
 * Version: 1.0.0
 */

// Make sure the plugin does not expose any info if called directly
defined( 'ABSPATH' ) || exit;

// Framework requires PHP 5.4 or newer
if ( version_compare( PHP_VERSION, '5.4.0', '<' ) ) {
    exit( 'The Digster plugin for WordPress requires PHP version 5.4 or higher.' );
}

if ( ! defined( 'WP_AUTOLOAD_PREFIX' ) ) {
    define( 'WP_AUTOLOAD_PREFIX', 'Digster\\' );
}

if ( ! defined( 'WP_AUTOLOAD_BASE_DIR' ) ) {
    define( 'WP_AUTOLOAD_BASE_DIR', __DIR__ . '/src' );
}

// Load Composer autoloader.
if ( file_exists( __DIR__ . '/vendor/autoload.php' ) ) {
    require __DIR__ . '/vendor/autoload.php';
}

/**
 * Load Digster plugin.
 *
 * @return \Digster\Plugin_Loader
 */

add_action( 'plugins_loaded', function () {
    return \Digster\Plugin_Loader::instance();
} );

{'fraction_non_alphanumeric': 0.15376984126984128, 'fraction_numerical': 0.00992063492063492, 'mean_word_length': 3.584090909090909, 'pattern_counts': {'":': 0, '<': 9, '<?xml version=': 0, '>': 5, 'https://': 4, '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': '1911418', 'n_tokens_mistral': 708, 'n_tokens_neox': 707, 'n_words': 184}