<commit_before><div class="image-picker">
    <div class="modal-header" id="image-picker-modal-header">
        <button id="add-image" *ngIf="selectedDocuments.length === 0"
                class="btn btn-primary disabled" disabled>
            <span class="mdi mdi-link"></span>
            <span class="button-label" i18n="@@docedit.imagePicker.linkImage">Bild verknüpfen</span>
        </button>
        <button id="add-image" *ngIf="selectedDocuments.length === 1"
                (click)="applySelection()"
                class="btn btn-primary">
            <span class="mdi mdi-link"></span>
            <span class="button-label" i18n="@@docedit.imagePicker.linkImage">Bild verknüpfen</span>
        </button>
        <button id="add-images" *ngIf="selectedDocuments.length > 1"
                (click)="applySelection()" class="btn btn-primary">
            <span class="mdi mdi-link"></span>
            <span class="button-label"
                  i18n="@@docedit.imagePicker.linkImages">{{selectedDocuments.length}} Bilder verknüpfen</span>
        </button>
        <button type="button" class="btn btn-secondary"
                (click)="activeModal.dismiss('cancel')">
            <span class="mdi mdi-close"></span>
        </button>
    </div>

    <div class="modal-body" id="image-picker-modal">
        <search-bar *ngIf="!selectedDocuments.length"
                    [showFiltersMenu]="false"
                    (onQueryStringChanged)="setQueryString($event)">
        </search-bar>
        <div class="image-grid" (window:resize)="onResize()">
            <image-grid #imageGrid
                    [nrOfColumns]="3"
                    [documents]="documents"
                    [selected]="selectedDocuments"
                    [showLinkBadges]="false"
                    [showShortDescription]="false"
                    [paddingRight]="12"
                    (onClick)="select($event)">
            </image-grid>
        </div>
    </div>
</div><commit_msg>get rid of duplicate add-image button<commit_after><div class="image-picker">
    <div class="modal-header" id="image-picker-modal-header">
        <button id="add-image" *ngIf="selectedDocuments.length <= 1"
                (click)="applySelection()"
                class="btn btn-primary"
                [disabled]="selectedDocuments.length === 0"
                [class.disabled] ="selectedDocuments.length === 0">
            <span class="mdi mdi-link"></span>
            <span class="button-label" i18n="@@docedit.imagePicker.linkImage">Bild verknüpfen</span>
        </button>
        <button id="add-images" *ngIf="selectedDocuments.length > 1"
                (click)="applySelection()" class="btn btn-primary">
            <span class="mdi mdi-link"></span>
            <span class="button-label"
                  i18n="@@docedit.imagePicker.linkImages">{{selectedDocuments.length}} Bilder verknüpfen</span>
        </button>
        <button type="button" class="btn btn-secondary"
                (click)="activeModal.dismiss('cancel')">
            <span class="mdi mdi-close"></span>
        </button>
    </div>

    <div class="modal-body" id="image-picker-modal">
        <search-bar *ngIf="!selectedDocuments.length"
                    [showFiltersMenu]="false"
                    (onQueryStringChanged)="setQueryString($event)">
        </search-bar>
        <div class="image-grid" (window:resize)="onResize()">
            <image-grid #imageGrid
                    [nrOfColumns]="3"
                    [documents]="documents"
                    [selected]="selectedDocuments"
                    [showLinkBadges]="false"
                    [showShortDescription]="false"
                    [paddingRight]="12"
                    (onClick)="select($event)">
            </image-grid>
        </div>
    </div>
</div>
{'fraction_non_alphanumeric': 0.15767526713578317, 'fraction_numerical': 0.005994266353922335, 'mean_word_length': 2.0654952076677318, 'pattern_counts': {'":': 0, '<': 66, '<?xml version=': 0, '>': 67, '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': '2005393', 'n_tokens_mistral': 1127, 'n_tokens_neox': 1054, 'n_words': 165}