<commit_before>@using Links
@model DisplayPackageViewModel
@{
    ViewBag.Title = Model.Title + " " + Model.Version;
    ViewBag.Tab = "Packages";
    Layout = "~/Views/Shared/TwoColumnLayout.cshtml";
    var absolutePackageUrl = Url.Absolute(Url.Package(Model.Id));
}
@section OpenGraph {
    @if(!String.IsNullOrWhiteSpace(ViewBag.FacebookAppID)) {
        <meta property="fb:app_id" content="@ViewBag.FacebookAppID" /> 
    }
    <meta property="og:title"       content="@Model.Title" />
    <meta property="og:type"        content="nugetgallery:package" /> 
    <meta property="og:url"         content="@absolutePackageUrl" /> 
    <meta property="og:description" content="@Model.Description" /> 
    <meta property="og:determiner"  content="a" />
    <meta property="og:image"       content="@(Model.IconUrl ?? Url.Absolute(Links.Content.Images.packageDefaultIcon_png))" />
}
@section BottomScripts {
    @* Facebook SDK *@
    <div id="fb-root"></div>
    <script>(function (d, s, id) {
        var js, fjs = d.getElementsByTagName(s)[0];
        if (d.getElementById(id)) return;
        js = d.createElement(s); js.id = id;
    @if(!String.IsNullOrWhiteSpace(ViewBag.FacebookAppID)) {
        @:js.src = "//connect.facebook.net/en_US/all.js#xfbml=1&appId=@ViewBag.FacebookAppID";
    } else {
        @:js.src = "//connect.facebook.net/en_US/all.js#xfbml=1";
    }
        fjs.parentNode.insertBefore(js, fjs);
    }(document, 'script', 'facebook-jssdk'));</script>

    @* Twitter SDK *@
    <script>!function (d, s, id) { var js, fjs = d.getElementsByTagName(s)[0]; if (!d.getElementById(id)) { js = d.createElement(s); js.id = id; js.src = "//platform.twitter.com/widgets.js"; fjs.parentNode.insertBefore(js, fjs); } }(document, "script", "twitter-wjs");</script>
}
@section SideColumn {
    <img class="logo" src="@(Model.IconUrl ?? Content.Images.packageDefaultIcon_png)" alt="Icon for package @Model.Id" onerror="this.src = '@Content.Images.packageDefaultIcon_png';" />
    <div id="stats">
        <div class="stat">
            <p class="stat-number">@Model.TotalDownloadCount.ToString("n0")</p>
            <p class="stat-label">
                @(Model.TotalDownloadCount == 1 ? "Download" : "Downloads")</p>
        </div>
        <div class="stat">
            <p class="stat-number">@Model.DownloadCount.ToString("n0")</p>
            <p class="stat-label">
                @(Model.DownloadCount == 1 ? "Download" : "Downloads") of v @Model.Version</p>
        </div>
        <div class="stat">
            <p class="stat-number">@Model.LastUpdated.ToNuGetShortDateString()</p>
            <p class="stat-label">
                Last update</p>
        </div>
    </div>
    <nav>
        <ul class="links">
            @if (!String.IsNullOrEmpty(Model.ProjectUrl))
            {
                <li><a href="@Model.ProjectUrl" title="Visit the project site to learn more about this package">
                        Project Site</a></li>
            }
            @if (!String.IsNullOrEmpty(Model.LicenseUrl))
            {
                <li><a href="@Model.LicenseUrl" title="Make sure you agree with the license">License</a></li>
            }
            @if (Model.IsOwner(User))
            {
                <li><a href="@Url.Action(MVC.Packages.ReportMyPackage(Model.Id, Model.Version))" title="Contact support for help with your package">
                        Contact Support</a></li>
            }
            else
            {
                <li><a href="@Url.Action(MVC.Packages.ReportAbuse(Model.Id, Model.Version))" title="Report the package as abusive">
                        Report Abuse</a></li>
            }
            <li><a href="@Url.Action(MVC.Packages.ContactOwners(Model.Id))">Contact Owners</a></li>
            @if (User.Identity.IsAuthenticated)
            {
                <li><a href="@Url.PackageDownload(2, Model.Id, Model.Version)" title="Download the raw nupkg file.">Download</a></li>
            }
            else
            {
                <li><a href="@Url.Action(@MVC.Packages.Download())" title="How do I download?">How to Download</a></li>
            }
            @if (Model.IsOwner(User))
            {
                <li><a href="@Url.EditPackage(Model.Id, Model.Version)">Edit Package</a></li>
                <li><a href="@Url.ManagePackageOwners(Model)">Manage Owners</a></li>
                <li><a href="@Url.DeletePackage(Model)" class="delete">Delete Package</a></li>
            }
            @if (StatisticsHelper.IsStatisticsPageAvailable)
            {
                <li><a href="@Url.StatisticsPackageDownloadByVersion(Model.Id)" title="Package Statistics">Package Statistics</a></li>
            }
        </ul>
    </nav>
}
<div class="package-page">
    @if (Model.HasPendingMetadata)
    {
        <p class="pending-edit-message">
            An edit is pending for this package version. You are seeing the <em>edited</em> package description now. These changes will be completed and visible to everybody soon unless you <a href="@Url.UndoPendingEdits(Model)">undo pending edits</a>.
        </p>
    }
    @if (Model.Prerelease)
    {
        <p class="prerelease-message">
            This is a prerelease version of @Model.Title.
        </p>
    }
    else if (!Model.IsLatestVersionAvailable)
    {
        <p class="not-latest-message">
            This is not the <a href="@Url.Package(Model.Id)" title="View the latest version">latest
                                version</a> of @Model.Title available.
        </p>
    }
    <hgroup class="page-heading">
        <h1>@Model.Title</h1>
        <h2>@Model.Version</h2>
    </hgroup>
    @foreach (var line in Model.Description.ToStringSafe().Split('\n'))
    {
        <p>@line</p>
    }

    @if (!Model.Listed && Model.IsOwner(User))
    {
        <p  class="message warning">
            This package is unlisted and hidden from package listings.
            You can see the package because you are one of its owners. To list the package again, 
            <a href="@Url.DeletePackage(Model)">change its listing setting</a>.<commit_msg>Reword message to 'these changes will be applied to the package file and visible to everybody soon unless you undo pending edits.'<commit_after>@using Links
@model DisplayPackageViewModel
@{
    ViewBag.Title = Model.Title + " " + Model.Version;
    ViewBag.Tab = "Packages";
    Layout = "~/Views/Shared/TwoColumnLayout.cshtml";
    var absolutePackageUrl = Url.Absolute(Url.Package(Model.Id));
}
@section OpenGraph {
    @if(!String.IsNullOrWhiteSpace(ViewBag.FacebookAppID)) {
        <meta property="fb:app_id" content="@ViewBag.FacebookAppID" /> 
    }
    <meta property="og:title"       content="@Model.Title" />
    <meta property="og:type"        content="nugetgallery:package" /> 
    <meta property="og:url"         content="@absolutePackageUrl" /> 
    <meta property="og:description" content="@Model.Description" /> 
    <meta property="og:determiner"  content="a" />
    <meta property="og:image"       content="@(Model.IconUrl ?? Url.Absolute(Links.Content.Images.packageDefaultIcon_png))" />
}
@section BottomScripts {
    @* Facebook SDK *@
    <div id="fb-root"></div>
    <script>(function (d, s, id) {
        var js, fjs = d.getElementsByTagName(s)[0];
        if (d.getElementById(id)) return;
        js = d.createElement(s); js.id = id;
    @if(!String.IsNullOrWhiteSpace(ViewBag.FacebookAppID)) {
        @:js.src = "//connect.facebook.net/en_US/all.js#xfbml=1&appId=@ViewBag.FacebookAppID";
    } else {
        @:js.src = "//connect.facebook.net/en_US/all.js#xfbml=1";
    }
        fjs.parentNode.insertBefore(js, fjs);
    }(document, 'script', 'facebook-jssdk'));</script>

    @* Twitter SDK *@
    <script>!function (d, s, id) { var js, fjs = d.getElementsByTagName(s)[0]; if (!d.getElementById(id)) { js = d.createElement(s); js.id = id; js.src = "//platform.twitter.com/widgets.js"; fjs.parentNode.insertBefore(js, fjs); } }(document, "script", "twitter-wjs");</script>
}
@section SideColumn {
    <img class="logo" src="@(Model.IconUrl ?? Content.Images.packageDefaultIcon_png)" alt="Icon for package @Model.Id" onerror="this.src = '@Content.Images.packageDefaultIcon_png';" />
    <div id="stats">
        <div class="stat">
            <p class="stat-number">@Model.TotalDownloadCount.ToString("n0")</p>
            <p class="stat-label">
                @(Model.TotalDownloadCount == 1 ? "Download" : "Downloads")</p>
        </div>
        <div class="stat">
            <p class="stat-number">@Model.DownloadCount.ToString("n0")</p>
            <p class="stat-label">
                @(Model.DownloadCount == 1 ? "Download" : "Downloads") of v @Model.Version</p>
        </div>
        <div class="stat">
            <p class="stat-number">@Model.LastUpdated.ToNuGetShortDateString()</p>
            <p class="stat-label">
                Last update</p>
        </div>
    </div>
    <nav>
        <ul class="links">
            @if (!String.IsNullOrEmpty(Model.ProjectUrl))
            {
                <li><a href="@Model.ProjectUrl" title="Visit the project site to learn more about this package">
                        Project Site</a></li>
            }
            @if (!String.IsNullOrEmpty(Model.LicenseUrl))
            {
                <li><a href="@Model.LicenseUrl" title="Make sure you agree with the license">License</a></li>
            }
            @if (Model.IsOwner(User))
            {
                <li><a href="@Url.Action(MVC.Packages.ReportMyPackage(Model.Id, Model.Version))" title="Contact support for help with your package">
                        Contact Support</a></li>
            }
            else
            {
                <li><a href="@Url.Action(MVC.Packages.ReportAbuse(Model.Id, Model.Version))" title="Report the package as abusive">
                        Report Abuse</a></li>
            }
            <li><a href="@Url.Action(MVC.Packages.ContactOwners(Model.Id))">Contact Owners</a></li>
            @if (User.Identity.IsAuthenticated)
            {
                <li><a href="@Url.PackageDownload(2, Model.Id, Model.Version)" title="Download the raw nupkg file.">Download</a></li>
            }
            else
            {
                <li><a href="@Url.Action(@MVC.Packages.Download())" title="How do I download?">How to Download</a></li>
            }
            @if (Model.IsOwner(User))
            {
                <li><a href="@Url.EditPackage(Model.Id, Model.Version)">Edit Package</a></li>
                <li><a href="@Url.ManagePackageOwners(Model)">Manage Owners</a></li>
                <li><a href="@Url.DeletePackage(Model)" class="delete">Delete Package</a></li>
            }
            @if (StatisticsHelper.IsStatisticsPageAvailable)
            {
                <li><a href="@Url.StatisticsPackageDownloadByVersion(Model.Id)" title="Package Statistics">Package Statistics</a></li>
            }
        </ul>
    </nav>
}
<div class="package-page">
    @if (Model.HasPendingMetadata)
    {
        <p class="pending-edit-message">
            An edit is pending for this package version. You are seeing the <em>edited</em> package description now. These changes will be applied to the package file and become visible to everybody soon unless you <a href="@Url.UndoPendingEdits(Model)">undo pending edits</a>.
        </p>
    }
    @if (Model.Prerelease)
    {
        <p class="prerelease-message">
            This is a prerelease version of @Model.Title.
        </p>
    }
    else if (!Model.IsLatestVersionAvailable)
    {
        <p class="not-latest-message">
            This is not the <a href="@Url.Package(Model.Id)" title="View the latest version">latest
                                version</a> of @Model.Title available.
        </p>
    }
    <hgroup class="page-heading">
        <h1>@Model.Title</h1>
        <h2>@Model.Version</h2>
    </hgroup>
    @foreach (var line in Model.Description.ToStringSafe().Split('\n'))
    {
        <p>@line</p>
    }

    @if (!Model.Listed && Model.IsOwner(User))
    {
        <p  class="message warning">
            This package is unlisted and hidden from package listings.
            You can see the package because you are one of its owners. To list the package again, 
            <a href="@Url.DeletePackage(Model)">change its listing setting</a>.
{'fraction_non_alphanumeric': 0.1574044069993519, 'fraction_numerical': 0.002106286454957874, 'mean_word_length': 2.37664113785558, 'pattern_counts': {'":': 0, '<': 215, '<?xml version=': 0, '>': 215, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 40, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '5522380', 'n_tokens_mistral': 3802, 'n_tokens_neox': 3674, 'n_words': 749}