<commit_before><template>
    <p class="copyable" :class="{'copied': copySuccess, 'copy-failed': copyFailure}">
        <slot></slot>
        <button v-clipboard:copy="copyText"
            v-clipboard:success="onCopySuccess"
            v-clipboard:error="onCopyError" aria-label="copy button" title="copy this">
        <i class="fas" :class="{'fa-check': copySuccess && copyAttempt, 'fa-times': copyFailure, 'fa-clipboard': !copyAttempt}"></i></button>
        <button aria-label="edit button" v-if="editButton" @click="$emit('edit')" title="edit this">
            <i class="fas fa-pencil"></i>
        </button>
    </p>
</template>

<script>
    export default {<commit_msg>Switch edit slug button icon to fa-pencil-alt<commit_after><template>
    <p class="copyable" :class="{'copied': copySuccess, 'copy-failed': copyFailure}">
        <slot></slot>
        <button v-clipboard:copy="copyText"
            v-clipboard:success="onCopySuccess"
            v-clipboard:error="onCopyError" aria-label="copy button" title="copy this">
        <i class="fas" :class="{'fa-check': copySuccess && copyAttempt, 'fa-times': copyFailure, 'fa-clipboard': !copyAttempt}"></i></button>
        <button aria-label="edit button" v-if="editButton" @click="$emit('edit')" title="edit this">
            <i class="fas fa-pencil-alt"></i>
        </button>
    </p>
</template>

<script>
    export default {
{'fraction_non_alphanumeric': 0.18839541547277938, 'fraction_numerical': 0.0, 'mean_word_length': 3.5357142857142856, 'pattern_counts': {'":': 0, '<': 33, '<?xml version=': 0, '>': 33, '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': '2018241', 'n_tokens_mistral': 441, 'n_tokens_neox': 439, 'n_words': 88}