<commit_before><ion-view>
    <ion-header-bar align-title="center" class="bar-dark">
        <div class="buttons">
            <button class="button button-clear button-assertive" data-ng-click="cancel()">
                Dismiss
            </button>
        </div>
        <h1 class="title">User permissions</h1>
        <div class="buttons">
            <button class="button button-clear button-positive" data-ng-click="ok()">
                Done
            </button>
        </div>
    </ion-header-bar>
    <ion-content>
        <h4 class="subtitle">{{dataModel.title}}</h4>

        <div class="list">
            <label class="item item-input item-select" data-ng-repeat="user in dataModel.users">
                <span class="input-label">{{user.name}}</span>
                <select data-ng-model="user.permissionLevel">
                    <option ng-selected="user.permissionLevel === 0" value="0">None</option>
                    <option ng-selected="user.permissionLevel === 1" value="1">Read</option>
                    <option ng-selected="user.permissionLevel === 2" value="2">Write</option>
                    <option ng-selected="user.permissionLevel === 3" value="3">Admin</option>
                </select>
            </label>
        </div>
    </ion-content>
</ion-view><commit_msg>Fix: edit user no other users.<commit_after><ion-view>
    <ion-header-bar align-title="center" class="bar-dark">
        <div class="buttons">
            <button class="button button-clear button-assertive" data-ng-click="cancel()">
                Dismiss
            </button>
        </div>
        <h1 class="title">User permissions</h1>
        <div class="buttons">
            <button class="button button-clear button-positive" data-ng-click="ok()">
                Done
            </button>
        </div>
    </ion-header-bar>
    <ion-content>
        <h4 class="subtitle">{{dataModel.title}}</h4>

        <div class="assertive" data-ng-if="dataModel.users.length === 0">No other users.</div>

        <div class="list">
            <label class="item item-input item-select" data-ng-repeat="user in dataModel.users">
                <span class="input-label">{{user.name}}</span>
                <select data-ng-model="user.permissionLevel">
                    <option ng-selected="user.permissionLevel === 0" value="0">None</option>
                    <option ng-selected="user.permissionLevel === 1" value="1">Read</option>
                    <option ng-selected="user.permissionLevel === 2" value="2">Write</option>
                    <option ng-selected="user.permissionLevel === 3" value="3">Admin</option>
                </select>
            </label>
        </div>
    </ion-content>
</ion-view>
{'fraction_non_alphanumeric': 0.16709323583180988, 'fraction_numerical': 0.009140767824497258, 'mean_word_length': 2.043381535038932, 'pattern_counts': {'":': 0, '<': 73, '<?xml version=': 0, '>': 73, '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': '6949117', 'n_tokens_mistral': 792, 'n_tokens_neox': 749, 'n_words': 140}