<commit_before><?PHP require_once 'include/pre.php'; ?>
<!DOCTYPE html>
<html>
    <head>
        <title>Admin - Numerical Solver</title>
        <meta http-equiv="content-type" content="text/html; charset=UTF-8"/>
        <!--Import Google Icon Font-->
        <link href="http://fonts.googleapis.com/icon?family=Material+Icons" rel="stylesheet">
        <!--Import bootstrap.css-->
        <!--<link type="text/css" rel="stylesheet" href="css/bootstrap.css" />-->
        <!--Import materialize.css-->
        <link type="text/css" rel="stylesheet" href="css/materialize.css" media="screen,projection"/>
        <link type="text/css" rel="stylesheet" href="css/site.css" media="screen,projection"/>
        <link type="text/css" rel="stylesheet" href="css/icon.css" />

        <script src="js/sweetalert2.min.js"></script> 
        <link rel="stylesheet" type="text/css" href="css/sweetalert2.css">

        <!--Let browser know website is optimized for mobile-->
        <meta name="viewport" content="width=device-width, initial-scale=1.0"/>
    </head>
    <body>
        <div class="row">
            <div class="col s3 left">
                <div align="center">
                    <!-- BEGIN SECTION: CHAPTERS -->
                    <div class="row chapters-section">
                        <div class="col s12">
                            <ul class="tabs margin-bottom-20">
                                <li class="tab col s3"><a id="viewChapters" class="active" href="#tabChapters">Chapters</a></li>
                                <li class="tab col s3"><a id="viewAddChapter" href="#tabAddChapter">Add</a></li>
                            </ul>
                        </div>
                        <div id="tabChapters" class="col s12 tabChapters">
                            <a id="selectedChapter" data-selected-id="0" class='dropdown-button btn' href='#' data-beloworigin="true" data-activates='ddChapters'>Select Chapter</a>
                            <ul id='ddChapters' class='dropdown-content'>
                            </ul>
                            <p id="noChapMsg">Add chapters to see them here.</p>
                        </div>
                        <div id="tabAddChapter" class="col s12 tabChapters">
                            <form class="col s12">
                                <div class="row">
                                    <div class="input-field col s9">
                                        <input id="txtChapterName" type="text" class="validate">
                                        <label for="txtChapterName">Chapter</label>
                                    </div>
                                    <div class="input-field col s3">
                                        <button type="button" name="btnAddChapter" id="btnAddChapter" class="btn-floating btn-medium waves-effect waves-light red" >
                                            <i class="material-icons">add</i>
                                        </button>
                                    </div>
                                </div>
                            </form>
                        </div>
                    </div>
                    <!-- -------------------
                    END SECTION: CHAPTERS -->

                    <hr class="separator"/>

                    <!-- BEGIN SECTION: TOPICS -->
                    <div class="row topics-section">
                        <div class="col s12">
                            <ul class="tabs margin-bottom-20">
                                <li class="tab col s3"><a id="viewTopics" class="active" href="#tabTopics">Topics</a></li>
                                <li class="tab col s3"><a id="viewAddTopic" href="#tabAddTopic">Add</a></li>
                            </ul>
                        </div>
                        <div id="tabTopics" class="col s12 tabTopics">
                            <a id="selectedTopic" data-selected-id="0" class='dropdown-button btn' href='#' data-beloworigin="true" data-activates='ddTopics'>Select Topic</a>
                            <ul id='ddTopics' class='dropdown-content'>
                            </ul>
                            <p id="noTopicsMsg">Add topics to see them here.</p>
                        </div>
                        <div id="tabAddTopic" class="col s12 tabTopics">
                            <form class="col s12">
                                <div class="row">
                                    <div class="input-field col s9">
                                        <input id="txtTopicName" type="text" class="validate">
                                        <label for="txtTopicName">Topic</label>
                                    </div>
                                    <div class="input-field col s3">
                                        <button type="button" name="btnAddTopic" id="btnAddTopic" class="btn-floating btn-medium waves-effect waves-light red">
                                            <i class="material-icons">add</i>
                                        </button>
                                    </div>
                                </div>
                            </form>
                        </div>
                    </div>
                    <!-- -------------------
                    END SECTION: TOPICS -->

                    <hr class="separator numericals-section"/>

                    <!-- BEGIN SECTION: NUMERICALS -->
                    <div class="row numericals-section">
                        <div class="col s12">
                            <ul class="tabs margin-bottom-20">
                                <li class="tab col s3"><a id="viewNumericals" class="active" href="#tabNumericals">Numericals</a></li>
                                <li class="tab col s3"><a id="viewAddNumericals" href="#tabAddNumerical">Add</a></li>
                            </ul>
                        </div>
                        <div id="tabNumericals" class="col s12 tabNumericals">
                            <a id="selectedNumerical" data-selected-id="0" class='dropdown-button btn selectedNumerical' href='#' data-beloworigin="true" data-activates='ddNumericals'>Select Numerical</a>
                            <ul id='ddNumericals' class='dropdown-content'>
                                <p id="noTopicsMsg">Add topics to see them here.</p>
                            </ul>
                            <p id="noNumericalsMsg">Add numerical to see them here.</p>
                        </div>
                        <div id="tabAddNumerical" class="col s12 tabNumericals">
                            <form class="col s12">
                                <div class="row">
                                    <div class="input-field col s9">
                                        <input id="txtNumIdentifier" type="text" class="validate">
                                        <label for="txtNumIdentifier">Identifier</label>
                                    </div>
                                    <div class="input-field col s3">
                                        <button type="button" name="btnAddNumerical" id="btnAddNumerical" class="btn-floating btn-medium waves-effect waves-light red" >
                                            <i class="material-icons">add</i>
                                        </button>
                                    </div>
                                </div>
                            </form>
                        </div>
                    </div>
                    <!-- -------------------
                    END SECTION: TOPICS -->
                </div>
            </div>

            <div class="col s6 middle">
                <!-- BEGIN SECTION: STATEMENTS -->
                <div class="container-fluid margin-left-30 margin-bottom-50 ">
                    <h5>Statement For <span class="selectedNumerical theme-color">..</span></h5>
                    <div class="row">
                        <div class="input-field col s9">
                            <textarea id="txtNumStatement" class="materialize-textarea textarea"></textarea>
                            <label for="txtNumStatement">Statement</label>
                        </div>
                        <div class="input-field col s3">
                            <button type="button" name="btnAddStatement" id="btnAddStatement" class="btn-floating btn-medium waves-effect waves-light red" title="Add Statement" >
                                <i class="material-icons">add</i>
                            </button>
                        </div>
                    </div>
                </div>
                <!-- -------------------
                END SECTION: STATEMENTS -->

                <!-- BEGIN SECTION: FORMULA -->
                <div class="container-fluid margin-left-30 margin-bottom-50">
                    <h5>Formula String For <span class="selectedNumerical theme-color">..</span></h5>
                    <div class="row">
                        <div class="input-field col s9">
                            <textarea id="txtNumFormulaString" class="materialize-textarea textarea"></textarea>
                            <label for="txtNumFormulaString">Formula String </label>
                        </div>
                        <div class="input-field col s3">
                            <button type="button" name="btnAddFormula" id="btnAddFormula" class="btn-floating btn-medium waves-effect waves-light red" title="Add Formula String">
                                <i class="material-icons">add</i>
                            </button>
                        </div>
                        <div class="input-field col s12 all-math-op">
                            <div class="input-field col s4">
                                <a class="waves-effect waves-light btn btn-small grid ">=</a>
                                <a class="waves-effect waves-light btn btn-small grid ">+</a>
                                <a class="waves-effect waves-light btn btn-small grid ">-</a>
                                <a class="waves-effect waves-light btn btn-small grid ">*</a>
                                <a class="waves-effect waves-light btn btn-small grid ">/</a>
                                <a class="waves-effect waves-light btn btn-small grid ">%</a>
                                <a class="waves-effect waves-light btn btn-small grid ">(</a>
                                <a class="waves-effect waves-light btn btn-small grid ">)</a>
                                <a class="waves-effect waves-light btn btn-small grid ">{</a>
                                <a class="waves-effect waves-light btn btn-small grid ">}</a>
                                <a class="waves-effect waves-light btn btn-small grid ">[</a>
                                <a class="waves-effect waves-light btn btn-small grid ">]</a>
                            </div>
                            <div class="input-field col s3 math-op">
                                <a class="waves-effect waves-light btn btn-small grid">1</a>
                                <a class="waves-effect waves-light btn btn-small grid">2</a>
                                <a class="waves-effect waves-light btn btn-small grid">3</a>
                                <a class="waves-effect waves-light btn btn-small grid">4</a>
                                <a class="waves-effect waves-light btn btn-small grid">5</a>
                                <a class="waves-effect waves-light btn btn-small grid">6</a>
                                <a class="waves-effect waves-light btn btn-small grid">7</a>
                                <a class="waves-effect waves-light btn btn-small grid">8</a>
                                <a class="waves-effect waves-light btn btn-small grid">9</a>
                                <a class="waves-effect waves-light btn btn-small grid" style="visibility: hidden">0</a>
                                <a class="waves-effect waves-light btn btn-small grid">0</a>
                            </div>
                            <div class="input-field col s5 math-func">
                                <a class="waves-effect waves-light grid"> abs</a>
                                <a class="waves-effect waves-light grid">sqrt</a>
                                <a class="waves-effect waves-light grid">cbrt</a>
                                <a class="waves-effect waves-light grid">ceil</a>
                                <a class="waves-effect waves-light grid">floor</a>
                                <a class="waves-effect waves-light grid">exp</a>
                                <a class="waves-effect waves-light grid">log</a>
                                <a class="waves-effect waves-light grid">log10</a><commit_msg>Used for loop for optimization<commit_after><?PHP require_once 'include/pre.php'; ?>
<!DOCTYPE html>
<html>
    <head>
        <title>Admin - Numerical Solver</title>
        <meta http-equiv="content-type" content="text/html; charset=UTF-8"/>
        <!--Import Google Icon Font-->
        <link href="http://fonts.googleapis.com/icon?family=Material+Icons" rel="stylesheet">
        <!--Import bootstrap.css-->
        <!--<link type="text/css" rel="stylesheet" href="css/bootstrap.css" />-->
        <!--Import materialize.css-->
        <link type="text/css" rel="stylesheet" href="css/materialize.css" media="screen,projection"/>
        <link type="text/css" rel="stylesheet" href="css/site.css" media="screen,projection"/>
        <link type="text/css" rel="stylesheet" href="css/icon.css" />

        <script src="js/sweetalert2.min.js"></script> 
        <link rel="stylesheet" type="text/css" href="css/sweetalert2.css">

        <!--Let browser know website is optimized for mobile-->
        <meta name="viewport" content="width=device-width, initial-scale=1.0"/>
    </head>
    <body>
        <div class="row">
            <div class="col s3 left">
                <div align="center">
                    <!-- BEGIN SECTION: CHAPTERS -->
                    <div class="row chapters-section">
                        <div class="col s12">
                            <ul class="tabs margin-bottom-20">
                                <li class="tab col s3"><a id="viewChapters" class="active" href="#tabChapters">Chapters</a></li>
                                <li class="tab col s3"><a id="viewAddChapter" href="#tabAddChapter">Add</a></li>
                            </ul>
                        </div>
                        <div id="tabChapters" class="col s12 tabChapters">
                            <a id="selectedChapter" data-selected-id="0" class='dropdown-button btn' href='#' data-beloworigin="true" data-activates='ddChapters'>Select Chapter</a>
                            <ul id='ddChapters' class='dropdown-content'>
                            </ul>
                            <p id="noChapMsg">Add chapters to see them here.</p>
                        </div>
                        <div id="tabAddChapter" class="col s12 tabChapters">
                            <form class="col s12">
                                <div class="row">
                                    <div class="input-field col s9">
                                        <input id="txtChapterName" type="text" class="validate">
                                        <label for="txtChapterName">Chapter</label>
                                    </div>
                                    <div class="input-field col s3">
                                        <button type="button" name="btnAddChapter" id="btnAddChapter" class="btn-floating btn-medium waves-effect waves-light red" >
                                            <i class="material-icons">add</i>
                                        </button>
                                    </div>
                                </div>
                            </form>
                        </div>
                    </div>
                    <!-- -------------------
                    END SECTION: CHAPTERS -->

                    <hr class="separator"/>

                    <!-- BEGIN SECTION: TOPICS -->
                    <div class="row topics-section">
                        <div class="col s12">
                            <ul class="tabs margin-bottom-20">
                                <li class="tab col s3"><a id="viewTopics" class="active" href="#tabTopics">Topics</a></li>
                                <li class="tab col s3"><a id="viewAddTopic" href="#tabAddTopic">Add</a></li>
                            </ul>
                        </div>
                        <div id="tabTopics" class="col s12 tabTopics">
                            <a id="selectedTopic" data-selected-id="0" class='dropdown-button btn' href='#' data-beloworigin="true" data-activates='ddTopics'>Select Topic</a>
                            <ul id='ddTopics' class='dropdown-content'>
                            </ul>
                            <p id="noTopicsMsg">Add topics to see them here.</p>
                        </div>
                        <div id="tabAddTopic" class="col s12 tabTopics">
                            <form class="col s12">
                                <div class="row">
                                    <div class="input-field col s9">
                                        <input id="txtTopicName" type="text" class="validate">
                                        <label for="txtTopicName">Topic</label>
                                    </div>
                                    <div class="input-field col s3">
                                        <button type="button" name="btnAddTopic" id="btnAddTopic" class="btn-floating btn-medium waves-effect waves-light red">
                                            <i class="material-icons">add</i>
                                        </button>
                                    </div>
                                </div>
                            </form>
                        </div>
                    </div>
                    <!-- -------------------
                    END SECTION: TOPICS -->

                    <hr class="separator numericals-section"/>

                    <!-- BEGIN SECTION: NUMERICALS -->
                    <div class="row numericals-section">
                        <div class="col s12">
                            <ul class="tabs margin-bottom-20">
                                <li class="tab col s3"><a id="viewNumericals" class="active" href="#tabNumericals">Numericals</a></li>
                                <li class="tab col s3"><a id="viewAddNumericals" href="#tabAddNumerical">Add</a></li>
                            </ul>
                        </div>
                        <div id="tabNumericals" class="col s12 tabNumericals">
                            <a id="selectedNumerical" data-selected-id="0" class='dropdown-button btn selectedNumerical' href='#' data-beloworigin="true" data-activates='ddNumericals'>Select Numerical</a>
                            <ul id='ddNumericals' class='dropdown-content'>
                                <p id="noTopicsMsg">Add topics to see them here.</p>
                            </ul>
                            <p id="noNumericalsMsg">Add numerical to see them here.</p>
                        </div>
                        <div id="tabAddNumerical" class="col s12 tabNumericals">
                            <form class="col s12">
                                <div class="row">
                                    <div class="input-field col s9">
                                        <input id="txtNumIdentifier" type="text" class="validate">
                                        <label for="txtNumIdentifier">Identifier</label>
                                    </div>
                                    <div class="input-field col s3">
                                        <button type="button" name="btnAddNumerical" id="btnAddNumerical" class="btn-floating btn-medium waves-effect waves-light red" >
                                            <i class="material-icons">add</i>
                                        </button>
                                    </div>
                                </div>
                            </form>
                        </div>
                    </div>
                    <!-- -------------------
                    END SECTION: TOPICS -->
                </div>
            </div>

            <div class="col s6 middle">
                <!-- BEGIN SECTION: STATEMENTS -->
                <div class="container-fluid margin-left-30 margin-bottom-50 ">
                    <h5>Statement For <span class="selectedNumerical theme-color">..</span></h5>
                    <div class="row">
                        <div class="input-field col s9">
                            <textarea id="txtNumStatement" class="materialize-textarea textarea"></textarea>
                            <label for="txtNumStatement">Statement</label>
                        </div>
                        <div class="input-field col s3">
                            <button type="button" name="btnAddStatement" id="btnAddStatement" class="btn-floating btn-medium waves-effect waves-light red" title="Add Statement" >
                                <i class="material-icons">add</i>
                            </button>
                        </div>
                    </div>
                </div>
                <!-- -------------------
                END SECTION: STATEMENTS -->

                <!-- BEGIN SECTION: FORMULA -->
                <div class="container-fluid margin-left-30 margin-bottom-50">
                    <h5>Formula String For <span class="selectedNumerical theme-color">..</span></h5>
                    <div class="row">
                        <div class="input-field col s9">
                            <textarea id="txtNumFormulaString" class="materialize-textarea textarea"></textarea>
                            <label for="txtNumFormulaString">Formula String </label>
                        </div>
                        <div class="input-field col s3">
                            <button type="button" name="btnAddFormula" id="btnAddFormula" class="btn-floating btn-medium waves-effect waves-light red" title="Add Formula String">
                                <i class="material-icons">add</i>
                            </button>
                        </div>
                        <div class="input-field col s12 all-math-op">
                            <div class="input-field col s4">
                                <a class="waves-effect waves-light btn btn-small grid ">=</a>
                                <a class="waves-effect waves-light btn btn-small grid ">+</a>
                                <a class="waves-effect waves-light btn btn-small grid ">-</a>
                                <a class="waves-effect waves-light btn btn-small grid ">*</a>
                                <a class="waves-effect waves-light btn btn-small grid ">/</a>
                                <a class="waves-effect waves-light btn btn-small grid ">%</a>
                                <a class="waves-effect waves-light btn btn-small grid ">(</a>
                                <a class="waves-effect waves-light btn btn-small grid ">)</a>
                                <a class="waves-effect waves-light btn btn-small grid ">{</a>
                                <a class="waves-effect waves-light btn btn-small grid ">}</a>
                                <a class="waves-effect waves-light btn btn-small grid ">[</a>
                                <a class="waves-effect waves-light btn btn-small grid ">]</a>
                            </div>
                            <div class="input-field col s3 math-op">
                                <?php
                                    for($i=1;$i<10;$i++){
                                ?>
                                <a class="waves-effect waves-light btn btn-small grid"><?php echo $i;?></a>
                                <?php } ?>
                                <a class="waves-effect waves-light btn btn-small grid" style="visibility: hidden">0</a>
                                <a class="waves-effect waves-light btn btn-small grid">0</a>
                            </div>
                            <div class="input-field col s5 math-func">
                                <a class="waves-effect waves-light grid"> abs</a>
                                <a class="waves-effect waves-light grid">sqrt</a>
                                <a class="waves-effect waves-light grid">cbrt</a>
                                <a class="waves-effect waves-light grid">ceil</a>
                                <a class="waves-effect waves-light grid">floor</a>
                                <a class="waves-effect waves-light grid">exp</a>
                                <a class="waves-effect waves-light grid">log</a>
                                <a class="waves-effect waves-light grid">log10</a>
{'fraction_non_alphanumeric': 0.1296223135271808, 'fraction_numerical': 0.006558154235145386, 'mean_word_length': 1.0918105941657714, 'pattern_counts': {'":': 0, '<': 521, '<?xml version=': 0, '>': 520, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 145, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '2924084', 'n_tokens_mistral': 6261, 'n_tokens_neox': 5754, 'n_words': 1334}