<commit_before><?php
require_once "../../config.php";
require_once $CFG->dirroot."/pdo.php";
require_once $CFG->dirroot."/lib/lms_lib.php";

use \Tsugi\Core\Settings;
use \Tsugi\Core\LTIX;
use \Tsugi\UI\SettingsForm;

$LTI = LTIX::requireData();
$p = $CFG->dbprefix;

if ( SettingsForm::handleSettingsPost() ) {
    header( 'Location: '.addSession('index.php') ) ;
    return;
}

// All the assignments we support
$assignments = array(
    'a01.php' => 'Single Table MySQL',
    'single_lite.php' => 'Single Table SQLITE (Users)',
    'count_lite.php' => 'Email Counter SQLITE',
    'many_one_lite.php' => 'Many-to-One SQLITE (Email)',
    'many_many_lite.php' => 'Many-to-Many SQLITE (Courses)',
);

$oldsettings = Settings::linkGetAll();<commit_msg>Tweaks<commit_after><?php
require_once "../../config.php";
require_once $CFG->dirroot."/pdo.php";
require_once $CFG->dirroot."/lib/lms_lib.php";

use \Tsugi\Core\Settings;
use \Tsugi\Core\LTIX;
use \Tsugi\UI\SettingsForm;

$LTI = LTIX::requireData();
$p = $CFG->dbprefix;

if ( SettingsForm::handleSettingsPost() ) {
    header( 'Location: '.addSession('index.php') ) ;
    return;
}

// All the assignments we support
$assignments = array(
    'a01.php' => 'Single Table MySQL',
    'single_lite.php' => 'Single Table SQLITE (Users)',
    'count_lite.php' => 'Email Counter SQLITE',
    'many_one_lite.php' => 'Many-to-One SQLITE (Tracks)',
    'many_many_lite.php' => 'Many-to-Many SQLITE (Courses)',
);

$oldsettings = Settings::linkGetAll();
{'fraction_non_alphanumeric': 0.1925133689839572, 'fraction_numerical': 0.00267379679144385, 'mean_word_length': 4.289752650176679, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 19, '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': '6238792', 'n_tokens_mistral': 572, 'n_tokens_neox': 551, 'n_words': 105}