<commit_before>﻿<%@ page title="Home Page" language="C#" masterpagefile="~/Site.Master" autoeventwireup="true" codebehind="Default.aspx.cs" inherits="eShopLegacyWebForms._Default" %>

<asp:Content ID="CatalogList" ContentPlaceHolderID="MainContent" runat="server">

    <div class="esh-table">
        <p class="esh-link-wrapper">
            <%--@Html.ActionLink("Create New", "Create", null, new { @class = "btn esh-button" })--%>
            <asp:Button Text="Create New" CssClass="btn esh-button" runat="server" />
        </p>

        <asp:ListView ID="productList" runat="server" ItemType="eShopLegacyWebForms.Models.CatalogItem">
            <EmptyDataTemplate>
                <table>
                    <tr>
                        <td>No data was returned.</td>
                    </tr>
                </table>
            </EmptyDataTemplate>
            <ItemTemplate>
                <table class="table">
                    <thead>
                        <tr class="esh-table-header">
                            <th></th>
                            <th>Name
                            </th>
                            <th>Description
                            </th>
                            <th>Brand
                            </th>
                            <th>Type
                            </th>
                            <th>Price
                            </th>
                            <th>Picture name
                            </th>
                            <th>Stock
                            </th>
                            <th>Restock
                            </th>
                            <th>Max stock
                            </th>
                        </tr>
                    </thead>
                    <tbody>
                        <tr>
                            <td>
                                <image class="esh-thumbnail" src='/Pics/<%#:Item.PictureFileName%>' />
                                </a>
                            </td>
                            <td>
                                <p>
                                    <%#:Item.Name%>
                                </p>
                            </td>
                            <td>
                                <p>
                                    <%#:Item.Description%>
                                </p>
                            </td>
                            <td>
                                <p>
                                    <%#:Item.CatalogBrand%>
                                </p>
                            </td>
                            <td>
                                <p>
                                    <%#:Item.CatalogType%>
                                </p>
                            </td>
                            <td>
                                <p>
                                    <%#:Item.Price%>
                                </p>
                            </td>
                            <td>
                                <p>
                                    <%#:Item.PictureFileName%>
                                </p>
                            </td>
                            <td>
                                <p>
                                    <%#:Item.AvailableStock%>
                                </p>
                            </td>
                            <td>
                                <p>
                                    <%#:Item.RestockThreshold%>
                                </p>
                            </td>
                            <td>
                                <p>
                                    <%#:Item.MaxStockThreshold%>
                                </p>
                            </td>
                        </tr>
                    </tbody>
                </table>
            </ItemTemplate>
        </asp:ListView>
    </div>

    <div class="esh-pager">
        <div class="container">
            <article class="esh-pager-wrapper row">
                <nav>
                    <asp:HyperLink ID="PaginationPrevious" runat="server" CssClass="esh-pager-item esh-pager-item--navigable">
                        Previous
                    </asp:HyperLink>

                    <span class="esh-pager-item">Showing <%: Model.ItemsPerPage%> of <%: Model.TotalItems%> products - Page <%: (Model.ActualPage + 1)%> - <%: Model.TotalPages%>
                    </span>
                    
                    <asp:HyperLink ID="PaginationNext" runat="server" CssClass="esh-pager-item esh-pager-item--navigable">
                        Next
                    </asp:HyperLink>
                </nav>
            </article>
        </div>
    </div>
</asp:Content>
<commit_msg>Fix visualization issue.<commit_after>﻿<%@ page title="Home Page" language="C#" masterpagefile="~/Site.Master" autoeventwireup="true" codebehind="Default.aspx.cs" inherits="eShopLegacyWebForms._Default" %>

<asp:Content ID="CatalogList" ContentPlaceHolderID="MainContent" runat="server">

    <div class="esh-table">
        <p class="esh-link-wrapper">
            <%--@Html.ActionLink("Create New", "Create", null, new { @class = "btn esh-button" })--%>
            <asp:Button Text="Create New" CssClass="btn esh-button" runat="server" />
        </p>

        <asp:ListView ID="productList" runat="server" ItemType="eShopLegacyWebForms.Models.CatalogItem">
            <EmptyDataTemplate>
                <table>
                    <tr>
                        <td>No data was returned.</td>
                    </tr>
                </table>
            </EmptyDataTemplate>
            <ItemTemplate>
                <table class="table">
                    <thead>
                        <tr class="esh-table-header">
                            <th></th>
                            <th>Name
                            </th>
                            <th>Description
                            </th>
                            <th>Brand
                            </th>
                            <th>Type
                            </th>
                            <th>Price
                            </th>
                            <th>Picture name
                            </th>
                            <th>Stock
                            </th>
                            <th>Restock
                            </th>
                            <th>Max stock
                            </th>
                        </tr>
                    </thead>
                    <tbody>
                        <tr>
                            <td>
                                <image class="esh-thumbnail" src='/Pics/<%#:Item.PictureFileName%>' />
                                </a>
                            </td>
                            <td>
                                <p>
                                    <%#:Item.Name%>
                                </p>
                            </td>
                            <td>
                                <p>
                                    <%#:Item.Description%>
                                </p>
                            </td>
                            <td>
                                <p>
                                    <%#:Item.CatalogBrand.Brand%>
                                </p>
                            </td>
                            <td>
                                <p>
                                    <%#:Item.CatalogType.Type%>
                                </p>
                            </td>
                            <td>
                                <p>
                                    <%#:Item.Price%>
                                </p>
                            </td>
                            <td>
                                <p>
                                    <%#:Item.PictureFileName%>
                                </p>
                            </td>
                            <td>
                                <p>
                                    <%#:Item.AvailableStock%>
                                </p>
                            </td>
                            <td>
                                <p>
                                    <%#:Item.RestockThreshold%>
                                </p>
                            </td>
                            <td>
                                <p>
                                    <%#:Item.MaxStockThreshold%>
                                </p>
                            </td>
                        </tr>
                    </tbody>
                </table>
            </ItemTemplate>
        </asp:ListView>
    </div>

    <div class="esh-pager">
        <div class="container">
            <article class="esh-pager-wrapper row">
                <nav>
                    <asp:HyperLink ID="PaginationPrevious" runat="server" CssClass="esh-pager-item esh-pager-item--navigable">
                        Previous
                    </asp:HyperLink>

                    <span class="esh-pager-item">Showing <%: Model.ItemsPerPage%> of <%: Model.TotalItems%> products - Page <%: (Model.ActualPage + 1)%> - <%: Model.TotalPages%>
                    </span>
                    
                    <asp:HyperLink ID="PaginationNext" runat="server" CssClass="esh-pager-item esh-pager-item--navigable">
                        Next
                    </asp:HyperLink>
                </nav>
            </article>
        </div>
    </div>
</asp:Content>

{'fraction_non_alphanumeric': 0.11015721969383534, 'fraction_numerical': 0.0002068680182043856, 'mean_word_length': 0.5887282287216563, 'pattern_counts': {'":': 0, '<': 241, '<?xml version=': 0, '>': 241, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 18, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '1671299', 'n_tokens_mistral': 2327, 'n_tokens_neox': 2130, 'n_words': 346}