<commit_before>﻿<div ng-controller="Skybrud.LinkPicker.Link.Controller">
    <div ng-show="!model.value">
        <a href="#" prevent-default ng-click="addLink()" class="linkpicker-preview-add">Add</a>
    </div>
    <div class="linkpicker-preview" ng-show="model.value">
        <i class="linkpicker-preview__icon icon-document" ng-show="model.value.type == 'content'"></i>
        <i class="linkpicker-preview__icon icon-umb-media" ng-show="model.value.type == 'media'"></i>
        <i class="linkpicker-preview__icon icon-link" ng-show="model.value.type == 'url'"></i>
        <div class="linkpicker-preview__content">
            <div class="linkpicker-preview__name">
                <a href="{{model.value.url}}" target="_blank" rel="noopener">{{model.value.name || model.value.url}}</a>
                <small ng-if="model.value.target == '_blank'">(<localize key="linkpicker_targetBlank">new tab/window</localize>)</small>
            </div>
            <div class="linkpicker-preview__description">
                <localize key="linkpicker_content" ng-show="model.value.type == 'content'">Content</localize>
                <localize key="linkpicker_media" ng-show="model.value.type == 'media'">Media</localize>
                <localize key="linkpicker_url" ng-show="model.value.type == 'url'">URL</localize>
                <span ng-if="model.value.name">&bull; {{model.value.url}}{{model.value.anchor}}</span>
            </div>
        </div>
        <div class="linkpicker-preview__actions">
            <a class="linkpicker-preview__action" href="#" prevent-default="" ng-click="editLink()">
                <localize key="linkpicker_editLink">Edit</localize>
            </a>
            <a class="linkpicker-preview__action linkpicker-preview__action--red" href="#" prevent-default="" ng-click="removeLink()">
                <localize key="linkpicker_removeLink">Remove</localize>
            </a>
        </div>
    </div>
    <pre>{{model.value | json}}</pre>
</div><commit_msg>View shouldn't include <pre> element used for debugging<commit_after>﻿<div ng-controller="Skybrud.LinkPicker.Link.Controller">
    <div ng-show="!model.value">
        <a href="#" prevent-default ng-click="addLink()" class="linkpicker-preview-add">Add</a>
    </div>
    <div class="linkpicker-preview" ng-show="model.value">
        <i class="linkpicker-preview__icon icon-document" ng-show="model.value.type == 'content'"></i>
        <i class="linkpicker-preview__icon icon-umb-media" ng-show="model.value.type == 'media'"></i>
        <i class="linkpicker-preview__icon icon-link" ng-show="model.value.type == 'url'"></i>
        <div class="linkpicker-preview__content">
            <div class="linkpicker-preview__name">
                <a href="{{model.value.url}}" target="_blank" rel="noopener">{{model.value.name || model.value.url}}</a>
                <small ng-if="model.value.target == '_blank'">(<localize key="linkpicker_targetBlank">new tab/window</localize>)</small>
            </div>
            <div class="linkpicker-preview__description">
                <localize key="linkpicker_content" ng-show="model.value.type == 'content'">Content</localize>
                <localize key="linkpicker_media" ng-show="model.value.type == 'media'">Media</localize>
                <localize key="linkpicker_url" ng-show="model.value.type == 'url'">URL</localize>
                <span ng-if="model.value.name">&bull; {{model.value.url}}{{model.value.anchor}}</span>
            </div>
        </div>
        <div class="linkpicker-preview__actions">
            <a class="linkpicker-preview__action" href="#" prevent-default="" ng-click="editLink()">
                <localize key="linkpicker_editLink">Edit</localize>
            </a>
            <a class="linkpicker-preview__action linkpicker-preview__action--red" href="#" prevent-default="" ng-click="removeLink()">
                <localize key="linkpicker_removeLink">Remove</localize>
            </a>
        </div>
    </div>
</div>
{'fraction_non_alphanumeric': 0.18290854572713644, 'fraction_numerical': 0.0, 'mean_word_length': 3.055724417426545, 'pattern_counts': {'":': 0, '<': 94, '<?xml version=': 0, '>': 94, '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': '5454462', 'n_tokens_mistral': 1227, 'n_tokens_neox': 1180, 'n_words': 176}