<commit_before>﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Site.Master" AutoEventWireup="true" CodeBehind="ProductsList.aspx.cs" Inherits="ZobShop.Web.Product.ProductsList" %>

<asp:Content ID="Content1" ContentPlaceHolderID="MainContent" runat="server">
    <asp:DropDownList ID="CategoriesDropDownList" runat="server"
        OnSelectedIndexChanged="CategoriesDropDownList_OnSelectedIndexChanged"
        AutoPostBack="True"
        EnableViewState="True"
        SelectMethod="SelectCategories">
    </asp:DropDownList>
    <asp:UpdatePanel runat="server">
        <Triggers>
            <asp:AsyncPostBackTrigger EventName="SelectedIndexChanged" ControlID="CategoriesDropDownList" runat="server" />
        </Triggers>
        <ContentTemplate>
            <asp:GridView runat="server" ID="ProductList" AutoGenerateColumns="False"
                ItemType="ZobShop.ModelViewPresenter.Product.Details.ProductDetailsViewModel"
                DataKeyNames="Id"
                CssClass="productsGrid" BorderColor="White" BorderStyle="None"
                SelectMethod="Select">
                <Columns>
                    <asp:BoundField DataField="Name" HeaderText="Product Name" />
                    <asp:BoundField DataField="Maker" HeaderText="Maker" />
                    <asp:BoundField DataField="Category" HeaderText="Category" />
                    <asp:BoundField DataField="Price" HeaderText="Price" />
                    <asp:BoundField DataField="Volume" HeaderText="Volume" />
                    <asp:TemplateField HeaderText="Photo" HeaderStyle-CssClass="">
                        <ItemTemplate>
                            <asp:Image ID="imgStatus" runat="server" ImageUrl='<%# "data:image/jpg;base64," + Convert.ToBase64String((byte[])Eval("ImageBuffer")) %>' Height="200" Width="200" ImageAlign="Middle" CssClass="productImage" />
                        </ItemTemplate>
                    </asp:TemplateField>
                </Columns>
            </asp:GridView>
        </ContentTemplate>
    </asp:UpdatePanel>
</asp:Content><commit_msg>Changed product list image size to not stretch<commit_after>﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Site.Master" AutoEventWireup="true" CodeBehind="ProductsList.aspx.cs" Inherits="ZobShop.Web.Product.ProductsList" %>

<asp:Content ID="Content1" ContentPlaceHolderID="MainContent" runat="server">
    <asp:DropDownList ID="CategoriesDropDownList" runat="server"
        OnSelectedIndexChanged="CategoriesDropDownList_OnSelectedIndexChanged"
        AutoPostBack="True"
        EnableViewState="True"
        SelectMethod="SelectCategories">
    </asp:DropDownList>
    <asp:UpdatePanel runat="server">
        <Triggers>
            <asp:AsyncPostBackTrigger EventName="SelectedIndexChanged" ControlID="CategoriesDropDownList" runat="server" />
        </Triggers>
        <ContentTemplate>
            <asp:GridView runat="server" ID="ProductList" AutoGenerateColumns="False"
                ItemType="ZobShop.ModelViewPresenter.Product.Details.ProductDetailsViewModel"
                DataKeyNames="Id"
                CssClass="productsGrid" BorderColor="White" BorderStyle="None"
                SelectMethod="Select">
                <Columns>
                    <asp:BoundField DataField="Name" HeaderText="Product Name" />
                    <asp:BoundField DataField="Maker" HeaderText="Maker" />
                    <asp:BoundField DataField="Category" HeaderText="Category" />
                    <asp:BoundField DataField="Price" HeaderText="Price" />
                    <asp:BoundField DataField="Volume" HeaderText="Volume" />
                    <asp:TemplateField HeaderText="Photo" HeaderStyle-CssClass="">
                        <ItemTemplate>
                            <asp:Image ID="imgStatus" runat="server" ImageUrl='<%# "data:image/jpg;base64," + Convert.ToBase64String((byte[])Eval("ImageBuffer")) %>' Height="200" ImageAlign="Middle" CssClass="productImage" />
                        </ItemTemplate>
                    </asp:TemplateField>
                </Columns>
            </asp:GridView>
        </ContentTemplate>
    </asp:UpdatePanel>
</asp:Content>
{'fraction_non_alphanumeric': 0.1284381726859603, 'fraction_numerical': 0.004544367376225784, 'mean_word_length': 2.812215132178669, 'pattern_counts': {'":': 0, '<': 57, '<?xml version=': 0, '>': 57, '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': '5551620', 'n_tokens_mistral': 1150, 'n_tokens_neox': 1072, 'n_words': 159}