<commit_before><div ng-if="vm.formData.ID" class="checkbox text-right">
    <label>
        <!--            <input  type="checkbox"
                            ng-checked="!!vm.formData.Flagged"
                            ng-model="vm.formData.Flagged"
                            ng-change="vm.toggleFlag()"> Reported-->
        <input  type="checkbox"
                ng-model="vm.formData.Flagged"
                ng-true-value="1"
                ng-false-value="0"
                ng-change="vm.toggleFlag()"> Reported
    </label>
</div>
<form class="collection" name="cc_form" ng-submit="vm.editCollection(vm.formData)">
    <div class="form-group">
        <label>Collection title</label>
        <input class="form-control" type="text" name="collection_title" ng-model="vm.formData.Title" required/>
    </div>
    <div class="form-group">
        <label>Hypothesis</label>
        <textarea class="form-control" rows="5" name="collection_hypothesis" ng-model="vm.formData.Description"></textarea>
    </div>
    <div class="form-group">
        <label>Keywords</label>
        <input class="form-control" type="text" name="collection_keywords" ng-model="vm.formData.Keywords"/>
    </div>
    <div class="text-right">
        <div class="btn-group">
            <a ng-href="#!/my-collections" class="btn btn-sm btn-default">
                <span class="glyphicon glyphicon-menu-left"></span>
            </a>
            <button ng-show="vm.formData.ID" ng-click="vm.removeItem(vm.formData.ID)" class="btn btn-sm btn-danger" type="button">Delete</button>
            <button ng-show="cc_form.$dirty" ng-disabled="cc_form.$invalid" class="btn btn-sm btn-success" type="submit" ng-bind="vm.buttonName">Submit</button>
        </div>
    </div>
    <hr>
    <div class="text-center" ng-show="vm.error && !vm.formData.ID">
        <p class="text-danger" ng-bind="vm.error"></p>
    </div>
</form>

<div ng-show="vm.formData.ID">
    <button ng-click="vm.figureAddStart()" class="btn btn-lg btn-block figure-add" ng-class="vm.error ? 'btn-info' : 'btn-default'" ng-bind="vm.error || '+'"></button>
    <hr>
</div>

<div ng-repeat="fig in vm.formData.Figures"><commit_msg>~ put Reported checkbox back, some buttons style corrections<commit_after><form class="collection" name="cc_form" ng-submit="vm.editCollection(vm.formData)">
    <div class="form-group">
        <label>Collection title</label>
        <input class="form-control" type="text" name="collection_title" ng-model="vm.formData.Title" required/>
    </div>
    <div class="form-group">
        <label>Hypothesis</label>
        <textarea class="form-control" rows="5" name="collection_hypothesis" ng-model="vm.formData.Description"></textarea>
    </div>
    <div class="form-group">
        <label>Keywords</label>
        <input class="form-control" type="text" name="collection_keywords" ng-model="vm.formData.Keywords"/>
    </div>
    <div ng-if="vm.formData.ID" class="pull-left">
        <label>
            <input  type="checkbox"
                    ng-model="vm.formData.Flagged"
                    ng-true-value="1"
                    ng-false-value="0"
                    ng-change="vm.toggleFlag()"
                    no-dirty> Reported
        </label>
    </div>
    <div class="text-right">
        <div class="btn-group">
            <button ng-show="cc_form.$dirty" ng-disabled="cc_form.$invalid" class="btn btn-sm btn-primary" type="submit" ng-bind="vm.buttonName">Submit</button>
            <button ng-show="vm.formData.ID" ng-click="vm.removeItem(vm.formData.ID)" class="btn btn-sm btn-default" type="button">
                <span class="glyphicon glyphicon-warning-sign text-danger"></span> Delete
            </button>
        </div>
    </div>
    <hr>
    <div class="text-center" ng-show="vm.error && !vm.formData.ID">
        <p class="text-danger" ng-bind="vm.error"></p>
    </div>
</form>

<div ng-show="vm.formData.ID">
    <button ng-click="vm.figureAddStart()" class="btn btn-lg btn-block figure-add" ng-class="vm.error ? 'btn-info' : 'btn-default'" ng-bind="vm.error || '+'"></button>
    <hr>
</div>

<div ng-repeat="fig in vm.formData.Figures">
{'fraction_non_alphanumeric': 0.18354582631705557, 'fraction_numerical': 0.0014433485686793362, 'mean_word_length': 2.6569920844327175, 'pattern_counts': {'":': 0, '<': 95, '<?xml version=': 0, '>': 95, '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': '1794815', 'n_tokens_mistral': 1362, 'n_tokens_neox': 1321, 'n_words': 222}