<commit_before><?php

require_once('common.php');

// Context Menu
$context_menu = file_get_contents(COMPONENTS . "/filemanager/context_menu.json");
$context_menu = json_decode($context_menu,true);

// Right Bar
$right_bar = file_get_contents(COMPONENTS . "/right_bar.json");
$right_bar = json_decode($right_bar,true);

// Components
$components = file_get_contents(COMPONENTS . "/load.json");
$components = json_decode($components,true);

?>
<!doctype html>

<head>
    <meta charset="utf-8">
    <title>CODIAD</title>
    <?php
    // Load System CSS Files
    $stylesheets = array("jquery.toastmessage.css","reset.css","fonts.css","screen.css");
    foreach($stylesheets as $sheet){
        if(file_exists(THEMES . "/". THEME . "/".$sheet)){
            echo('<link rel="stylesheet" href="themes/'.THEME.'/'.$sheet.'">');
        } else {<commit_msg>Added check to prevent theme failure if using legacy config.php file without THEME def's<commit_after><?php

require_once('common.php');

// Context Menu
$context_menu = file_get_contents(COMPONENTS . "/filemanager/context_menu.json");
$context_menu = json_decode($context_menu,true);

// Right Bar
$right_bar = file_get_contents(COMPONENTS . "/right_bar.json");
$right_bar = json_decode($right_bar,true);

// Components
$components = file_get_contents(COMPONENTS . "/load.json");
$components = json_decode($components,true);

?>
<!doctype html>

<head>
    <meta charset="utf-8">
    <title>CODIAD</title>
    <?php
    // Load System CSS Files
    $stylesheets = array("jquery.toastmessage.css","reset.css","fonts.css","screen.css");
    // Ensure theme vars are present (upgrade with legacy config.php)
    if(!defined(THEMES) || !defined(THEME)){
        define("THEMES", BASE_PATH . "/themes");
        define("THEME", "default");
    }
    // Loop
    foreach($stylesheets as $sheet){
        if(file_exists(THEMES . "/". THEME . "/".$sheet)){
            echo('<link rel="stylesheet" href="themes/'.THEME.'/'.$sheet.'">');
        } else {
{'fraction_non_alphanumeric': 0.17858929464732365, 'fraction_numerical': 0.0010005002501250625, 'mean_word_length': 4.05050505050505, 'pattern_counts': {'":': 0, '<': 19, '<?xml version=': 0, '>': 17, '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': '6378407', 'n_tokens_mistral': 668, 'n_tokens_neox': 650, 'n_words': 120}