<commit_before><?php if ( !defined('SIMIAN_INSTALLER') ) exit('No direct script access allowed');

    define("BASEPATH", str_replace("\\", "/", realpath(dirname(__FILE__)) . '/'));
    
    define("INSTALL_LOCK_FILE", getcwd() . "/config/InstallerFinished_" . str_replace(' ', '_', INSTALLER_PROJECT) );
<commit_msg>Finish daefcb8: put installer lock file in correct dir for frontend.<commit_after><?php if ( !defined('SIMIAN_INSTALLER') ) exit('No direct script access allowed');

    define("BASEPATH", str_replace("\\", "/", realpath(dirname(__FILE__)) . '/'));

    $cwd = getcwd();
    if ( is_dir($cwd . "/config") ) {
        $lockfile_base_dir = $cwd . "/config";
    } elseif ( is_dir($cwd . "/application/config") ) {
        $lockfile_base_dir = $cwd . "/application/config";
    }
    
    define("INSTALL_LOCK_FILE", $lockfile_base_dir . "/InstallerFinished_" . str_replace(' ', '_', INSTALLER_PROJECT) );

{'fraction_non_alphanumeric': 0.18804347826086956, 'fraction_numerical': 0.0010869565217391304, 'mean_word_length': 4.088397790055248, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 3, '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': '6572697', 'n_tokens_mistral': 310, 'n_tokens_neox': 299, 'n_words': 56}