<commit_before>﻿@using MLSoftware.Web.Model
@model MLSoftware.Web.ViewModels.PostViewModel

@{
    ViewData["Title"] = Model.Title;
}

<ol class="breadcrumb">
    <li><a asp-controller="Home" asp-action="Index">Home</a></li>
    @if (Model.IsDraft)
    {
        <li><a asp-controller="Draft" asp-action="Index">Drafts</a></li>
    }
    <li class="active">@Model.Title</li>
</ol>

<article>
    <div class="row">
        <div class="text-center">
            <div class="col-lg-8 col-lg-offset-2 col-md-10 col-md-offset-1">
                <h1>@Model.Title</h1>
            </div>
            @if (!Model.IsDraft)
            {
                <div class="col-lg-12">
                    <span class="published-date">@Model.Published?.ToString("MMMM dd, yyyy hh:mm tt")</span>
                </div>
            }
            <div class="col-lg-8 col-lg-offset-2 col-md-10 col-md-offset-1">
                @if (Model.Tags != null && Model.Tags.Any())
                {
                    <div class="tags">
                        <i class="fa fa-tags"></i>
                        @foreach (var tag in Model.Tags)
                        {
                            <a href="#">@tag</a>
                        }
                    </div>
                }
            </div>
            <div class="col-lg-12">
                @if (User.Identity.IsAuthenticated)
                {
                    <ul class="list-inline text-center">
                        <li><a class="text-muted small" asp-controller="Post" asp-action="Edit" asp-route-id="@Model.Id"><i class="fa fa-edit"></i> Edit</a></li>
                        @if (Model.IsDraft)
                        {
                            <li><a class="text-muted small" asp-controller="Post" asp-action="Publish" asp asp-route-id="@Model.Id"><i class="fa fa-check"></i> Publish</a></li>
                        }
                        else
                        {
                            <li><a class="text-muted small" asp-controller="Post" asp-action="Unpublish" asp asp-route-id="@Model.Id"><i class="fa fa-times"></i> Unpublish</a></li>
                        }
                        <li><a class="text-muted small" asp-controller="Post" asp-action="Delete" asp-route-id="@Model.Id"><i class="fa fa-remove"></i> Delete</a></li>
                    </ul><commit_msg>Add hash tag infront of tag<commit_after>﻿@using MLSoftware.Web.Model
@model MLSoftware.Web.ViewModels.PostViewModel

@{
    ViewData["Title"] = Model.Title;
}

<ol class="breadcrumb">
    <li><a asp-controller="Home" asp-action="Index">Home</a></li>
    @if (Model.IsDraft)
    {
        <li><a asp-controller="Draft" asp-action="Index">Drafts</a></li>
    }
    <li class="active">@Model.Title</li>
</ol>

<article>
    <div class="row">
        <div class="text-center">
            <div class="col-lg-8 col-lg-offset-2 col-md-10 col-md-offset-1">
                <h1>@Model.Title</h1>
            </div>
            @if (!Model.IsDraft)
            {
                <div class="col-lg-12">
                    <span class="published-date">@Model.Published?.ToString("MMMM dd, yyyy hh:mm tt")</span>
                </div>
            }
            <div class="col-lg-8 col-lg-offset-2 col-md-10 col-md-offset-1">
                @if (Model.Tags != null && Model.Tags.Any())
                {
                    <div class="tags">
                        <i class="fa fa-tags"></i>
                        @foreach (var tag in Model.Tags)
                        {
                            <a href="#">#@tag</a>
                        }
                    </div>
                }
            </div>
            <div class="col-lg-12">
                @if (User.Identity.IsAuthenticated)
                {
                    <ul class="list-inline text-center">
                        <li><a class="text-muted small" asp-controller="Post" asp-action="Edit" asp-route-id="@Model.Id"><i class="fa fa-edit"></i> Edit</a></li>
                        @if (Model.IsDraft)
                        {
                            <li><a class="text-muted small" asp-controller="Post" asp-action="Publish" asp asp-route-id="@Model.Id"><i class="fa fa-check"></i> Publish</a></li>
                        }
                        else
                        {
                            <li><a class="text-muted small" asp-controller="Post" asp-action="Unpublish" asp asp-route-id="@Model.Id"><i class="fa fa-times"></i> Unpublish</a></li>
                        }
                        <li><a class="text-muted small" asp-controller="Post" asp-action="Delete" asp-route-id="@Model.Id"><i class="fa fa-remove"></i> Delete</a></li>
                    </ul>
{'fraction_non_alphanumeric': 0.17130120993419656, 'fraction_numerical': 0.006792613033326258, 'mean_word_length': 1.3943089430894309, 'pattern_counts': {'":': 0, '<': 119, '<?xml version=': 0, '>': 119, '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': '1074987', 'n_tokens_mistral': 1455, 'n_tokens_neox': 1382, 'n_words': 232}