<commit_before><?php
try {
    require_once('../global_functions.php');
    require_once('../connections/parameters.php');

    if (!isset($_SESSION)) {
        session_start();
    }

    checkLogin_v2();

    if (!empty($_SESSION['user_id64']) && !empty($_SESSION['isAdmin'])) {
        $db = new dbWrapper($hostname_gds_site, $username_gds_site, $password_gds_site, $database_gds_site, true);
        if ($db) {
            $reports = $db->q(
                "SELECT * FROM `reports_csp` ORDER BY `reportDate` DESC LIMIT 0,100;"
            );

            if (!empty($reports)) {
                echo '<h2>CSP Reports (Last 100)</h2>';

                foreach ($reports as $key => $value) {
                    $reportIP = empty($value['reportIP'])
                        ? ''
                        : " - " . $value['reportIP'];

                    echo relative_time($value['reportDate']) . $reportIP . "<br />";

                    echo '<pre>';

                    $reportContect = json_decode($value['reportContent'], 1);
                    unset($reportContect['csp-report']['original-policy']);

                    echo print_r($reportContect['csp-report']);

                    echo '<br /><br />';

                    $reportHeaders = json_decode($value['reportHeaders'], 1);
                    echo print_r($reportHeaders);

                    echo '</pre>';

                    echo "<hr />";

                    echo '<p><a class="nav-clickable" href="#admin/">Back to Admin Panel</a></p>';
                }
            } else {
                echo bootstrapMessage('Oh Snap', 'No reports!', 'danger');
            }
        } else {
            echo bootstrapMessage('Oh Snap', 'No DB!', 'danger');
        }
    } else {
        echo bootstrapMessage('Oh Snap', 'Not logged in or not admin!', 'danger');
    }
} catch (Exception $e) {
    echo $e->getMessage();
}
<commit_msg>Link in wrong spot<commit_after><?php
try {
    require_once('../global_functions.php');
    require_once('../connections/parameters.php');

    if (!isset($_SESSION)) {
        session_start();
    }

    checkLogin_v2();

    if (!empty($_SESSION['user_id64']) && !empty($_SESSION['isAdmin'])) {
        $db = new dbWrapper($hostname_gds_site, $username_gds_site, $password_gds_site, $database_gds_site, true);
        if ($db) {
            $reports = $db->q(
                "SELECT * FROM `reports_csp` ORDER BY `reportDate` DESC LIMIT 0,100;"
            );

            if (!empty($reports)) {
                echo '<h2>CSP Reports (Last 100)</h2>';

                foreach ($reports as $key => $value) {
                    $reportIP = empty($value['reportIP'])
                        ? ''
                        : " - " . $value['reportIP'];

                    echo relative_time($value['reportDate']) . $reportIP . "<br />";

                    echo '<pre>';

                    $reportContect = json_decode($value['reportContent'], 1);
                    unset($reportContect['csp-report']['original-policy']);

                    echo print_r($reportContect['csp-report']);

                    echo '<br /><br />';

                    $reportHeaders = json_decode($value['reportHeaders'], 1);
                    echo print_r($reportHeaders);

                    echo '</pre>';

                    echo "<hr />";
                }

                echo '<p><a class="nav-clickable" href="#admin/">Back to Admin Panel</a></p>';
            } else {
                echo bootstrapMessage('Oh Snap', 'No reports!', 'danger');
            }
        } else {
            echo bootstrapMessage('Oh Snap', 'No DB!', 'danger');
        }
    } else {
        echo bootstrapMessage('Oh Snap', 'Not logged in or not admin!', 'danger');
    }
} catch (Exception $e) {
    echo $e->getMessage();
}

{'fraction_non_alphanumeric': 0.1638314577335776, 'fraction_numerical': 0.007327924627060979, 'mean_word_length': 1.6764705882352942, 'pattern_counts': {'":': 0, '<': 29, '<?xml version=': 0, '>': 33, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 2, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '4375748', 'n_tokens_mistral': 1128, 'n_tokens_neox': 1017, 'n_words': 217}