<commit_before><div class="container">
    <h1>One-variable Statistics Calculator</h1>
    <form 
     ng-controller="input_list_ctrl as inctrl"
     name="input_list"
     ng-submit="inctrl.get_stats()"
     novalidate>
        <tabset>
        <tab heading="Manual Input" ng-click="inctrl.update_manual_from_bulk()" id="man_input_tab">
        <div class="form-group">
            <label ng-if="inctrl.inputs.length!=0"> Current Values </label>

            <div class="row">
                <div class="col-sm-2" ng-repeat="input in inctrl.inputs" ng-class="{'has-error':input_list.input{{$index}}.$invalid, 'has-success':input_list.input{{$index}}.$valid}"> <!-- todo: fix highlighting when elements removed-->
                    <input ng-model="input.text" ng-blur="inctrl.check_if_delete_inputs(input)"
                                                 ng-pattern="inctrl.NUM_PATTERN" name="input{{$index}}"
                                                                                 class="form-control" />
                </div>
            </div>
        </div>

        <div class="form-group">
            <label>Please enter your values below:</label>
            <input
             ng-repeat="input in inctrl.editing"
             ng-model="input.text"
             ng-blur="inctrl.check_if_delete_editing(input)"
             ng-change="inctrl.check_if_add(input)"
             ng-pattern="inctrl.NUM_PATTERN"
             placeholder="{{input.id==1 || (inctrl.inputs.length==0 && inctrl.editing.length==1) ? 'Enter a value!' : 'Enter another value!'}}"
             class="form-control" style="width:auto" />
        </div>
        </tab>
        <tab heading="Bulk Input" ng-click="inctrl.update_bulk_area()">
        <div class="form-group">
            <label>Enter values below:</label>
            <div class="row"><textarea class="form-control" ng-change="inctrl.bulk_changed()" rows=8 ng-model="inctrl.bulk_in_area"> Hello! </textarea></div>
            <!--<input class="btn btn-default" value="Upload a file" readonly/>-->
        </div>
        </tab>
        <!--<tab heading="Other"><a>Other</a></tab>-->
        </tabset>

        <button  ng-disabled="input_list.$invalid" class="btn btn-primary"
                                                   type="submit" >Calculate one-variable statistics </button>

        <div ng-if="inctrl.numbers.length != 0">
            <h2>Results</h2>
            <table class="table table-hover">
                <thead>
                    <th>Description</th>
                    <th>Symbol</th>
                    <th>Value</th>
                </thead><commit_msg>Adjust spacing in onevar<commit_after><div class="container">
    <h1>One-variable Statistics Calculator</h1>
    <form 
             ng-controller="input_list_ctrl as inctrl"
             name="input_list"
             ng-submit="inctrl.get_stats()"
             novalidate>
        <tabset>
        <tab heading="Manual Input" ng-click="inctrl.update_manual_from_bulk()" id="man_input_tab">
        <div class="form-group">
            <label ng-if="inctrl.inputs.length!=0"> Current Values </label>

            <div class="row">
                <div class="col-sm-2" ng-repeat="input in inctrl.inputs" ng-class="{'has-error':input_list.input{{$index}}.$invalid, 'has-success':input_list.input{{$index}}.$valid}"> <!-- todo: fix highlighting when elements removed-->
                    <input ng-model="input.text" ng-blur="inctrl.check_if_delete_inputs(input)"
                        ng-pattern="inctrl.NUM_PATTERN" name="input{{$index}}"
                        class="form-control" />
                </div>
            </div>
        </div>

        <div class="form-group">
            <label>Please enter your values below:</label>
            <input
             ng-repeat="input in inctrl.editing"
             ng-model="input.text"
             ng-blur="inctrl.check_if_delete_editing(input)"
             ng-change="inctrl.check_if_add(input)"
             ng-pattern="inctrl.NUM_PATTERN"
             placeholder="{{input.id==1 || (inctrl.inputs.length==0 && inctrl.editing.length==1) ? 'Enter a value!' : 'Enter another value!'}}"
             class="form-control" style="width:auto" />
        </div>
        </tab>
        <tab heading="Bulk Input" ng-click="inctrl.update_bulk_area()">
        <div class="form-group">
            <label>Enter values below:</label>
            <div class="row"><textarea class="form-control" ng-change="inctrl.bulk_changed()" rows=8 ng-model="inctrl.bulk_in_area"> Hello! </textarea></div>
            <!--<input class="btn btn-default" value="Upload a file" readonly/>-->
        </div>
        </tab>
        <!--<tab heading="Other"><a>Other</a></tab>-->
        </tabset>

        <button  ng-disabled="input_list.$invalid" class="btn btn-primary"
           type="submit" >Calculate one-variable statistics </button>

        <div ng-if="inctrl.numbers.length != 0">
            <h2>Results</h2>
            <table class="table table-hover">
                <thead>
                    <th>Description</th>
                    <th>Symbol</th>
                    <th>Value</th>
                </thead>
{'fraction_non_alphanumeric': 0.15920015381657374, 'fraction_numerical': 0.004229955777735051, 'mean_word_length': 1.955681818181818, 'pattern_counts': {'":': 0, '<': 111, '<?xml version=': 0, '>': 111, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 7, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '5177294', 'n_tokens_mistral': 1542, 'n_tokens_neox': 1474, 'n_words': 256}