<commit_before>﻿@model AstroPhotoGallery.Models.EditViewModel
@{
    ViewBag.Title = "Edit";
}
<link rel="stylesheet" type="text/css" href="~/Content/jquery-ui.css" />  @*Used for the date picker*@
<link rel="stylesheet" type="text/css" href="~/Content/browseButtonStyles.css" /> @*Used for the browse custom button*@
<script src="~/Scripts/jquery-ui.js"></script> @*Used for the date picker*@
<script src="~/Scripts/browseButton.js"></script> @*Used for the browse custom button*@

<div class="container">
    <div class="well">
        @using (Html.BeginForm("Edit", "Account", FormMethod.Post, new { @class = "form-horizontal", role = "form", enctype = "multipart/form-data" }))
        {
            @Html.ValidationSummary()
            @Html.HiddenFor(m => m.Id)
            @Html.AntiForgeryToken()
            <h3>Edit your profile.</h3>
            <hr />
            @Html.ValidationSummary("", new { @class = "text-danger" })

            <div class="form-group">
                @Html.LabelFor(m => m.FirstName, new { @class = "col-sm-4 control-label" })
                <div class="col-sm-4">
                    @Html.TextBoxFor(m => m.FirstName, new { @class = "form-control", placeholder = Html.DisplayNameFor(x => x.FirstName) })
                </div>
            </div>

            <div class="form-group">
                @Html.LabelFor(m => m.LastName, new { @class = "col-sm-4 control-label" })
                <div class="col-sm-4">
                    @Html.TextBoxFor(m => m.LastName, new { @class = "form-control", placeholder = Html.DisplayNameFor(x => x.LastName) })
                </div>
            </div>

            <div class="form-group">
                @Html.LabelFor(m => m.Gender, new { @class = "col-sm-4 control-label" })
                <div class="col-sm-6">

                    <span class="radio-inline">@Html.RadioButtonFor(model => model.Gender, "Male", false)@Html.Label("Male")</span>

                    <span class="radio-inline">
                        @Html.RadioButtonFor(model => model.Gender, "Female", false)@Html.Label("Female")
                    </span>

                    <span class="radio-inline">
                        @Html.RadioButtonFor(model => model.Gender, "Prefer not so say", false)@Html.Label("Prefer not so say")
                    </span>

                    <span class="radio-inline">
                        @Html.RadioButtonFor(model => model.Gender, "N/A", false)@Html.Label("N/A")
                    </span>
                </div>
            </div>

            <div class="form-group">
                @Html.Label("Profile picture", new { @class = "col-sm-4 control-label" })
                <div class="fileinput fileinput-new col-sm-4" data-provides="fileinput">
                    <span class="btn btn-default btn-file"><span>Choose picture</span><input type="file" id="ImagePath" name="ImagePath" /></span>
                    <span class="fileinput-filename"></span><span class="fileinput-new">No picture chosen</span>
                    @if (Model.ImagePath != null)
                    {
                        <div class="checkbox">
                            <label>
                                <input type="checkbox" />
                                @Html.CheckBoxFor(m => m.RemovePicture)
                                @Html.LabelFor(m => m.RemovePicture)
                            </label>
                        </div>
                    }
                </div>
            </div>
            <div class="form-group">
                @Html.LabelFor(m => m.Country, new { @class = "col-sm-4 control-label" })
                <div class="col-sm-4">
                    @Html.TextBoxFor(m => m.Country, new { @class = "form-control", placeholder = Html.DisplayNameFor(x => x.Country) })
                </div>
            </div>

            <div class="form-group">
                @Html.LabelFor(m => m.City, new { @class = "col-sm-4 control-label" })
                <div class="col-sm-4">
                    @Html.TextBoxFor(m => m.City, new { @class = "form-control", placeholder = Html.DisplayNameFor(x => x.City) })
                </div>
            </div>

            <div class="form-group">
                @Html.LabelFor(m => m.Birthday, new { @class = "col-sm-4 control-label" })
                <div class="col-sm-4">
                    @Html.TextBoxFor(m => m.Birthday, new { @class = "form-control", @readonly = "readonly", @id = "birthday", placeholder = Html.DisplayNameFor(x => x.Birthday) })

                    @if (!Model.Birthday.Equals(string.Empty))
                    {
                        <div class="checkbox">
                            <label>
                                <input type="checkbox" />
                                @Html.CheckBoxFor(m => m.RemoveBirthday)
                                @Html.LabelFor(m => m.RemoveBirthday)
                            </label>
                        </div>
                    }
                </div>
            </div>

            <div class="form-group">
                @Html.LabelFor(m => m.PhoneNumber, new { @class = "col-sm-4 control-label" })
                <div class="col-sm-4">
                    @Html.TextBoxFor(m => m.PhoneNumber, new { @class = "form-control", placeholder = Html.DisplayNameFor(x => x.PhoneNumber) })
                </div>
            </div>

            <div class="form-group"><commit_msg>fix bug when the user's birthday is null<commit_after>﻿@model AstroPhotoGallery.Models.EditViewModel
@{
    ViewBag.Title = "Edit";
}
<link rel="stylesheet" type="text/css" href="~/Content/jquery-ui.css" />  @*Used for the date picker*@
<link rel="stylesheet" type="text/css" href="~/Content/browseButtonStyles.css" /> @*Used for the browse custom button*@
<script src="~/Scripts/jquery-ui.js"></script> @*Used for the date picker*@
<script src="~/Scripts/browseButton.js"></script> @*Used for the browse custom button*@

<div class="container">
    <div class="well">
        @using (Html.BeginForm("Edit", "Account", FormMethod.Post, new { @class = "form-horizontal", role = "form", enctype = "multipart/form-data" }))
        {
            @Html.ValidationSummary()
            @Html.HiddenFor(m => m.Id)
            @Html.AntiForgeryToken()
            <h3>Edit your profile.</h3>
            <hr />
            @Html.ValidationSummary("", new { @class = "text-danger" })

            <div class="form-group">
                @Html.LabelFor(m => m.FirstName, new { @class = "col-sm-4 control-label" })
                <div class="col-sm-4">
                    @Html.TextBoxFor(m => m.FirstName, new { @class = "form-control", placeholder = Html.DisplayNameFor(x => x.FirstName) })
                </div>
            </div>

            <div class="form-group">
                @Html.LabelFor(m => m.LastName, new { @class = "col-sm-4 control-label" })
                <div class="col-sm-4">
                    @Html.TextBoxFor(m => m.LastName, new { @class = "form-control", placeholder = Html.DisplayNameFor(x => x.LastName) })
                </div>
            </div>

            <div class="form-group">
                @Html.LabelFor(m => m.Gender, new { @class = "col-sm-4 control-label" })
                <div class="col-sm-6">

                    <span class="radio-inline">@Html.RadioButtonFor(model => model.Gender, "Male", false)@Html.Label("Male")</span>

                    <span class="radio-inline">
                        @Html.RadioButtonFor(model => model.Gender, "Female", false)@Html.Label("Female")
                    </span>

                    <span class="radio-inline">
                        @Html.RadioButtonFor(model => model.Gender, "Prefer not so say", false)@Html.Label("Prefer not so say")
                    </span>

                    <span class="radio-inline">
                        @Html.RadioButtonFor(model => model.Gender, "N/A", false)@Html.Label("N/A")
                    </span>
                </div>
            </div>

            <div class="form-group">
                @Html.Label("Profile picture", new { @class = "col-sm-4 control-label" })
                <div class="fileinput fileinput-new col-sm-4" data-provides="fileinput">
                    <span class="btn btn-default btn-file"><span>Choose picture</span><input type="file" id="ImagePath" name="ImagePath" /></span>
                    <span class="fileinput-filename"></span><span class="fileinput-new">No picture chosen</span>
                    @if (Model.ImagePath != null)
                    {
                        <div class="checkbox">
                            <label>
                                <input type="checkbox" />
                                @Html.CheckBoxFor(m => m.RemovePicture)
                                @Html.LabelFor(m => m.RemovePicture)
                            </label>
                        </div>
                    }
                </div>
            </div>
            <div class="form-group">
                @Html.LabelFor(m => m.Country, new { @class = "col-sm-4 control-label" })
                <div class="col-sm-4">
                    @Html.TextBoxFor(m => m.Country, new { @class = "form-control", placeholder = Html.DisplayNameFor(x => x.Country) })
                </div>
            </div>

            <div class="form-group">
                @Html.LabelFor(m => m.City, new { @class = "col-sm-4 control-label" })
                <div class="col-sm-4">
                    @Html.TextBoxFor(m => m.City, new { @class = "form-control", placeholder = Html.DisplayNameFor(x => x.City) })
                </div>
            </div>

            <div class="form-group">
                @Html.LabelFor(m => m.Birthday, new { @class = "col-sm-4 control-label" })
                <div class="col-sm-4">
                    @Html.TextBoxFor(m => m.Birthday, new { @class = "form-control", @readonly = "readonly", @id = "birthday", placeholder = Html.DisplayNameFor(x => x.Birthday) })

                    @if (!string.IsNullOrEmpty(Model.Birthday))
                    {
                        <div class="checkbox">
                            <label>
                                <input type="checkbox" />
                                @Html.CheckBoxFor(m => m.RemoveBirthday)
                                @Html.LabelFor(m => m.RemoveBirthday)
                            </label>
                        </div>
                    }
                </div>
            </div>

            <div class="form-group">
                @Html.LabelFor(m => m.PhoneNumber, new { @class = "col-sm-4 control-label" })
                <div class="col-sm-4">
                    @Html.TextBoxFor(m => m.PhoneNumber, new { @class = "form-control", placeholder = Html.DisplayNameFor(x => x.PhoneNumber) })
                </div>
            </div>

            <div class="form-group">
{'fraction_non_alphanumeric': 0.15619849844350853, 'fraction_numerical': 0.003296099615455045, 'mean_word_length': 1.502405498281787, 'pattern_counts': {'":': 0, '<': 145, '<?xml version=': 0, '>': 201, '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': '4498044', 'n_tokens_mistral': 3221, 'n_tokens_neox': 3020, 'n_words': 588}