<commit_before><?php
/**
* User interface of the application. Once loaded never reload.
* Calls to the Ctrl should be RESTful using the CRUD pattern
*/

class baseView
{
    //TODO move this to the controller/settings. Leave open to internationalize
    var $alphabet = array('a', 'b', 'c', 'd', 'e', 'f', 'g', 'h', 'i', 'j', 'k', 'l', 'm', 'n', 'o', 'p', 'q', 'r', 's', 't', 'u', 'v', 'w', 'x', 'y', 'z');


    public function  getAlphabet() {
        return $this->alphabet;
    }

    public function setAlphabet($data) {
        $this->alphabet = $data;
    }

    public function __constructor() {
        echo 'adsf';
        $this->renderView();
    }

    private function renderView() { ?>
        <DocType html>
        <html>
            <head>
                <title>ConMan</title>

                <!-- load app css -->
                <link rel="stylesheet" href="./static/css/reset.css">
                <link rel="stylesheet" href="./vendor/twitter/bootstrap/dist/css/bootstrap.min.css">
                <link rel="stylesheet" href="./vendor/twitter/bootstrap/dist/css/bootstrap-theme.min.css">
                <link rel="stylesheet" href="./static/css/application.css">
            </head>
            <body>



                <div id="static_header" class="bs-example">

                    <div role="navigation" class="navbar navbar-default navbar-static" id="navbar">
                        <div class="navbar-header">
                          <h2>Con-Man</h2>
                        </div>
                        <div class="collapse navbar-collapse bs-js-navbar-scrollspy">
                            <ul class="nav navbar-nav">
                                <?php foreach ($this->alphabet as $letter) { ?>
                                    <li><a href="#<?= $letter; ?>"><?= $letter; ?></a></li>
                                <?php } ?>
                            </ul>
                        </div>
                    </div>



                    <div id="data_container" style="overflow-x:hidden;overflow-y:scroll;height 50%;height: 50%"
                        class="scrollspy"
                        data-spy="scroll"
                        data-target="#navbar"
                        data-offset="0"
                    >

                        <!-- Loop this part -->
                        <div class="bs-example" id="a">
                            <form>
                                <input type="text" class="form-control" name="fname"    value="Add FName" />
                                <input type="text" class="form-control" name="lname"    value="LName" />
                                <input type="text" class="form-control" name="city"     value="City" />
                                <input type="text" class="form-control" name="state"    value="State" />
                                <input type="text" class="form-control" name="zip"      value="Zip" />
                                <button type="button" class="btn btn-success disabled" data-loading-text="Save" >Save</button>    
                            </form>
                        </div>
                    </div>
<commit_msg>Using alphabetical loop to display data entries for testing of view content area<commit_after><?php
/**
* User interface of the application. Once loaded never reload.
* Calls to the Ctrl should be RESTful using the CRUD pattern
*/

class baseView
{
    //TODO move this to the controller/settings. Leave open to internationalize
    var $alphabet = array('a', 'b', 'c', 'd', 'e', 'f', 'g', 'h', 'i', 'j', 'k', 'l', 'm', 'n', 'o', 'p', 'q', 'r', 's', 't', 'u', 'v', 'w', 'x', 'y', 'z');


    public function  getAlphabet() {
        return $this->alphabet;
    }

    public function setAlphabet($data) {
        $this->alphabet = $data;
    }

    public function __construct() {
        $this->renderView();
    }

    private function renderView() { ?>
        <DocType html>
        <html>
            <head>
                <title>ConMan</title>

                <!-- load app css -->
                <link rel="stylesheet" href="./static/css/reset.css">
                <link rel="stylesheet" href="./vendor/twitter/bootstrap/dist/css/bootstrap.min.css">
                <link rel="stylesheet" href="./vendor/twitter/bootstrap/dist/css/bootstrap-theme.min.css">
                <link rel="stylesheet" href="./static/css/application.css">
            </head>
            <body>



                <div id="static_header" class="bs-example">

                    <div role="navigation" class="navbar navbar-default navbar-static" id="navbar">
                        <div class="navbar-header">
                          <h2>Con-Man</h2>
                        </div>
                        <div class="collapse navbar-collapse bs-js-navbar-scrollspy">
                            <ul class="nav navbar-nav">
                                <?php foreach ($this->alphabet as $letter) { ?>
                                    <li><a href="#<?= $letter; ?>"><?= $letter; ?></a></li>
                                <?php } ?>
                            </ul>
                        </div>
                    </div>



                    <div id="data_container" style="overflow-x:hidden;overflow-y:scroll;height 50%;height: 50%"
                        class="scrollspy"
                        data-spy="scroll"
                        data-target="#navbar"
                        data-offset="0"
                    >

                        <!-- Loop this part -->
                        <?php foreach ($this->alphabet as $letter) { ?>
                        <div class="bs-example" id="<?= $letter; ?>">
                            <form>
                                <input type="text" class="form-control" name="fname"    value="<?= $letter; ?> Add FName" />
                                <input type="text" class="form-control" name="lname"    value="LName" />
                                <input type="text" class="form-control" name="city"     value="City" />
                                <input type="text" class="form-control" name="state"    value="State" />
                                <input type="text" class="form-control" name="zip"      value="Zip" />
                                <button type="button" class="btn btn-success disabled" data-loading-text="Save" >Save</button>    
                            </form>
                        </div>
                        <?php } ?>
                    </div>

{'fraction_non_alphanumeric': 0.15260982703199144, 'fraction_numerical': 0.0021429664778815248, 'mean_word_length': 1.3227870600782083, 'pattern_counts': {'":': 0, '<': 99, '<?xml version=': 0, '>': 108, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 6, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '3667820', 'n_tokens_mistral': 1791, 'n_tokens_neox': 1671, 'n_words': 395}