<commit_before><div ng-if="$ctrl.user.permissions.view_concept_props">
    <h3>{{ $ctrl.editContext.name }}<br>
        <small><span ng-if="$ctrl.editContext.uri">{{ $ctrl.concepts[$ctrl.editContext.uri].label }} &mdash; </span>{{'context-form.heading'|translate}}</small>
    </h3>
    <p class="btn-group-sm nav-inline">
        <a class="btn btn-success btn-fab btn-fab-mini" href="" ng-click="$ctrl.store($ctrl.data)">
            <i class="material-icons">save</i>
        </a>
        <a class="btn btn-danger btn-fab btn-fab-mini" ui-sref="root.spacialist.context.data.delete">
            <i class="material-icons">delete</i>
        </a>
    </p>
    <form class="form-horizontal" role="form" ng-if="$ctrl.fields" name="$ctrl.editContext.form">
        <div class="form-group form-group-unpadded">
            <label class="control-label col-md-3" for="name">
                {{'context-form.name'|translate}}:
            </label>
            <div class="col-md-9">
                <input type="text" class="form-control" id="name" ng-model="$ctrl.editContext.name" ng-readonly="!$ctrl.user.permissions.duplicate_edit_concepts" />
            </div>
        </div>
        <form-field fields="$ctrl.fields" output="$ctrl.data" sources="$ctrl.sources" menus="$ctrl.menus" concepts="$ctrl.concepts" label-width="3" input-width="9" offset="0" sp-readonly="{{ !$ctrl.user.permissions.duplicate_edit_concepts }}">
        </form-field>
        <div class="form-group">
            <label class="control-label col-md-3" for="lasteditor">{{ 'context-form.last-modified' | translate }}:</label>
            <div class="col-md-9">
                <p class="form-control-static">
                    {{ $ctrl.editContext.lastmodified }} (<strong>{{ $ctrl.editContext.lasteditor }}</strong>)
                </p>
            </div>
        </div>
        <div class="col-md-offset-3" ng-if="$ctrl.user.permissions.duplicate_edit_concepts">
            <button type="button" class="btn btn-success" ng-click="$ctrl.store($ctrl.data)">
                <span class="material-icons">save</span> {{ 'context-form.save-button' | translate }}
            </button>
            <button type="button" class="btn btn-danger" ui-sref="root.spacialist.context.data.delete">
                <span class="material-icons">delete</span> {{ 'context-form.delete-button' | translate }}
            </button>
        </div>
    </form>
    <div ui-view on-add="$ctrl.addSource(entry)"></div>
</div>
<div ng-if="!$ctrl.user.permissions.view_concept_props">
    <div ng-include="'layouts/restricted-access.html'"></div>
</div><commit_msg>only allow to send form if it is valid<commit_after><div ng-if="$ctrl.user.permissions.view_concept_props">
    <h3>{{ $ctrl.editContext.name }}<br>
        <small><span ng-if="$ctrl.editContext.uri">{{ $ctrl.concepts[$ctrl.editContext.uri].label }} &mdash; </span>{{'context-form.heading'|translate}}</small>
    </h3>
    <p class="btn-group-sm nav-inline">
        <a class="btn btn-success btn-fab btn-fab-mini" href="" ng-click="$ctrl.store($ctrl.data)">
            <i class="material-icons">save</i>
        </a>
        <a class="btn btn-danger btn-fab btn-fab-mini" ui-sref="root.spacialist.context.data.delete">
            <i class="material-icons">delete</i>
        </a>
    </p>
    <form class="form-horizontal" role="form" ng-if="$ctrl.fields" name="$ctrl.editContext.form">
        <div class="form-group form-group-unpadded">
            <label class="control-label col-md-3" for="name">
                {{'context-form.name'|translate}}:
            </label>
            <div class="col-md-9">
                <input type="text" class="form-control" id="name" ng-model="$ctrl.editContext.name" ng-readonly="!$ctrl.user.permissions.duplicate_edit_concepts" />
            </div>
        </div>
        <form-field fields="$ctrl.fields" output="$ctrl.data" sources="$ctrl.sources" menus="$ctrl.menus" concepts="$ctrl.concepts" label-width="3" input-width="9" offset="0" sp-readonly="{{ !$ctrl.user.permissions.duplicate_edit_concepts }}">
        </form-field>
        <div class="form-group">
            <label class="control-label col-md-3" for="lasteditor">{{ 'context-form.last-modified' | translate }}:</label>
            <div class="col-md-9">
                <p class="form-control-static">
                    {{ $ctrl.editContext.lastmodified }} (<strong>{{ $ctrl.editContext.lasteditor }}</strong>)
                </p>
            </div>
        </div>
        <div class="col-md-offset-3" ng-if="$ctrl.user.permissions.duplicate_edit_concepts">
            <button type="button" class="btn btn-success" ng-click="$ctrl.store($ctrl.data)" ng-disabled="$ctrl.editContext.form.$invalid">
                <span class="material-icons">save</span> {{ 'context-form.save-button' | translate }}
            </button>
            <button type="button" class="btn btn-danger" ui-sref="root.spacialist.context.data.delete">
                <span class="material-icons">delete</span> {{ 'context-form.delete-button' | translate }}
            </button>
        </div>
    </form>
    <div ui-view on-add="$ctrl.addSource(entry)"></div>
</div>
<div ng-if="!$ctrl.user.permissions.view_concept_props">
    <div ng-include="'layouts/restricted-access.html'"></div>
</div>
{'fraction_non_alphanumeric': 0.1955496888553649, 'fraction_numerical': 0.003771450122572129, 'mean_word_length': 2.783166904422254, 'pattern_counts': {'":': 0, '<': 115, '<?xml version=': 0, '>': 115, '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': '2984267', 'n_tokens_mistral': 1726, 'n_tokens_neox': 1658, 'n_words': 256}