<commit_before>﻿@using LETS.Helpers
@using Orchard.ArchiveLater.Models
@using Orchard.ContentManagement
@using Orchard.Core.Common.Models
@{
    var createdUtc = Model.ContentPart.CreatedUtc != null ? TimeZoneInfo.ConvertTimeFromUtc(Model.ContentPart.CreatedUtc, WorkContext.CurrentTimeZone) : null;
    var publishedUtc = Model.ContentPart.PublishedUtc != null ? TimeZoneInfo.ConvertTimeFromUtc(Model.ContentPart.PublishedUtc, WorkContext.CurrentTimeZone) : null;
    var republished = publishedUtc != null && createdUtc != null ?? (publishedUtc - createdUtc).Days > 1;
}
@if (republished)
{
    <div class="published">
        <h6>
            @T("Re-posted") @publishedUtc.ToString("d MMMM yyyy") at @publishedUtc.ToShortTimeString()<br />
            (@T("First posted") @createdUtc.ToString("d MMMM yyyy"))
        </h6>
    </div>
}
else if (publishedUtc != null)
{
    <div class="published"><h6>@T("Posted") @publishedUtc.ToString("d MMMM yyyy") at @publishedUtc.ToShortTimeString()</h6></div>
}
@if (Helpers.IsPublished(Model.ContentItem))
{
    var archiveDate = ((CommonPart)Model.ContentPart).As<ArchiveLaterPart>().ScheduledArchiveUtc.Value;
    <div class="archived"><h6>@Display.ArchiveState(archiveDateTimeUtc: archiveDate)</h6></div>
}<commit_msg>Fix logic mistake<commit_after>﻿@using LETS.Helpers
@using Orchard.ArchiveLater.Models
@using Orchard.ContentManagement
@using Orchard.Core.Common.Models
@{
    var createdUtc = Model.ContentPart.CreatedUtc != null ? TimeZoneInfo.ConvertTimeFromUtc(Model.ContentPart.CreatedUtc, WorkContext.CurrentTimeZone) : null;
    var publishedUtc = Model.ContentPart.PublishedUtc != null ? TimeZoneInfo.ConvertTimeFromUtc(Model.ContentPart.PublishedUtc, WorkContext.CurrentTimeZone) : null;
    var republished = publishedUtc != null && createdUtc != null && (publishedUtc - createdUtc).Days > 1;
}
@if (republished)
{
    <div class="published">
        <h6>
            @T("Re-posted") @publishedUtc.ToString("d MMMM yyyy") at @publishedUtc.ToShortTimeString()<br />
            (@T("First posted") @createdUtc.ToString("d MMMM yyyy"))
        </h6>
    </div>
}
else if (publishedUtc != null)
{
    <div class="published"><h6>@T("Posted") @publishedUtc.ToString("d MMMM yyyy") at @publishedUtc.ToShortTimeString()</h6></div>
}
@if (Helpers.IsPublished(Model.ContentItem))
{
    var archiveDate = ((CommonPart)Model.ContentPart).As<ArchiveLaterPart>().ScheduledArchiveUtc.Value;
    <div class="archived"><h6>@Display.ArchiveState(archiveDateTimeUtc: archiveDate)</h6></div>
}
{'fraction_non_alphanumeric': 0.1484992101105845, 'fraction_numerical': 0.005529225908372828, 'mean_word_length': 5.103614457831325, 'pattern_counts': {'":': 0, '<': 31, '<?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': '2649242', 'n_tokens_mistral': 857, 'n_tokens_neox': 825, 'n_words': 138}