<commit_before><?php defined('BASEPATH') OR exit('No direct script access allowed'); ?>
<!DOCTYPE html>
<html lang="en">
<head>
    <title><?= CI_title() ?></title>
    <link rel="shortcut icon" type="image/icon" href="<?php echo base_url(); ?>assets/images/favicon.ico"/>
    <?= CI_head() ?>
</head>
<body<?= CI_body_attr() ?>>
<div id="wrapper">


    <nav class="navbar-default navbar-static-side" role="navigation">
        <div class="sidebar-collapse">
            <ul class="nav metismenu" id="side-menu">
                <li class="upperspace">
                </li>

                <!--Commercial Utilities menu-->
                <li class="<?= ($this->uri->segment(1) === 'dashboard') ? 'active' : '' ?>">
                    <a href="<?php echo base_url(); ?>dashboard"><i class="fa fa-desktop"></i> <span class="nav-label">Home</span></a>
                </li>
                <li class="<?= ($this->uri->segment(1) === 'utility') ? 'active' : '' ?>">
                    <a href="#"><i class="fa fa-th-large"></i> <span class="nav-label">Commercial Utilities</span><span
                            class="fa arrow"></span></a>
                    <ul class="nav nav-second-level collapse" style="height: 0px;">
                        <?php if($this->ion_auth->is_admin()): ?>
                            <li class="<?= ($this->uri->segment(1) === 'utility' && $this->uri->segment(2) == NULL) ? 'active' : '' ?>">
                                <a href="<?php echo base_url() . "utility"; ?>">Manage Utilities</a>
                            </li>
                        <?php endif; ?>

                        <?php if (count($utilities) > 0): ?>
                            <?php foreach ($utilities as $utility): ?>
                                <?php if($utility->getInspectorId() == $this->session->userdata('user_id') || $this->ion_auth->is_admin()): ?>
                                    <li class="<?= ($this->uri->segment(3) === '' . $utility->getId() . '') ? 'active' : '' ?>">
                                        <a href="<?= base_url().'utility/show/'.$utility->getId(); ?>">
                                            <?= $utility->getName(); ?>
                                        </a>
                                    </li>
                                <?php endif; ?>
                            <?php endforeach; ?>
                        <?php else: ?>
                            No Utilities
                        <?php endif; ?>
                    </ul>
                </li>
                <!--End: Commercial Utilities menu-->

                <!--Indicators menu-->
                <li class="<?= ($this->uri->segment(1) === 'indicator') ? 'active' : '' ?>">
                    <a href="#"><i class="fa fa-bar-chart-o"></i> <span class="nav-label">Indicators</span><span
                            class="fa arrow"></span></a>
                    <ul class="nav nav-second-level collapse" style="height: 0px;">
                        <?php if($this->ion_auth->is_admin()): ?>
                            <li class="<?= ($this->uri->segment(1) === 'indicator' && $this->uri->segment(2) == NULL) ? 'active' : '' ?>">
                                <a href="<?php echo base_url() . "indicator"; ?>">Manage Indicators</a>
                            </li>
                        <?php endif; ?>
                        <?php if (count($indicators) > 0): ?>
                            <?php foreach ($indicators as $indicator): ?>
                                <li class="<?= ($this->uri->segment(3) === '' .$indicator->getId(). '') ? 'active' : '' ?>"
                                    title="<?= ($indicator->getKind() == 'UTILITY') ? 'Commercial Utility: '.$indicator->getDescription(): 'Private Scheme: '.$indicator->getDescription(); ?>">
                                    <a href="<?php
                                                if ($indicator->getKind() == 'UTILITY') {
                                                    echo base_url().'indicator/show_utility/'.$indicator->getId(); ?>
                                                <?php } elseif ($indicator->getKind() == 'SCHEME') { ?>
                                                    <?php echo base_url().'indicator/show_scheme/'.$indicator->getId(); ?>
                                                <?php } ?>
                                                "><?= $indicator->getName();
                                            ?>
                                    </a>
                                </li>
                            <?php endforeach; ?>
                        <?php else: ?>
                            No Indicators
                        <?php endif; ?>
                    </ul>
                </li>
                <!--End: Indicators menu-->

                <!--Private Schemes menu-->
                <li class="<?= ($this->uri->segment(1) === 'scheme') ? 'active' : '' ?>">
                    <a href="#"><i class="fa fa-user"></i> <span class="nav-label">Private Schemes</span><span
                            class="fa arrow"></span></a>
                    <ul class="nav nav-second-level collapse" style="height: 0px;">
                        <?php if($this->ion_auth->is_admin()): ?>
                            <li class="<?= ($this->uri->segment(1) === 'scheme' && $this->uri->segment(2) == NULL) ? 'active' : '' ?>">
                                <a href="<?php echo base_url() . "scheme"; ?>">Manage Schemes</a>
                            </li>
                        <?php endif; ?>
                        <?php if (count($schemes) > 0): ?>
                            <?php foreach ($schemes as $scheme): ?>
                                <?php if($scheme->getInspectorId() == $this->session->userdata('user_id') || $this->ion_auth->is_admin()): ?>
                                    <li class="<?= ($this->uri->segment(3) === '' . $scheme->getId() . '') ? 'active' : '' ?>">
                                        <a href="<?= base_url().'scheme/show/'.$scheme->getId(); ?>">
                                            <?= $scheme->getName(); ?>
                                        </a>
                                    </li>
                                <?php endif; ?>
                            <?php endforeach; ?>
                        <?php else: ?>
                            <p>No schemes</p>
                        <?php endif; ?>
                    </ul>
                </li>
                <!--End: Private Schemes menu-->

                <!--User management-->
                <li class="<?= ($this->uri->segment(1) === 'auth') ? 'active' : '' ?>">
                    <a href="<?php echo base_url().'auth/'; ?>"><i class="fa fa-users"></i>
                        <?php if ($this->ion_auth->is_admin()): ?>
                            <span class="nav-label">Manage Users</span>
                        <?php else: ?>
                            <span class="nav-label">Manage Account</span>
                        <?php endif; ?>
                    </a>
                </li>
                <!--End: User management-->

                <!--Archives: Commercial Utilities-->
                <li class="<?= ($this->uri->segment(1) === 'utility_archives') ? 'active' : '' ?>">
                    <a href="#"><i class="fa fa-archive"></i> <span class="nav-label">Archives: Utilities</span><span
                            class="fa arrow"></span></a>
                    <ul class="nav nav-second-level collapse" style="height: 0px;">
                        <?php if (count($utilities) > 0): ?>
                            <?php foreach ($utilities as $utility): ?>
                                <?php if($utility->getInspectorId() == $this->session->userdata('user_id') || $this->ion_auth->is_admin()): ?>
                                    <li class="<?= ($this->uri->segment(3) === '' . $utility->getId() . '') ? 'active' : '' ?>">
                                        <a href="<?= base_url().'utility_archives/show/'.$utility->getId(); ?>">
                                            <?= $utility->getName(); ?>
                                        </a>
                                    </li>
                                <?php endif; ?>
                            <?php endforeach; ?>
                        <?php else: ?>
                            No Utilities
                        <?php endif; ?>
                    </ul>
                </li>
                <!--End: Archive: Commercial Utilities-->

                <!--Archives: Private Schemes-->
                <li class="<?= ($this->uri->segment(1) === 'scheme_archives') ? 'active' : '' ?>">
                    <a href="#"><i class="fa fa-archive"></i> <span class="nav-label">Archives: Schemes</span><span
                            class="fa arrow"></span></a>
                    <ul class="nav nav-second-level collapse" style="height: 0px;">
                        <?php if (count($schemes) > 0): ?>
                            <?php foreach ($schemes as $scheme): ?>
                                <?php if($scheme->getInspectorId() == $this->session->userdata('user_id') || $this->ion_auth->is_admin()): ?>
                                    <li class="<?= ($this->uri->segment(3) === '' . $scheme->getId() . '') ? 'active' : '' ?>">
                                        <a href="<?= base_url().'scheme_archives/show/'.$scheme->getId(); ?>">
                                            <?= $scheme->getName(); ?>
                                        </a>
                                    </li>
                                <?php endif; ?>
                            <?php endforeach; ?>
                        <?php else: ?>
                            No schemes
                        <?php endif; ?>
                    </ul>
                </li><commit_msg>Makes archives visible to all users<commit_after><?php defined('BASEPATH') OR exit('No direct script access allowed'); ?>
<!DOCTYPE html>
<html lang="en">
<head>
    <title><?= CI_title() ?></title>
    <link rel="shortcut icon" type="image/icon" href="<?php echo base_url(); ?>assets/images/favicon.ico"/>
    <?= CI_head() ?>
</head>
<body<?= CI_body_attr() ?>>
<div id="wrapper">


    <nav class="navbar-default navbar-static-side" role="navigation">
        <div class="sidebar-collapse">
            <ul class="nav metismenu" id="side-menu">
                <li class="upperspace">
                </li>

                <!--Commercial Utilities menu-->
                <li class="<?= ($this->uri->segment(1) === 'dashboard') ? 'active' : '' ?>">
                    <a href="<?php echo base_url(); ?>dashboard"><i class="fa fa-desktop"></i> <span class="nav-label">Home</span></a>
                </li>
                <li class="<?= ($this->uri->segment(1) === 'utility') ? 'active' : '' ?>">
                    <a href="#"><i class="fa fa-th-large"></i> <span class="nav-label">Commercial Utilities</span><span
                            class="fa arrow"></span></a>
                    <ul class="nav nav-second-level collapse" style="height: 0px;">
                        <?php if($this->ion_auth->is_admin()): ?>
                            <li class="<?= ($this->uri->segment(1) === 'utility' && $this->uri->segment(2) == NULL) ? 'active' : '' ?>">
                                <a href="<?php echo base_url() . "utility"; ?>">Manage Utilities</a>
                            </li>
                        <?php endif; ?>

                        <?php if (count($utilities) > 0): ?>
                            <?php foreach ($utilities as $utility): ?>
                                <?php if($utility->getInspectorId() == $this->session->userdata('user_id') || $this->ion_auth->is_admin()): ?>
                                    <li class="<?= ($this->uri->segment(3) === '' . $utility->getId() . '') ? 'active' : '' ?>">
                                        <a href="<?= base_url().'utility/show/'.$utility->getId(); ?>">
                                            <?= $utility->getName(); ?>
                                        </a>
                                    </li>
                                <?php endif; ?>
                            <?php endforeach; ?>
                        <?php else: ?>
                            No Utilities
                        <?php endif; ?>
                    </ul>
                </li>
                <!--End: Commercial Utilities menu-->

                <!--Indicators menu-->
                <li class="<?= ($this->uri->segment(1) === 'indicator') ? 'active' : '' ?>">
                    <a href="#"><i class="fa fa-bar-chart-o"></i> <span class="nav-label">Indicators</span><span
                            class="fa arrow"></span></a>
                    <ul class="nav nav-second-level collapse" style="height: 0px;">
                        <?php if($this->ion_auth->is_admin()): ?>
                            <li class="<?= ($this->uri->segment(1) === 'indicator' && $this->uri->segment(2) == NULL) ? 'active' : '' ?>">
                                <a href="<?php echo base_url() . "indicator"; ?>">Manage Indicators</a>
                            </li>
                        <?php endif; ?>
                        <?php if (count($indicators) > 0): ?>
                            <?php foreach ($indicators as $indicator): ?>
                                <li class="<?= ($this->uri->segment(3) === '' .$indicator->getId(). '') ? 'active' : '' ?>"
                                    title="<?= ($indicator->getKind() == 'UTILITY') ? 'Commercial Utility: '.$indicator->getDescription(): 'Private Scheme: '.$indicator->getDescription(); ?>">
                                    <a href="<?php
                                                if ($indicator->getKind() == 'UTILITY') {
                                                    echo base_url().'indicator/show_utility/'.$indicator->getId(); ?>
                                                <?php } elseif ($indicator->getKind() == 'SCHEME') { ?>
                                                    <?php echo base_url().'indicator/show_scheme/'.$indicator->getId(); ?>
                                                <?php } ?>
                                                "><?= $indicator->getName();
                                            ?>
                                    </a>
                                </li>
                            <?php endforeach; ?>
                        <?php else: ?>
                            No Indicators
                        <?php endif; ?>
                    </ul>
                </li>
                <!--End: Indicators menu-->

                <!--Private Schemes menu-->
                <li class="<?= ($this->uri->segment(1) === 'scheme') ? 'active' : '' ?>">
                    <a href="#"><i class="fa fa-user"></i> <span class="nav-label">Private Schemes</span><span
                            class="fa arrow"></span></a>
                    <ul class="nav nav-second-level collapse" style="height: 0px;">
                        <?php if($this->ion_auth->is_admin()): ?>
                            <li class="<?= ($this->uri->segment(1) === 'scheme' && $this->uri->segment(2) == NULL) ? 'active' : '' ?>">
                                <a href="<?php echo base_url() . "scheme"; ?>">Manage Schemes</a>
                            </li>
                        <?php endif; ?>
                        <?php if (count($schemes) > 0): ?>
                            <?php foreach ($schemes as $scheme): ?>
                                <?php if($scheme->getInspectorId() == $this->session->userdata('user_id') || $this->ion_auth->is_admin()): ?>
                                    <li class="<?= ($this->uri->segment(3) === '' . $scheme->getId() . '') ? 'active' : '' ?>">
                                        <a href="<?= base_url().'scheme/show/'.$scheme->getId(); ?>">
                                            <?= $scheme->getName(); ?>
                                        </a>
                                    </li>
                                <?php endif; ?>
                            <?php endforeach; ?>
                        <?php else: ?>
                            <p>No schemes</p>
                        <?php endif; ?>
                    </ul>
                </li>
                <!--End: Private Schemes menu-->

                <!--User management-->
                <li class="<?= ($this->uri->segment(1) === 'auth') ? 'active' : '' ?>">
                    <a href="<?php echo base_url().'auth/'; ?>"><i class="fa fa-users"></i>
                        <?php if ($this->ion_auth->is_admin()): ?>
                            <span class="nav-label">Manage Users</span>
                        <?php else: ?>
                            <span class="nav-label">Manage Account</span>
                        <?php endif; ?>
                    </a>
                </li>
                <!--End: User management-->

                <!--Archives: Commercial Utilities-->
                <li class="<?= ($this->uri->segment(1) === 'utility_archives') ? 'active' : '' ?>">
                    <a href="#"><i class="fa fa-archive"></i> <span class="nav-label">Archives: Utilities</span><span
                            class="fa arrow"></span></a>
                    <ul class="nav nav-second-level collapse" style="height: 0px;">
                        <?php if (count($utilities) > 0): ?>
                            <?php foreach ($utilities as $utility): ?>
                                <li class="<?= ($this->uri->segment(3) === '' . $utility->getId() . '') ? 'active' : '' ?>">
                                    <a href="<?= base_url().'utility_archives/show/'.$utility->getId(); ?>">
                                        <?= $utility->getName(); ?>
                                    </a>
                                </li>
                            <?php endforeach; ?>
                        <?php else: ?>
                            No Utilities
                        <?php endif; ?>
                    </ul>
                </li>
                <!--End: Archive: Commercial Utilities-->

                <!--Archives: Private Schemes-->
                <li class="<?= ($this->uri->segment(1) === 'scheme_archives') ? 'active' : '' ?>">
                    <a href="#"><i class="fa fa-archive"></i> <span class="nav-label">Archives: Schemes</span><span
                            class="fa arrow"></span></a>
                    <ul class="nav nav-second-level collapse" style="height: 0px;">
                        <?php if (count($schemes) > 0): ?>
                            <?php foreach ($schemes as $scheme): ?>
                                <li class="<?= ($this->uri->segment(3) === '' . $scheme->getId() . '') ? 'active' : '' ?>">
                                    <a href="<?= base_url().'scheme_archives/show/'.$scheme->getId(); ?>">
                                        <?= $scheme->getName(); ?>
                                    </a>
                                </li>
                            <?php endforeach; ?>
                        <?php else: ?>
                            No schemes
                        <?php endif; ?>
                    </ul>
                </li>
{'fraction_non_alphanumeric': 0.18693126317412986, 'fraction_numerical': 0.0028790293558171817, 'mean_word_length': 1.081318210999358, 'pattern_counts': {'":': 0, '<': 435, '<?xml version=': 0, '>': 605, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 94, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '490732', 'n_tokens_mistral': 4872, 'n_tokens_neox': 4701, 'n_words': 932}