<commit_before><?php  if ( ! defined('BASEPATH')) exit('No direct script access allowed');
/**
 * Curriculum Inventory Management page template.
 *
 * Available template variables:
 *
 *    $payload ... A JSON-formatted string representation of the entire initial data payload.
 *    $reports ... An array of existing inventory reports.
 */
$controllerURL = site_url() . '/curriculum_inventory_manager';
$programManagerUrl = site_url() . '/program_management';
$viewsUrlRoot = getViewsURLRoot();
$viewsPath = getServerFilePath('views');

?><!doctype html>
<html lang="en">
<head>
    <meta charset="utf-8">

    <title><?php echo t('curriculum_inventory.title_bar'); ?></title>
    <meta name="description" content="">

    <!-- Mobile viewport optimized: h5bp.com/viewport -->
    <meta name="viewport" content="width=device-width, initial-scale=1">

    <!-- Place favicon.ico and apple-touch-icon.png in the root directory: mathiasbynens.be/notes/touch-icons -->
    <link rel="stylesheet" href="<?php echo appendRevision($viewsUrlRoot . "css/ilios-styles.css"); ?>" media="all">
    <link rel="stylesheet" href="<?php echo appendRevision($viewsUrlRoot . "css/custom.css"); ?>" media="all">

    <style type="text/css"></style>

    <!-- More ideas for your <head> here: h5bp.com/d/head-Tips -->

    <script type="text/javascript" src="<?php echo $controllerURL; ?>/getI18NJavascriptVendor"></script>
<?php
$js = array(
    'vendor' => array( // third-party js
        'application/views/scripts/third_party/html5shiv.js',
        'application/views/scripts/third_party/yui_kitchensink.js',
        'application/views/scripts/third_party/date_formatter.js',
        'application/views/scripts/third_party/md5-min.js',
        'application/views/scripts/third_party/idle-timer.js',
    ),
    'ilios' => array( // ilios js
        'application/views/scripts/ilios_base.js',
        'application/views/scripts/ilios_utilities.js',
        'application/views/scripts/ilios_ui.js',
        'application/views/scripts/ilios_dom.js',
        'application/views/scripts/models/preferences_model.js',
        'application/views/curriculum_inventory/js/ilios.cim.model.js',
        'application/views/curriculum_inventory/js/ilios.cim.widget.js',
        'application/views/curriculum_inventory/js/ilios.cim.view.js',
        'application/views/curriculum_inventory/js/ilios.cim.js',
    ),
);
writeJsScripts($js, 'curriculum_inventory_manager', $this->config->item('script_aggregation_enabled'), $this->config->item('ilios_revision'));
?>
</head>
<body class="curriculum_inventory yui-skin-sam">
<div id="wrapper">
    <header id="masthead" class="clearfix">
        <div class="inner">
            <?php
            include_once $viewsPath . 'common/masthead_logo.inc.php';
            include_once $viewsPath . 'common/masthead_toolbar.inc.php';
            include_once $viewsPath . 'common/masthead_nav.inc.php';
            ?>
        </div>
        <?php include_once $viewsPath . 'common/masthead_viewbar.inc.php'; ?>
    </header>
    <div id="main" role="main">

        <div id="content" class="clearfix">
            <h2 class="page-header"><?php echo t('curriculum_inventory.page_header'); ?></h2>
            <div class="master_button_container clearfix">
                <ul class="buttons left">
                    <li>
                        <a class="small radius button" href="" id="pick_reports_btn">
                            <?php echo t('curriculum_inventory.select_report'); ?>
                        </a>
                    </li>
                    <li>
                        <a class="small secondary radius button" href="" id="create_report_btn">
                            <?php echo t('general.phrases.create_report'); ?>
                         </a>
                    </li>
                </ul>
            </div>
<?php include 'report_details_view.inc.php'; ?>
            <div id="status-toolbar"></div>
            <div id="sequence-block-top-toolbar" class="hidden">
                <div class="add_primary_child_link">
                    <button disabled="disabled" id="expand-all-sequence-blocks-btn" class="small secondary radius button hidden">Expand All</button>
                    <button disabled="disabled" id="collapse-all-sequence-blocks-btn" class="small secondary radius button hidden">Collapse All</button>
                </div>
                <div class="clearfix"></div>
            </div>
            <div id="report-sequence-container"></div>
            <div id="sequence-block-bottom-toolbar" class="hidden">
                <div class="add_primary_child_link">
                    <button disabled="disabled" id="add-new-sequence-block-btn" class="small secondary radius button">Add Sequence Block</button>
                </div>
                <div class="clearfix"></div>
            </div>
        </div>
    </div>
</div>
<footer>
    <!-- reserve for later use -->
</footer>

<!-- overlays at the bottom - avoid z-index issues -->
<div id="view-menu"></div>
<!-- start dialog tabs -->
<?php
include 'create_report_dialog.inc.php';
include 'report_picker_dialog.inc.php';
include 'edit_report_dialog.inc.php';
include 'create_sequence_block_dialog.inc.php';
include 'edit_sequence_block_dialog.inc.php';
?>
<!-- end dialog tabs -->
<script type="text/javascript">
    // register alert/inform overrides on window load
    YAHOO.util.Event.on(window, 'load', function() {
        window.alert = ilios.alert.alert;
        window.inform = ilios.alert.inform;
    });
    ilios.global.installPreferencesModel();

    YAHOO.util.Event.onDOMReady(function() {
        var payload;
        var config = {
            'controllerUrl': "<?php echo $controllerURL; ?>/",
            'programControllerUrl': "<?php echo $programManagerUrl; ?>/"
        };
        try {
            payload = YAHOO.lang.JSON.parse('<?php echo $payload; ?>');
        }  catch (e) {
            //crash and burn
            ilios.global.defaultAJAXFailureHandler(null, e);
            return;
        }
        var app = new ilios.cim.App(config, payload);
    });
    <?php include_once $viewsPath . 'common/start_idle_page_timer.inc.php'; ?>
</script>
</body>
</html>
<commit_msg>removed obsolete call to ilios.global.installPreferencesModel().<commit_after><?php  if ( ! defined('BASEPATH')) exit('No direct script access allowed');
/**
 * Curriculum Inventory Management page template.
 *
 * Available template variables:
 *
 *    $payload ... A JSON-formatted string representation of the entire initial data payload.
 *    $reports ... An array of existing inventory reports.
 */
$controllerURL = site_url() . '/curriculum_inventory_manager';
$programManagerUrl = site_url() . '/program_management';
$viewsUrlRoot = getViewsURLRoot();
$viewsPath = getServerFilePath('views');

?><!doctype html>
<html lang="en">
<head>
    <meta charset="utf-8">

    <title><?php echo t('curriculum_inventory.title_bar'); ?></title>
    <meta name="description" content="">

    <!-- Mobile viewport optimized: h5bp.com/viewport -->
    <meta name="viewport" content="width=device-width, initial-scale=1">

    <!-- Place favicon.ico and apple-touch-icon.png in the root directory: mathiasbynens.be/notes/touch-icons -->
    <link rel="stylesheet" href="<?php echo appendRevision($viewsUrlRoot . "css/ilios-styles.css"); ?>" media="all">
    <link rel="stylesheet" href="<?php echo appendRevision($viewsUrlRoot . "css/custom.css"); ?>" media="all">

    <style type="text/css"></style>

    <!-- More ideas for your <head> here: h5bp.com/d/head-Tips -->

    <script type="text/javascript" src="<?php echo $controllerURL; ?>/getI18NJavascriptVendor"></script>
<?php
$js = array(
    'vendor' => array( // third-party js
        'application/views/scripts/third_party/html5shiv.js',
        'application/views/scripts/third_party/yui_kitchensink.js',
        'application/views/scripts/third_party/date_formatter.js',
        'application/views/scripts/third_party/md5-min.js',
        'application/views/scripts/third_party/idle-timer.js',
    ),
    'ilios' => array( // ilios js
        'application/views/scripts/ilios_base.js',
        'application/views/scripts/ilios_utilities.js',
        'application/views/scripts/ilios_ui.js',
        'application/views/scripts/ilios_dom.js',
        'application/views/scripts/models/preferences_model.js',
        'application/views/curriculum_inventory/js/ilios.cim.model.js',
        'application/views/curriculum_inventory/js/ilios.cim.widget.js',
        'application/views/curriculum_inventory/js/ilios.cim.view.js',
        'application/views/curriculum_inventory/js/ilios.cim.js',
    ),
);
writeJsScripts($js, 'curriculum_inventory_manager', $this->config->item('script_aggregation_enabled'), $this->config->item('ilios_revision'));
?>
</head>
<body class="curriculum_inventory yui-skin-sam">
<div id="wrapper">
    <header id="masthead" class="clearfix">
        <div class="inner">
            <?php
            include_once $viewsPath . 'common/masthead_logo.inc.php';
            include_once $viewsPath . 'common/masthead_toolbar.inc.php';
            include_once $viewsPath . 'common/masthead_nav.inc.php';
            ?>
        </div>
        <?php include_once $viewsPath . 'common/masthead_viewbar.inc.php'; ?>
    </header>
    <div id="main" role="main">

        <div id="content" class="clearfix">
            <h2 class="page-header"><?php echo t('curriculum_inventory.page_header'); ?></h2>
            <div class="master_button_container clearfix">
                <ul class="buttons left">
                    <li>
                        <a class="small radius button" href="" id="pick_reports_btn">
                            <?php echo t('curriculum_inventory.select_report'); ?>
                        </a>
                    </li>
                    <li>
                        <a class="small secondary radius button" href="" id="create_report_btn">
                            <?php echo t('general.phrases.create_report'); ?>
                         </a>
                    </li>
                </ul>
            </div>
<?php include 'report_details_view.inc.php'; ?>
            <div id="status-toolbar"></div>
            <div id="sequence-block-top-toolbar" class="hidden">
                <div class="add_primary_child_link">
                    <button disabled="disabled" id="expand-all-sequence-blocks-btn" class="small secondary radius button hidden">Expand All</button>
                    <button disabled="disabled" id="collapse-all-sequence-blocks-btn" class="small secondary radius button hidden">Collapse All</button>
                </div>
                <div class="clearfix"></div>
            </div>
            <div id="report-sequence-container"></div>
            <div id="sequence-block-bottom-toolbar" class="hidden">
                <div class="add_primary_child_link">
                    <button disabled="disabled" id="add-new-sequence-block-btn" class="small secondary radius button">Add Sequence Block</button>
                </div>
                <div class="clearfix"></div>
            </div>
        </div>
    </div>
</div>
<footer>
    <!-- reserve for later use -->
</footer>

<!-- overlays at the bottom - avoid z-index issues -->
<div id="view-menu"></div>
<!-- start dialog tabs -->
<?php
include 'create_report_dialog.inc.php';
include 'report_picker_dialog.inc.php';
include 'edit_report_dialog.inc.php';
include 'create_sequence_block_dialog.inc.php';
include 'edit_sequence_block_dialog.inc.php';
?>
<!-- end dialog tabs -->
<script type="text/javascript">
    // register alert/inform overrides on window load
    YAHOO.util.Event.on(window, 'load', function() {
        window.alert = ilios.alert.alert;
        window.inform = ilios.alert.inform;
    });

    YAHOO.util.Event.onDOMReady(function() {
        var payload;
        var config = {
            'controllerUrl': "<?php echo $controllerURL; ?>/",
            'programControllerUrl': "<?php echo $programManagerUrl; ?>/"
        };
        try {
            payload = YAHOO.lang.JSON.parse('<?php echo $payload; ?>');
        }  catch (e) {
            //crash and burn
            ilios.global.defaultAJAXFailureHandler(null, e);
            return;
        }
        var app = new ilios.cim.App(config, payload);
    });
    <?php include_once $viewsPath . 'common/start_idle_page_timer.inc.php'; ?>
</script>
</body>
</html>

{'fraction_non_alphanumeric': 0.15378441287422748, 'fraction_numerical': 0.0016052652700858816, 'mean_word_length': 2.6210403952339436, 'pattern_counts': {'":': 0, '<': 193, '<?xml version=': 0, '>': 205, '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': '411127', 'n_tokens_mistral': 3707, 'n_tokens_neox': 3652, 'n_words': 693}