<commit_before>﻿@model Tyvj.DataModels.Contest
@{
    ViewBag.Title = Model.Title + " - 比赛设置";
}
<style>
    .tyvj-status-info {
        line-height: 40px;
    }

    .select {
        width: 120px;
    }
</style>
<div class="tyvj-left" style="width:755px;">
    <div class="tyvj-shadow">
        <div class="tyvj-content-header">
            @Model.Title
        </div>
        <div class="tyvj-content" style="padding-top:10px;">
            <div class="tyvj-boder-top tyvj-content-inner">
                <h2>基本信息设置</h2>
                @using (Html.BeginForm("Edit", "Contest", new { id = Model.ID }, FormMethod.Post, null))
                {
                    @Html.AntiForgeryToken()<div class="tyvj-status-info">
                        <table>
                            <tbody>
                                <tr><td class="tyvj-status-info-left">比赛名称</td><td>@Html.TextBox("Title", Model.Title, new { @class = "textbox" })</td></tr>
                                <tr>
                                    <td class="tyvj-status-info-left">比赛赛制</td>
                                    <td>
                                        <select class="select" id="lstFormat">
                                            <option value="0" @(Model.Format == ContestFormat.OI ? "selected" : "")>OI</option>
                                            <option value="1" @(Model.Format == ContestFormat.ACM ? "selected" : "")>ACM</option>
                                            <option value="2" @(Model.Format == ContestFormat.Codeforces ? "selected" : "")>Codeforces</option>
                                        </select>
                                    </td>
                                </tr>
                                <tr><td class="tyvj-status-info-left">开始时间</td><td>@Html.TextBox("Begin", Model.Begin.ToString("yyyy-MM-dd HH:mm"), new { @class = "textbox" })</td></tr>
                                <tr><td class="tyvj-status-info-left">结束时间</td><td>@Html.TextBox("End", Model.Begin.ToString("yyyy-MM-dd HH:mm"), new { @class = "textbox" })</td></tr>
                                <tr><td class="tyvj-status-info-left">比赛密码</td><td>@Html.Password("Password", "", new { @class = "textbox" }) (留空为公开赛)</td></tr>
                                <tr><td class="tyvj-status-info-left">比赛介绍</td><td><textarea class="ckeditor" name="Description"></textarea></td></tr>
                                <tr><td class="tyvj-status-info-left"></td><td><input type="submit" value="保存" id="btnSave" class="button button-def" /></td></tr>
                            </tbody>
                        </table></div>
                        }
                    </div>
        </div>
    </div>
</div>
<div class="tyvj-right" style="width:200px;"><commit_msg>bug fix<commit_after>﻿@model Tyvj.DataModels.Contest
@{
    ViewBag.Title = Model.Title + " - 比赛设置";
}
<style>
    .tyvj-status-info {
        line-height: 40px;
    }

    .select {
        width: 120px;
    }
</style>
<div class="tyvj-left" style="width:755px;">
    <div class="tyvj-shadow">
        <div class="tyvj-content-header">
            @Model.Title
        </div>
        <div class="tyvj-content" style="padding-top:10px;">
            <div class="tyvj-boder-top tyvj-content-inner">
                <h2>基本信息设置</h2>
                @using (Html.BeginForm("Edit", "Contest", new { id = Model.ID }, FormMethod.Post, null))
                {
                    @Html.AntiForgeryToken()<div class="tyvj-status-info">
                        <table>
                            <tbody>
                                <tr><td class="tyvj-status-info-left">比赛名称</td><td>@Html.TextBox("Title", Model.Title, new { @class = "textbox" })</td></tr>
                                <tr>
                                    <td class="tyvj-status-info-left">比赛赛制</td>
                                    <td>
                                        <select class="select" id="lstFormat" name="Format">
                                            <option value="0" @(Model.Format == ContestFormat.OI ? "selected" : "")>OI</option>
                                            <option value="1" @(Model.Format == ContestFormat.ACM ? "selected" : "")>ACM</option>
                                            <option value="2" @(Model.Format == ContestFormat.Codeforces ? "selected" : "")>Codeforces</option>
                                        </select>
                                    </td>
                                </tr>
                                <tr><td class="tyvj-status-info-left">开始时间</td><td>@Html.TextBox("Begin", Model.Begin.ToString("yyyy-MM-dd HH:mm"), new { @class = "textbox" })</td></tr>
                                <tr><td class="tyvj-status-info-left">结束时间</td><td>@Html.TextBox("End", Model.Begin.ToString("yyyy-MM-dd HH:mm"), new { @class = "textbox" })</td></tr>
                                <tr><td class="tyvj-status-info-left">比赛密码</td><td>@Html.Password("Password", "", new { @class = "textbox" }) (留空为公开赛)</td></tr>
                                <tr><td class="tyvj-status-info-left">比赛介绍</td><td><textarea class="ckeditor" name="Description">@Model.Description</textarea></td></tr>
                                <tr><td class="tyvj-status-info-left"></td><td><input type="submit" value="保存" id="btnSave" class="button button-def" /></td></tr>
                            </tbody>
                        </table></div>
                        }
                    </div>
        </div>
    </div>
</div>
<div class="tyvj-right" style="width:200px;">
{'fraction_non_alphanumeric': 0.1749015395631937, 'fraction_numerical': 0.00644468313641246, 'mean_word_length': 1.4228100607111882, 'pattern_counts': {'":': 0, '<': 151, '<?xml version=': 0, '>': 151, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 22, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '945419', 'n_tokens_mistral': 1720, 'n_tokens_neox': 1673, 'n_words': 239}