<commit_before>﻿<%@ Page MasterPageFile="~/Site.Master" Title="Create" Language="C#" AutoEventWireup="true" CodeBehind="Default.aspx.cs" Inherits="WhenItsDone.WebFormsClient.Create.Default" %>

<asp:Content ContentPlaceHolderID="Stylesheets" runat="server">
    <link href="http://fonts.googleapis.com/icon?family=Material+Icons" rel="stylesheet">
    <link href="https://cdnjs.cloudflare.com/ajax/libs/materialize/0.98.0/css/materialize.min.css" rel="stylesheet">
    <link href="<%= ResolveUrl("~/Content/Css/FixedNavBarWidth.css") %>" rel="stylesheet" type="text/css" />
</asp:Content>

<asp:Content ContentPlaceHolderID="MainContent" runat="server">
    <div id="manage-root" class="content-container-even">
        <section class="content-container-heading">
            <h3>Create Dish</h3>
        </section>

        <div class="well">
            <div class="row">

                <div class="col s8">
                    <div class="row">
                        <div class="input-field col s6">
                            <input runat="server" id="DishName" type="text" class="validate">
                            <label for="DishName">Name</label>
                            <asp:RequiredFieldValidator runat="server" ControlToValidate="DishName" ErrorMessage="Name is required." Display="None"></asp:RequiredFieldValidator>
                            <asp:RegularExpressionValidator runat="server" ControlToValidate="DishName" ValidationExpression=".{2,50}" ErrorMessage="Name must be between 2 and 50 characters long." Display="None"></asp:RegularExpressionValidator>
                        </div>

                        <div class="input-field col s6">
                            <input runat="server" id="DishPrice" type="text" class="validate">
                            <label for="DishPrice">Price</label>
                            <asp:RequiredFieldValidator runat="server" ControlToValidate="DishPrice" ErrorMessage="Price is required." Display="None"></asp:RequiredFieldValidator>
                            <asp:RegularExpressionValidator runat="server" ControlToValidate="DishPrice" ValidationExpression="[0-9\.]{1,9}" ErrorMessage="Price must be a number." Display="None"></asp:RegularExpressionValidator>
                        </div>
                    </div>
<commit_msg>added allowed chars validation to name<commit_after>﻿<%@ Page MasterPageFile="~/Site.Master" Title="Create" Language="C#" AutoEventWireup="true" CodeBehind="Default.aspx.cs" Inherits="WhenItsDone.WebFormsClient.Create.Default" %>

<asp:Content ContentPlaceHolderID="Stylesheets" runat="server">
    <link href="http://fonts.googleapis.com/icon?family=Material+Icons" rel="stylesheet">
    <link href="https://cdnjs.cloudflare.com/ajax/libs/materialize/0.98.0/css/materialize.min.css" rel="stylesheet">
    <link href="<%= ResolveUrl("~/Content/Css/FixedNavBarWidth.css") %>" rel="stylesheet" type="text/css" />
</asp:Content>

<asp:Content ContentPlaceHolderID="MainContent" runat="server">
    <div id="manage-root" class="content-container-even">
        <section class="content-container-heading">
            <h3>Create Dish</h3>
        </section>

        <div class="well">
            <div class="row">

                <div class="col s8">
                    <div class="row">
                        <div class="input-field col s6">
                            <input runat="server" id="DishName" type="text" class="validate">
                            <label for="DishName">Name</label>
                            <asp:RequiredFieldValidator runat="server" ControlToValidate="DishName" ErrorMessage="Name is required." Display="None"></asp:RequiredFieldValidator>
                            <asp:RegularExpressionValidator runat="server" ControlToValidate="DishName" ValidationExpression=".{2,50}" ErrorMessage="Name must be between 2 and 50 characters long." Display="None"></asp:RegularExpressionValidator>
                            <asp:RegularExpressionValidator runat="server" ControlToValidate="DishName" ValidationExpression="[a-zA-Z\-]+" ErrorMessage="Name must contain letters and dashes only." Display="None"></asp:RegularExpressionValidator>
                        </div>

                        <div class="input-field col s6">
                            <input runat="server" id="DishPrice" type="text" class="validate">
                            <label for="DishPrice">Price</label>
                            <asp:RequiredFieldValidator runat="server" ControlToValidate="DishPrice" ErrorMessage="Price is required." Display="None"></asp:RequiredFieldValidator>
                            <asp:RegularExpressionValidator runat="server" ControlToValidate="DishPrice" ValidationExpression="[0-9\.]{1,9}" ErrorMessage="Price must be a number." Display="None"></asp:RegularExpressionValidator>
                        </div>
                    </div>

{'fraction_non_alphanumeric': 0.1423618192943096, 'fraction_numerical': 0.007750356924332041, 'mean_word_length': 2.837245696400626, 'pattern_counts': {'":': 0, '<': 77, '<?xml version=': 0, '>': 77, 'https://': 2, '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': '4823769', 'n_tokens_mistral': 1347, 'n_tokens_neox': 1274, 'n_words': 229}