<commit_before>﻿@model AstroPhotoGallery.Models.PictureViewModel

@{
    ViewBag.Title = "Edit picture";
}

<div class="container">
    <div class="well">
        <h2>@ViewBag.Title</h2>
        <hr />
        @using (Html.BeginForm("Edit", "Picture", FormMethod.Post, new { @class = "form-horizontal", role = "form", enctype = "multipart/form-data" }))
        {

            @Html.HiddenFor(m => m.Id)
            @Html.HiddenFor(m => m.PicUploaderId)

            @Html.AntiForgeryToken()
            @Html.ValidationSummary("", new { @class = "text-danger" })
            <div class="form-group">
                <label class="control-label col-sm-4">@* Empty label for centering the pic *@</label>
                <div class="col-sm-4">
                    <img src="@Url.Content(Model.ImagePath)" alt="Astro" width="280" height="200" class="img-rounded img-responsive">
                </div>
            </div>

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

            <div class="form-group">
                @Html.LabelFor(m => m.PicDescription, new { @class = "control-label col-sm-4" })
                <div class="col-sm-4">
                    @Html.TextAreaFor(m => m.PicDescription, new { @class = "form-control", @rows = "7" })
                </div>
            </div>
            <div class="form-group">
                @Html.LabelFor(m => m.CategoryId, new { @class = "col-sm-4 control-label" })
                <div class="dropdown col-sm-4">
                    @Html.DropDownListFor(m => m.CategoryId,
                        new SelectList(Model.Categories, "Id", "Name", Model.CategoryId), new { @class = "btn btn-default col-sm-12" })
                </div>
            </div>

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

            <div class="form-group">
                <div class="col-sm-4 col-sm-offset-4">
                    <input type="submit" value="Edit" class="btn btn-success" />
                    @Html.ActionLink("Cancel", "Details", "Picture", new { @id = Model.Id }, new { @class = "btn btn-default" })
                </div>
            </div>
        }
    </div>
</div>

<commit_msg>add alt text for img, change font, change buttons<commit_after>﻿@model AstroPhotoGallery.Models.PictureViewModel

@{
    ViewBag.Title = "Edit picture";
}

<div class="container">
    <div class="well">
        <h2>@ViewBag.Title</h2>
        <hr />
        @using (Html.BeginForm("Edit", "Picture", FormMethod.Post, new { @class = "form-horizontal", role = "form", enctype = "multipart/form-data" }))
        {

            @Html.HiddenFor(m => m.Id)
            @Html.HiddenFor(m => m.PicUploaderId)

            @Html.AntiForgeryToken()
            @Html.ValidationSummary("", new { @class = "text-danger" })
            <div class="form-group">
                <label class="control-label col-sm-4">@* Empty label for centering the pic *@</label>
                <div class="col-sm-4">
                    <img src="@Url.Content(Model.ImagePath)" alt="Astro picture" width="280" height="200" class="img-rounded img-responsive">
                </div>
            </div>

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

            <div class="form-group">
                @Html.LabelFor(m => m.PicDescription, new { @class = "control-label col-sm-4" })
                <div class="col-sm-4">
                    @Html.TextAreaFor(m => m.PicDescription, new { @class = "form-control", @rows = "7" })
                </div>
            </div>
            <div class="form-group">
                @Html.LabelFor(m => m.CategoryId, new { @class = "col-sm-4 control-label" })
                <div class="dropdown col-sm-4">
                    @Html.DropDownListFor(m => m.CategoryId,
                        new SelectList(Model.Categories, "Id", "Name", Model.CategoryId), new { @class = "btn btn-default col-sm-12" })
                </div>
            </div>

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

            <div class="form-group">
                <div class="col-sm-4 col-sm-offset-4">
                    <input type="submit" value="Edit" class="btn btn-success" />
                    @Html.ActionLink("Cancel", "Details", "Picture", new { @id = Model.Id }, new { @class = "btn btn-default" })
                </div>
            </div>
        }
    </div>
</div>


{'fraction_non_alphanumeric': 0.16948515595640737, 'fraction_numerical': 0.009019165727170236, 'mean_word_length': 1.632542037586548, 'pattern_counts': {'":': 0, '<': 73, '<?xml version=': 0, '>': 93, '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': '4822111', 'n_tokens_mistral': 1696, 'n_tokens_neox': 1588, 'n_words': 323}