<commit_before><?php
/*-------------------------------------------------------+
| PHP-Fusion Content Management System
| Copyright (C) 2002 - 2016 PHP-Fusion Inc.
| https://www.php-fusion.co.uk/
+--------------------------------------------------------+
| Name: Septenary Theme
| Filename: includes/components.php
| Version: 1.00
| Author: PHP-Fusion Mods UK
| Developer & Designer:
| Craig (http://www.phpfusionmods.co.uk),
| Chan (Lead developer of PHP-Fusion)
+--------------------------------------------------------+
| This program is released as free software under the
| Affero GPL license. You can redistribute it and/or
| modify it under the terms of this license which you
| can read by viewing the included agpl.txt or online
| at www.gnu.org/licenses/agpl.html. Removal of this
| copyright header is strictly prohibited without
| written permission from the original author(s).
+--------------------------------------------------------*/

namespace PHPFusion;

/**
 * Class SeptenaryComponents
 * Collections of 'functions_include.php'
 * @package Septenary
 */
class SeptenaryComponents {

    protected static $locale = array();
    private static $custom_header_html = "";

    /**
     * Legacy opentable function
     * @param $title
     */
    public static function opentable($title) {
        echo "<article><h2 class='m-t-0 m-b-0'>".$title."</h2><div class='content'>\n";
    }

    /**
     * Legacy closetable function
     */
    public static function closetable() {
        echo "</div></article>\n";
    }

    /**
     * Legacy Openside Function
     * @param            $title
     * @param bool|FALSE $collapse
     * @param string     $state
     */
    public static function openside($title, $collapse = FALSE, $state = "on") {
        global $panel_collapse;

        $panel_collapse = $collapse;

        echo "<div class='heading'>\n";
        echo "<div style='margin-left: 10px;'>".$title."</div>\n";
        echo "</div>\n";
        if ($collapse == TRUE) {
            $boxname = str_replace(" ", "", $title);
            echo "<div class='pull-right' style='padding-top: 10px;'>".panelbutton($state, $boxname)."</div>\n";
        }
        echo "<div class='content'>\n";
        if ($collapse == TRUE) {
            echo panelstate($state, $boxname);
        }
    }

    public static function closeside() {
        global $panel_collapse;
        if ($panel_collapse == TRUE) {
            echo "</div>\n";
        }
        echo "</div>";
    }

    /**
     * Set current theme locale
     * @return array
     */
    public static function set_locale() {
        if (empty(self::$locale)) {<commit_msg>Septenary code update on collapse. Generate randomid.<commit_after><?php
/*-------------------------------------------------------+
| PHP-Fusion Content Management System
| Copyright (C) 2002 - 2016 PHP-Fusion Inc.
| https://www.php-fusion.co.uk/
+--------------------------------------------------------+
| Name: Septenary Theme
| Filename: includes/components.php
| Version: 1.00
| Author: PHP-Fusion Mods UK
| Developer & Designer:
| Craig (http://www.phpfusionmods.co.uk),
| Chan (Lead developer of PHP-Fusion)
+--------------------------------------------------------+
| This program is released as free software under the
| Affero GPL license. You can redistribute it and/or
| modify it under the terms of this license which you
| can read by viewing the included agpl.txt or online
| at www.gnu.org/licenses/agpl.html. Removal of this
| copyright header is strictly prohibited without
| written permission from the original author(s).
+--------------------------------------------------------*/

namespace PHPFusion;

/**
 * Class SeptenaryComponents
 * Collections of 'functions_include.php'
 * @package Septenary
 */
class SeptenaryComponents {

    protected static $locale = array();
    private static $custom_header_html = "";

    /**
     * Legacy opentable function
     * @param $title
     */
    public static function opentable($title) {
        echo "<article><h2 class='m-t-0 m-b-0'>".$title."</h2><div class='content'>\n";
    }

    /**
     * Legacy closetable function
     */
    public static function closetable() {
        echo "</div></article>\n";
    }

    /**
     * Legacy Openside Function
     * @param            $title
     * @param bool|FALSE $collapse
     * @param string     $state
     */
    public static function openside($title, $collapse = FALSE, $state = "on") {
        global $panel_collapse;

        $boxname = str_replace(" ", "", $title);
        $boxname .= $boxname."-".str_shuffle(mt_rand(0, 30).time());

        $panel_collapse = $collapse;

        echo "<div class='heading'>\n";
        echo "<div style='margin-left: 10px;'>".$title."</div>\n";
        echo "</div>\n";
        if ($collapse == TRUE) {
            echo "<div class='pull-right' style='padding-top: 10px;'>".panelbutton($state, $boxname)."</div>\n";
        }
        echo "<div class='content'>\n";
        if ($collapse == TRUE) {
            echo panelstate($state, $boxname);
        }
    }

    public static function closeside() {
        global $panel_collapse;
        if ($panel_collapse == TRUE) {
            echo "</div>\n";
        }
        echo "</div>";
    }

    /**
     * Set current theme locale
     * @return array
     */
    public static function set_locale() {
        if (empty(self::$locale)) {
{'fraction_non_alphanumeric': 0.21605623381428044, 'fraction_numerical': 0.007584165741768406, 'mean_word_length': 1.9306233062330622, 'pattern_counts': {'":': 0, '<': 35, '<?xml version=': 0, '>': 33, 'https://': 2, 'lorem ipsum': 0, 'www.': 6, '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': '1677010', 'n_tokens_mistral': 1528, 'n_tokens_neox': 1452, 'n_words': 417}