<commit_before>﻿@using Orchard.AuditTrail.Providers.Content
@using Orchard.ContentManagement
@{
    var contentItem = (ContentItem) Model.ContentItem;
    var previousVersion = (ContentItem) Model.PreviousVersion;
    var diffNodes = (IEnumerable<DiffNode>) Model.DiffNodes;
}

<div>
    @T("This version:")
    @Html.ItemEditLink(contentItem)
</div>
@if (previousVersion != null) {
    <div>
        @T("Previous version:")
        @Html.ItemEditLink(previousVersion)
    </div>

    <table class="items">
        <thead>
            <tr>
                <th>@T("Diff Type")</th>
                <th>@T("Context")</th><commit_msg>150: Cleaning up content event details view and adding more information.<commit_after>﻿@using Orchard.AuditTrail.Models
@using Orchard.AuditTrail.Providers.Content
@using Orchard.ContentManagement
@{
    var record = (AuditTrailEventRecord)Model.Record;
    var contentItem = (ContentItem) Model.ContentItem;
    var previousVersion = (ContentItem) Model.PreviousVersion;
    var diffNodes = (IEnumerable<DiffNode>) Model.DiffNodes;
}

<fieldset>
    <strong>@Html.ItemDisplayText(contentItem)</strong>@T(" - ")@contentItem.ContentType
    <span class="hint">@T("Version {0}", contentItem.Version)</span>
    @if (!String.IsNullOrWhiteSpace(record.Comment)) {
        <text>&quot;@record.Comment&quot;</text>
    }
</fieldset>
@if (previousVersion != null) {
    <table class="items">
        <thead>
            <tr>
                <th>@T("Diff Type")</th>
                <th>@T("Context")</th>
{'fraction_non_alphanumeric': 0.1505235602094241, 'fraction_numerical': 0.002617801047120419, 'mean_word_length': 3.4838709677419355, 'pattern_counts': {'":': 0, '<': 31, '<?xml version=': 0, '>': 31, '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': '6205814', 'n_tokens_mistral': 483, 'n_tokens_neox': 473, 'n_words': 87}