<commit_before><?php
class AdminDirectoryPage extends Page {

    public function __construct($trigger, $core) {
        parent::__construct($trigger, $core);
    }

    public function writePageContent() {
        global $core;
        $content = 
'
</div>
<div class="container" style="position: relative;">
<div id="alertbox"></div>
</div>
<div class="container" style="margin-top: 55px;">
<div class="jumbotron">
<h1 style="text-decoration:underline;cursor:progress" onclick="countfrcftc(5,6)">Team Directory</h1>
<table class="table table-hover" style="text-align: left; font-size: medium;">
<thead></tr><th>Name</th>
<th>StudentID</th>
<th style="text-decoration:underline;cursor:progress" onclick="report(2,\'School\')">School</th>
<th style="text-decoration:underline;cursor:progress" onclick="report(3,\'Grade\')">Grade</th>
<th style="text-decoration:underline;cursor:progress" onclick="report(4,\'Ethnicity\')">Ethnicity</th>
<th style="text-decoration:underline;cursor:progress" onclick="toggle(5)">FRC</th>
<th style="text-decoration:underline;cursor:progress" onclick="toggle(6)">FTC</th>
'. ($core->getUser($_SESSION['email'])['rank'] == 10 ? '<th>Rank</th>' : '') .'
</tr></thead><tbody>
' . self::getDirectoryTable($core->getUser($_SESSION['email'])['rank']) . '
</tbody></table>
</div>
';
        $script =
'<script src="assets/js/admindirectory.js"></script>
<script src="assets/js/reports.js"></script>';
        echo $content, $script;
    }

    public function getDirectoryTable($rank) {
        global $core;
        $tableStr = "";
        $teamArr = $core->fetchAllUsersNotMentors();
        foreach ($teamArr as $member) {<commit_msg>Fix Admin Directory page<commit_after><?php
class AdminDirectoryPage extends Page {

    public function __construct($trigger, $core) {
        parent::__construct($trigger, $core);
    }

    public function writePageContent() {
        global $core;

?>

<div class="container" style="position: relative;">
    <div id="alertbox"></div>
</div>

<div class="container" style="margin-top: 55px;">
    <div class="jumbotron">
        <h1 style="text-decoration:underline;cursor:progress" onclick="countfrcftc(5,6)">Team Directory</h1>
        <table class="table table-hover" style="text-align: left; font-size: medium;">
            <thead>
                <tr>
                    <th>Name</th>
                    <th>StudentID</th>
                    <th style="text-decoration:underline;cursor:progress" onclick="report(2,\'School\')">School</th>
                    <th style="text-decoration:underline;cursor:progress" onclick="report(3,\'Grade\')">Grade</th>
                    <th style="text-decoration:underline;cursor:progress" onclick="report(4,\'Ethnicity\')">Ethnicity</th>
                    <th style="text-decoration:underline;cursor:progress" onclick="toggle(5)">FRC</th>
                    <th style="text-decoration:underline;cursor:progress" onclick="toggle(6)">FTC</th>
                    <?php ($core->getUser($_SESSION['email'])['rank'] == 10 ? '<th>Rank</th>' : ''); ?>
                </tr>
            </thead>
            <tbody>
                <?php self::getDirectoryTable($core->getUser($_SESSION['email'])['rank']); ?>
            </tbody>
        </table>
    </div>
</div>
    
<script src="assets/js/admindirectory.js"></script>
<script src="assets/js/reports.js"></script>

<?php

    }

    public function getDirectoryTable($rank) {
        global $core;
        $tableStr = "";
        $teamArr = $core->fetchAllUsersNotMentors();
        foreach ($teamArr as $member) {
{'fraction_non_alphanumeric': 0.19155480984340045, 'fraction_numerical': 0.00727069351230425, 'mean_word_length': 3.585897435897436, 'pattern_counts': {'":': 0, '<': 84, '<?xml version=': 0, '>': 88, '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': '661258', 'n_tokens_mistral': 1142, 'n_tokens_neox': 1070, 'n_words': 178}