<commit_before><?php

/**
 * A class to perform several 'low level' checks. Since we're doing it (by design)
 * _before_ the autoloader gets initialized, we can't use autoloading.
 */
class lowlevelchecks
{

    /**
     * Perform the checks.
     */
    public function doChecks()
    {

        // Bolt requires PHP 5.3.3 or higher.
        if (!checkVersion(phpversion(), "5.3.3")) {
            $this->lowlevelError("Bolt requires PHP <u>5.3.3</u> or higher. You have PHP <u>". phpversion(). "</u>, so Bolt will not run on your current setup.");
        }

        // Check if the vendor folder is present. If not, this is most likely because
        // the user checked out the repo from Git, without running composer.
        if (!file_exists(__DIR__.'/../../vendor/autoload.php')) {
            $this->lowlevelError("The file <code>vendor/autoload.php</code> doesn't exist. Make sure " .
                "you've installed the Silex/Bolt components with Composer.");
        }

        // Check if the app/cache file is present and writable
        if (!file_exists(__DIR__.'/../cache')) {
            $this->lowlevelError("The folder <code>app/cache/</code> doesn't exist. Make sure it's " .
                "present and writable to the user that the webserver is using.");
        }

        if (!is_writable(__DIR__.'/../cache')) {
            $this->lowlevelError("The folder <code>app/cache/</code> isn't writable. Make sure it's " .
                "present and writable to the user that the webserver is using.");
        }
<commit_msg>Modified check for min PHP to 5.3.2.<commit_after><?php

/**
 * A class to perform several 'low level' checks. Since we're doing it (by design)
 * _before_ the autoloader gets initialized, we can't use autoloading.
 */
class lowlevelchecks
{

    /**
     * Perform the checks.
     */
    public function doChecks()
    {

        // Bolt requires PHP 5.3.2 or higher.
        if (!checkVersion(phpversion(), "5.3.2")) {
            $this->lowlevelError("Bolt requires PHP <u>5.3.2</u> or higher. You have PHP <u>". phpversion(). "</u>, so Bolt will not run on your current setup.");
        }

        // Check if the vendor folder is present. If not, this is most likely because
        // the user checked out the repo from Git, without running composer.
        if (!file_exists(__DIR__.'/../../vendor/autoload.php')) {
            $this->lowlevelError("The file <code>vendor/autoload.php</code> doesn't exist. Make sure " .
                "you've installed the Silex/Bolt components with Composer.");
        }

        // Check if the app/cache file is present and writable
        if (!file_exists(__DIR__.'/../cache')) {
            $this->lowlevelError("The folder <code>app/cache/</code> doesn't exist. Make sure it's " .
                "present and writable to the user that the webserver is using.");
        }

        if (!is_writable(__DIR__.'/../cache')) {
            $this->lowlevelError("The folder <code>app/cache/</code> isn't writable. Make sure it's " .
                "present and writable to the user that the webserver is using.");
        }

{'fraction_non_alphanumeric': 0.13232938160845883, 'fraction_numerical': 0.0067286126241589235, 'mean_word_length': 2.2318840579710146, 'pattern_counts': {'":': 0, '<': 25, '<?xml version=': 0, '>': 31, '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': '6514579', 'n_tokens_mistral': 926, 'n_tokens_neox': 890, 'n_words': 314}