<commit_before>﻿<div data-ng-hide="createNew">
    <div class="modal-header">
        <h3>Rediger {{ orgUnit.oldName }}</h3>
    </div>
    <div class="modal-body">
        <h4>Rediger info</h4>
        <form name="editForm" novalidate="novalidate" class="form-horizontal">
            <div class="form-group">
                <label for="name" class="col-md-3 control-label">
                    Enhedens navn
                </label>
                <div class="col-md-8">
                    <input type="text" name="name" data-ng-model="orgUnit.newName" class="form-control" data-ng-required="true" />
                </div>
            </div>
            <div class="form-group">
                <label for="parent" class="col-md-3 control-label">
                    Overordnet enhed
                </label>
                <div class="col-md-8">
                    <select type="text" data-ui-select2="" name="parent" data-ng-model="orgUnit.newParent" class="form-control" data-placeholder="Vælg overordnet" data-ng-required="true" data-ng-disabled="!canChangeParent">
                        <option></option>
                        <option data-ng-repeat="unit in orgUnits" value="{{unit.id}}">{{unit.name}}</option>
                    </select>
                </div>
                <div class="col-md-8 col-md-offset-3">
                    <p class="help-block" data-ng-show="canChangeParent">
                        Der kan kun vælges blandt de organisationsenheder som er indenfor samme organisation, og som ikke er en underafdeling til {{orgUnit.oldName}}.
                    </p>
                    <p class="help-block" data-ng-hide="canChangeParent">
                        Du kan ikke ændre {{ orgUnit.oldName + 's' }} overordnet organisationsenhed.  
                        <span data-ng-show="!isAdmin">Kontakt en lokal administrator.</span>
                    </p>
                </div>
            </div>
        </form>

        <button class="btn btn-primary btn-sm pull-left" data-ng-click="new()" data-ng-disabled="submitting" >
            <i class="glyphicon glyphicon-plus"></i> 
            Opret ny underafdeling
        </button>
        <button class="btn btn-danger btn-sm pull-right"
            data-ng-disabled="submitting" 
            data-confirmed-click="delete()"
            data-confirm-click="Er du sikker på at du vil slette denne afdeling? Dette vil også slette alle underafdelinger!" data-ng-hide="orgUnit.isRoot">
            <i class="glyphicon glyphicon-trash"></i> 
            Slet afdeling
        </button>
    </div>

    <div class="modal-footer text-center">
        <button class="btn btn-primary" data-ng-disabled="submitting" data-ng-click="patch()">Gem</button>
        <button class="btn btn-warning" data-ng-click="cancel()">Annuller</button>
    </div>
</div>

<!-- create new -->
<div data-ng-show="createNew">
    <div class="modal-header">
        <h3>Ny afdeling</h3>
    </div>
    <div class="modal-body">
        <h4>Rediger info</h4>
        <form name="newForm" novalidate="novalidate" class="form-horizontal">
            <div class="form-group">
                <label for="name" class="col-md-3 control-label">
                    Enhedens navn
                </label>
                <div class="col-md-8">
                    <input type="text" name="name" data-ng-model="newOrgUnit.name" class="form-control" data-ng-required="true" />
                </div>
            </div>
            <div class="form-group">
                <label for="parent" class="col-md-3 control-label">
                    Overordnet enhed
                </label>
                <div class="col-md-8">
                    <input type="text" value="{{orgUnit.oldName}}" class="form-control" disabled="disabled"/>
                </div>
            </div>
        </form>
    </div>

    <div class="modal-footer">
        <button class="btn btn-primary" data-ng-disabled="submitting" data-ng-click="post()">Opret afdeling</button>
        <button class="btn btn-warning" data-ng-click="cancel()">Annuller</button>
    </div>
</div><commit_msg>Renaming<commit_after>﻿<div data-ng-hide="createNew">
    <div class="modal-header">
        <h3>Rediger {{ orgUnit.oldName }}</h3>
    </div>
    <div class="modal-body">
        <h4>Rediger info</h4>
        <form name="editForm" novalidate="novalidate" class="form-horizontal">
            <div class="form-group">
                      <label for="parent" class="col-md-3 control-label">
                          Overordnet enhed
                      </label>
                      <div class="col-md-8">
                          <select type="text" data-ui-select2="" name="parent" data-ng-model="orgUnit.newParent" class="form-control" data-placeholder="Vælg overordnet" data-ng-required="true" data-ng-disabled="!canChangeParent">
                              <option></option>
                              <option data-ng-repeat="unit in orgUnits" value="{{unit.id}}">{{unit.name}}</option>
                          </select>
                      </div>
                      <div class="col-md-8 col-md-offset-3">
                          <p class="help-block" data-ng-show="canChangeParent">
                              Der kan kun vælges blandt de organisationsenheder som er indenfor samme organisation, og som ikke er en underenhed til {{orgUnit.oldName}}.
                          </p>
                          <p class="help-block" data-ng-hide="canChangeParent">
                              Du kan ikke ændre {{ orgUnit.oldName + 's' }} overordnet organisationsenhed.  
                              <span data-ng-show="!isAdmin">Kontakt en lokal administrator.</span>
                          </p>
                      </div>
                  </div>
            <div class="form-group">
                <label for="name" class="col-md-3 control-label">
                    Enhedens navn
                </label>
                <div class="col-md-8">
                    <input type="text" name="name" data-ng-model="orgUnit.newName" class="form-control" data-ng-required="true" />
                </div>
            </div>
            
        </form>

        <button class="btn btn-primary btn-sm pull-left" data-ng-click="new()" data-ng-disabled="submitting" >
            <i class="glyphicon glyphicon-plus"></i> 
            Opret ny underenhed
        </button>
        <button class="btn btn-danger btn-sm pull-right"
            data-ng-disabled="submitting" 
            data-confirmed-click="delete()"
            data-confirm-click="Er du sikker på at du vil slette denne enhed? Dette vil også slette alle underenheder!" data-ng-hide="orgUnit.isRoot">
            <i class="glyphicon glyphicon-trash"></i> 
            Slet enhed
        </button>
    </div>

    <div class="modal-footer text-center">
        <button class="btn btn-primary" data-ng-disabled="submitting" data-ng-click="patch()">Gem</button>
        <button class="btn btn-warning" data-ng-disabled="submitting" data-ng-click="cancel()">Annuller</button>
    </div>
</div>

<!-- create new -->
<div data-ng-show="createNew">
    <div class="modal-header">
        <h3>Ny underenhed</h3>
    </div>
    <div class="modal-body">
        <h4>Rediger info</h4>
        <form name="newForm" novalidate="novalidate" class="form-horizontal">
            <div class="form-group">
                <label for="parent" class="col-md-3 control-label">
                    Overordnet enhed
                </label>
                <div class="col-md-8">
                    <input type="text" value="{{orgUnit.oldName}}" class="form-control" disabled="disabled"/>
                </div>
            </div>
            <div class="form-group">
                <label for="name" class="col-md-3 control-label">
                    Enhedens navn
                </label>
                <div class="col-md-8">
                    <input type="text" name="name" data-ng-model="newOrgUnit.name" class="form-control" data-ng-required="true" />
                </div>
            </div>
        </form>
    </div>

    <div class="modal-footer">
        <button class="btn btn-primary" data-ng-disabled="submitting" data-ng-click="post()">Opret underenhed</button>
        <button class="btn btn-warning" data-ng-click="cancel()">Annuller</button>
    </div>
</div>
{'fraction_non_alphanumeric': 0.1512474632923481, 'fraction_numerical': 0.004536230153993077, 'mean_word_length': 1.7622815694032312, 'pattern_counts': {'":': 0, '<': 175, '<?xml version=': 0, '>': 175, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 3, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '3739167', 'n_tokens_mistral': 2519, 'n_tokens_neox': 2391, 'n_words': 480}