<commit_before>﻿@model LeapList.Models.AddSearchVM

@{
    ViewBag.Title = "AddSearch";
}

<h2>Add Search</h2>

@using (Html.BeginForm("AddSearch", "Profile"))
{
    <div>   
        @Html.LabelFor(x =>x.SearchText)
        @Html.TextBoxFor(x => x.SearchText)
    </div>
    <div>
        @Html.LabelFor(x => x.MinPrice)
        @Html.TextBoxFor(x => x.MinPrice)
    </div>
    <div>
        @Html.LabelFor(x => x.MaxPrice)
        @Html.TextBoxFor(x => x.MaxPrice)
    </div>
    <div>
        @for (int i = 0; i < Model.Categories.Count; i++)
        {
            <div>
                @Html.CheckBoxFor(m => m.Categories[i].IsChecked, new { id = @Model.Categories[i].Code })
                @Html.HiddenFor(m => m.Categories[i].Code)
                @Html.HiddenFor(m => m.Categories[i].Name)
                @Html.Label(@Model.Categories[i].Name)
            </div>
        }
    </div>
    <input type="submit" value="Add Search" />
}<commit_msg>Bootstrap on the add search page<commit_after>﻿@model LeapList.Models.AddSearchVM

@{
    ViewBag.Title = "AddSearch";
}

<h2>Add Search</h2>

@using (Html.BeginForm(new { @class = "form-horizontal" }))
{
    <div class="form-group col">
        <div class="row">
            @Html.LabelFor(x => x.SearchText, new { @class = "control-label col-lg-1 col-md-2" })
            @Html.TextBoxFor(x => x.SearchText, new { @class = "form-control col-sm-8" })
        </div>
    </div>
    <div class="form-group">
        <div class="row">
            @Html.LabelFor(x => x.MinPrice, new { @class = "control-label col-lg-1 col-md-2" })
            @Html.TextBoxFor(x => x.MinPrice, new { @class = "form-control col-sm-2" })
        </div>
    </div>
    <div class="form-group">
        <div class="row">
            @Html.LabelFor(x => x.MaxPrice, new { @class = "control-label col-lg-1 col-md-2" })
            @Html.TextBoxFor(x => x.MaxPrice, new { @class = "form-control col-sm-2" })
        </div>
    </div>
    <label class="control-label">Categories</label>
    <div class="form-group">
        <div class="row">
            @for (int i = 0; i < Model.Categories.Count; i++)
            {
                if (i == 0)
                {
                    @Html.Raw("<div class=\"col-md-3\">")
                }
                if (i % 10 == 0 && i != 0)
                {
                    @Html.Raw("</div><div class=\"col-md-3\">")
                }
                <div class="checkbox">
                    <label class="col-sm-10">
                        @Html.CheckBoxFor(m => m.Categories[i].IsChecked, new { id = @Model.Categories[i].Code }) @Model.Categories[i].Name
                        @Html.HiddenFor(m => m.Categories[i].Code)
                        @Html.HiddenFor(m => m.Categories[i].Name)
                    </label>
                </div>
            }
            @Html.Raw("</div>")
        </div>
    </div>
    <input type="submit" value="Add Search" class="btn btn-default"/>
}
{'fraction_non_alphanumeric': 0.1812964213369345, 'fraction_numerical': 0.008102633355840648, 'mean_word_length': 1.7108874656907593, 'pattern_counts': {'":': 0, '<': 47, '<?xml version=': 0, '>': 63, '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': '353275', 'n_tokens_mistral': 1016, 'n_tokens_neox': 977, 'n_words': 176}