<commit_before><template>
    <div class="h-100 d-flex flex-column">
        <div class="d-flex align-items-center justify-content-between">
            <h1>{{ entity.name }}</h1>
            <span>
                <button type="button" class="btn btn-success" :disabled="!isFormDirty || !$can('duplicate_edit_concepts')" @click="saveEntity(entity)">
                    <i class="fas fa-fw fa-save"></i> {{ $t('global.save') }}
                </button>
                <button type="button" class="btn btn-danger" :disabled="!$can('delete_move_concepts')" @click="deleteEntity(entity)">
                    <i class="fas fa-fw fa-trash"></i> {{ $t('global.delete') }}
                </button>
            </span>
        </div>
        <attributes class="pt-2 col pl-0 pr-2 scroll-y-auto scroll-x-hidden" v-if="dataLoaded" v-can="'view_concept_props'"
            :attributes="entity.attributes"
            :dependencies="entity.dependencies"
            :disable-drag="true"
            :on-metadata="showMetadata"
            :metadata-addon="hasReferenceGroup"
            :selections="entity.selections"
            :values="entity.data">
        </attributes>

        <router-view
            v-can="'view_concept_props'"
            :bibliography="bibliography"
            :refs="ref">
        </router-view>
        <discard-changes-modal :name="discardModal"/>
    </div>
</template><commit_msg>add last editor to entity detail component<commit_after><template>
    <div class="h-100 d-flex flex-column">
        <div class="d-flex align-items-center justify-content-between">
            <h1 class="mb-0">
                {{ entity.name }}
            </h1>
            <span>
                <button type="button" class="btn btn-success" :disabled="!isFormDirty || !$can('duplicate_edit_concepts')" @click="saveEntity(entity)">
                    <i class="fas fa-fw fa-save"></i> {{ $t('global.save') }}
                </button>
                <button type="button" class="btn btn-danger" :disabled="!$can('delete_move_concepts')" @click="deleteEntity(entity)">
                    <i class="fas fa-fw fa-trash"></i> {{ $t('global.delete') }}
                </button>
            </span>
        </div>
        <div>
            <i class="fas fa-fw fa-user-edit"></i>
            <span class="font-weight-bold">
                {{ entity.lasteditor }}
            </span>
            -
            {{ entity.updated_at || entity.created_at }}
        </div>
        <attributes class="pt-2 col pl-0 pr-2 scroll-y-auto scroll-x-hidden" v-if="dataLoaded" v-can="'view_concept_props'"
            :attributes="entity.attributes"
            :dependencies="entity.dependencies"
            :disable-drag="true"
            :on-metadata="showMetadata"
            :metadata-addon="hasReferenceGroup"
            :selections="entity.selections"
            :values="entity.data">
        </attributes>

        <router-view
            v-can="'view_concept_props'"
            :bibliography="bibliography"
            :refs="ref">
        </router-view>
        <discard-changes-modal :name="discardModal"/>
    </div>
</template>
{'fraction_non_alphanumeric': 0.16406995230524643, 'fraction_numerical': 0.005405405405405406, 'mean_word_length': 1.9933396764985727, 'pattern_counts': {'":': 0, '<': 55, '<?xml version=': 0, '>': 55, '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': '4815925', 'n_tokens_mistral': 942, 'n_tokens_neox': 893, 'n_words': 150}