<commit_before><?php
/**
 * User: <NAME>
 * Date: 13-Apr-17
 * Time: 21:47
 * Installation script for concert-tracker.  My first attempt at writing one,
 * so it's probably not that great.
 */
require_once '_functions.php';
check_install();

// run the config
if (isset($_POST['install'])) {
    // Store POST data for easier access
    $dbms     = $_POST['dbms'];
    $hostname = $_POST['hostname'];
    $database = $_POST['database'];
    $username = $_POST['username'];
    $password = $_POST['password'];
    $mail_to  = $_POST['mailto'];<commit_msg>Fix issue where install could not run<commit_after><?php
/**
 * User: <NAME>
 * Date: 13-Apr-17
 * Time: 21:47
 * Installation script for concert-tracker.  My first attempt at writing one,
 * so it's probably not that great.
 */

// check if it's already been run
if (file_exists("config.php")) {
    die("Concert Tracker has already been installed. Delete config.php to reinstall.");
}

// run the config
if (isset($_POST['install'])) {
    // Store POST data for easier access
    $dbms     = $_POST['dbms'];
    $hostname = $_POST['hostname'];
    $database = $_POST['database'];
    $username = $_POST['username'];
    $password = $_POST['password'];
    $mail_to  = $_POST['mailto'];
{'fraction_non_alphanumeric': 0.16666666666666666, 'fraction_numerical': 0.01288244766505636, 'mean_word_length': 3.620817843866171, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 5, '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': '3159285', 'n_tokens_mistral': 397, 'n_tokens_neox': 385, 'n_words': 118}