<commit_before>﻿@using Orchard.ContentManagement
@using Orchard.MediaLibrary.Fields
@using Orchard.Utility.Extensions;

@{
    var field = (MediaLibraryPickerField)Model.ContentField;
    string name = field.DisplayName;
    var contents = field.MediaParts;
}
<section class="media-library-picker-field media-library-picker-field-@name.HtmlClassify()">

    <div class="@Bootstrap.Row">
        <div class="@Bootstrap.Column(12, 12, 12, 12)">
            @Display(BuildDisplay(contents.First(), "Detail"))
        </div>
    </div>
</section>

<commit_msg>Add code contract.<commit_after>﻿@using Orchard.ContentManagement
@using Orchard.MediaLibrary.Fields
@using Orchard.Utility.Extensions;

@{
    var field = (MediaLibraryPickerField)Model.ContentField;
    string name = field.DisplayName;
    var contents = field.MediaParts;
}

@if (contents.Count() > 0)
{
    <section class="media-library-picker-field media-library-picker-field-@name.HtmlClassify()">
        <div class="@Bootstrap.Row">
            <div class="@Bootstrap.Column(12, 12, 12, 12)">
                @Display(BuildDisplay(contents.First(), "Detail"))
            </div>
        </div>
    </section>
}

{'fraction_non_alphanumeric': 0.14808510638297873, 'fraction_numerical': 0.01446808510638298, 'mean_word_length': 3.62992125984252, 'pattern_counts': {'":': 0, '<': 15, '<?xml version=': 0, '>': 16, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 2, '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': '6278286', 'n_tokens_mistral': 381, 'n_tokens_neox': 351, 'n_words': 65}