<commit_before>﻿@{
    ViewBag.Title = "Index";
}



<div id="Game" style="display: none;">

    <!-- ErrorModal -->
    <div class="modal fade" id="ErrorModal" tabindex="-1" role="dialog" aria-labelledby="ErrorModalLabel" aria-hidden="true">
        <div class="modal-dialog">
            <div class="modal-content">
                <div class="modal-header">
                    <button type="button" class="close" data-dismiss="modal" aria-hidden="true">&times;</button>
                    <h4 data-bind="text: lastError().title" class="modal-title" id="ErrorModalLabel"></h4>
                </div>
                <div class="modal-body">
                    <p data-bind="text: lastError().body"></p>
                </div>
                <div class="modal-footer">
                    <button type="button" class="btn btn-default" data-dismiss="modal">OK</button>
                </div>
            </div>
        </div>
    </div>

    <!-- RoomModal -->
    <div class="modal fade" id="RoomModal" tabindex="-1" role="dialog" aria-labelledby="RoomModalLabel" aria-hidden="true">
        <div class="modal-dialog">
            <div class="modal-content">
                <div class="modal-header">
                    <button type="button" class="close" data-dismiss="modal" aria-hidden="true">&times;</button>
                    <h4 data-bind="" class="modal-title" id="RoomModalLabel">村の詳細</h4>
                </div>
                <div class="modal-body">
                    <h4 data-bind="visible: roomGoingToJoin() !== null, with: roomGoingToJoin()">
                        #<span data-bind="text: roomId"></span>
                        &nbsp;<span data-bind="text: name"></span>
                    </h4>
                    <div class="form-group">
                        <label for="JoinRoomPassword">パスワード</label>
                        <input type="text" data-bind="value: roomPasswordGoingToJoin" class="form-control" id="RoomConfigurationName" placeholder="パスワード">
                    </div>
                </div>
                <div class="modal-footer">
                    <button type="button" class="btn btn-default" data-dismiss="modal">キャンセル</button>
                    <button type="button" class="btn btn-primary" data-dismiss="modal" data-bind="click: JoinRoom">参加する</button>
                </div>
            </div>
        </div>
    </div>
    
    <!-- ReportModal -->
    <div class="modal fade" id="ReportModal" tabindex="-1" role="dialog" aria-labelledby="ReportModalLabel" aria-hidden="true">
        <div class="modal-dialog">
            <div class="modal-content">
                <div class="modal-header">
                    <button type="button" class="close" data-dismiss="modal" aria-hidden="true">&times;</button>
                    <h4 data-bind="" class="modal-title" id="ReportModalLabel">ReportModal</h4>
                </div>
                <div class="modal-body">
                    <input type="text" data-bind="value: roomReportNote" />
                </div>
                <div class="modal-footer">
                    <button type="button" class="btn btn-default" data-dismiss="modal" data-bind="click: roomReport">Join</button>
                </div>
            </div>
        </div>
    </div>

    <!-- Disconnected Scene -->
    <div data-bind="visible: state() == State.Disconnected">
        <h3>Disconnected</h3>
        <button type="button" data-bind="click: Connect">Connect</button>
    </div>

    <!-- Characters Scene -->
    <div data-bind="visible: state() == State.Characters">
        <h3 data-bind="text: Text('CharactersList')"></h3>
        <button type="button" data-bind="click: function(){state(State.CreateCharacter)}" class="btn btn-default">Create</button>
        <table class="table">
            <thead>
                <tr>
                    <th>キャラクター名</th>
                    <th>操作</th>
                </tr>
            </thead>
            <tbody data-bind="foreach: characters">
                <tr>
                    <td data-bind="text: name"></td>
                    <td><button type="button"
                                data-bind="text: $root.Text('Select'), click: function(){ $root.Send('/SelectCharacter ' + name); }"
                                class="btn btn-primary btn-xs"></button></td>
                </tr>
            </tbody>
        </table>
        <div class="alert alert-warning">ユーザー情報保護のためキャラクターの削除はできません。</div>
    </div>

    <!-- Character Creation Scene -->
    <div data-bind="visible: state() == State.CreateCharacter">
        <h3>Create Character</h3>
        <ul data-bind="foreach: validationErrors.CharacterCreation">
            <li data-bind="text: $data"></li>
        </ul>
        <div data-bind="with: createCharacterData">
            <input type="text" data-bind="value: name"/>
        </div>
        <button type="button" data-bind="click: CreateCharacter">Create</button>
    </div>

    <!-- Lobby Scene -->
    <div data-bind="visible: state() == State.Rooms">
        <div class="row">
            <div class="col-sm-6">
                <h3 data-bind="text: $root.Text('VillagesList')">Rooms</h3>
                <button type="button" data-bind="text: $root.Text('Create'), click: CreateRoom" class="btn btn-default"></button>
                <button type="button" data-bind="click: GetRooms" class="btn btn-default">更新</button>
                <table class="table">
                    <thead>
                        <tr>
                            <th>#</th>
                            <th>村の名前</th>
                            <th>人数</th>
                            <th>1日の長さ</th>
                            <th>操作</th>
                        </tr>
                    </thead>
                    <tbody data-bind="foreach: rooms">
                        <tr>
                            <td data-bind="text: roomId"></td>
                            <td data-bind="text: name"></td>
                            <td data-bind="text: max"></td>
                            <td data-bind="text: interval"></td>
                            <td>
                                <span data-bind="text: requiresPassword"></span>
                                <button type="button"
                                        data-bind="text: $root.Text('Join'), click: function(){ $root.OpenRoomModal($data); }"<commit_msg>CSS, CreateCharacter<commit_after>﻿@{
    ViewBag.Title = "Index";
}



<div id="Game" style="display: none;">

    <!-- ErrorModal -->
    <div class="modal fade" id="ErrorModal" tabindex="-1" role="dialog" aria-labelledby="ErrorModalLabel" aria-hidden="true">
        <div class="modal-dialog">
            <div class="modal-content">
                <div class="modal-header">
                    <button type="button" class="close" data-dismiss="modal" aria-hidden="true">&times;</button>
                    <h4 data-bind="text: lastError().title" class="modal-title" id="ErrorModalLabel"></h4>
                </div>
                <div class="modal-body">
                    <p data-bind="text: lastError().body"></p>
                </div>
                <div class="modal-footer">
                    <button type="button" class="btn btn-default" data-dismiss="modal">OK</button>
                </div>
            </div>
        </div>
    </div>

    <!-- RoomModal -->
    <div class="modal fade" id="RoomModal" tabindex="-1" role="dialog" aria-labelledby="RoomModalLabel" aria-hidden="true">
        <div class="modal-dialog">
            <div class="modal-content">
                <div class="modal-header">
                    <button type="button" class="close" data-dismiss="modal" aria-hidden="true">&times;</button>
                    <h4 data-bind="" class="modal-title" id="RoomModalLabel">村の詳細</h4>
                </div>
                <div class="modal-body">
                    <h4 data-bind="visible: roomGoingToJoin() !== null, with: roomGoingToJoin()">
                        #<span data-bind="text: roomId"></span>
                        &nbsp;<span data-bind="text: name"></span>
                    </h4>
                    <div class="form-group">
                        <label for="JoinRoomPassword">パスワード</label>
                        <input type="text" data-bind="value: roomPasswordGoingToJoin" class="form-control" id="RoomConfigurationName" placeholder="パスワード">
                    </div>
                </div>
                <div class="modal-footer">
                    <button type="button" class="btn btn-default" data-dismiss="modal">キャンセル</button>
                    <button type="button" class="btn btn-primary" data-dismiss="modal" data-bind="click: JoinRoom">参加する</button>
                </div>
            </div>
        </div>
    </div>
    
    <!-- ReportModal -->
    <div class="modal fade" id="ReportModal" tabindex="-1" role="dialog" aria-labelledby="ReportModalLabel" aria-hidden="true">
        <div class="modal-dialog">
            <div class="modal-content">
                <div class="modal-header">
                    <button type="button" class="close" data-dismiss="modal" aria-hidden="true">&times;</button>
                    <h4 data-bind="" class="modal-title" id="ReportModalLabel">ReportModal</h4>
                </div>
                <div class="modal-body">
                    <input type="text" data-bind="value: roomReportNote" />
                </div>
                <div class="modal-footer">
                    <button type="button" class="btn btn-default" data-dismiss="modal" data-bind="click: roomReport">Join</button>
                </div>
            </div>
        </div>
    </div>

    <!-- Disconnected Scene -->
    <div data-bind="visible: state() == State.Disconnected">
        <h3>Disconnected</h3>
        <button type="button" data-bind="click: Connect">Connect</button>
    </div>

    <!-- Characters Scene -->
    <div data-bind="visible: state() == State.Characters">
        <h3 data-bind="text: Text('CharactersList')"></h3>
        <button type="button" data-bind="click: function(){state(State.CreateCharacter)}" class="btn btn-default">Create</button>
        <table class="table">
            <thead>
                <tr>
                    <th>キャラクター名</th>
                    <th>操作</th>
                </tr>
            </thead>
            <tbody data-bind="foreach: characters">
                <tr>
                    <td data-bind="text: name"></td>
                    <td><button type="button"
                                data-bind="text: $root.Text('Select'), click: function(){ $root.Send('/SelectCharacter ' + name); }"
                                class="btn btn-primary btn-xs"></button></td>
                </tr>
            </tbody>
        </table>
        <div class="alert alert-warning">ユーザー情報保護のためキャラクターの削除はできません。</div>
    </div>

    <!-- Character Creation Scene -->
    <div data-bind="visible: state() == State.CreateCharacter">
        <h3>キャラクター作成</h3>
        <ul data-bind="foreach: validationErrors.CharacterCreation">
            <li data-bind="text: $data"></li>
        </ul>
        <div data-bind="with: createCharacterData">
            <div class="form-group">
                <label for="CreateCharacterName">キャラクター名</label>
                <input type="text" data-bind="value: name" class="form-control" id="CreateCharacterName">
            </div>
        </div>
        <button type="button" data-bind="click: CreateCharacter" class="btn btn-primary">作成する</button>
    </div>

    <!-- Lobby Scene -->
    <div data-bind="visible: state() == State.Rooms">
        <div class="row">
            <div class="col-sm-6">
                <h3 data-bind="text: $root.Text('VillagesList')">Rooms</h3>
                <button type="button" data-bind="text: $root.Text('Create'), click: CreateRoom" class="btn btn-default"></button>
                <button type="button" data-bind="click: GetRooms" class="btn btn-default">更新</button>
                <table class="table">
                    <thead>
                        <tr>
                            <th>#</th>
                            <th>村の名前</th>
                            <th>人数</th>
                            <th>1日の長さ</th>
                            <th>操作</th>
                        </tr>
                    </thead>
                    <tbody data-bind="foreach: rooms">
                        <tr>
                            <td data-bind="text: roomId"></td>
                            <td data-bind="text: name"></td>
                            <td data-bind="text: max"></td>
                            <td data-bind="text: interval"></td>
                            <td>
                                <span data-bind="text: requiresPassword"></span>
                                <button type="button"
                                        data-bind="text: $root.Text('Join'), click: function(){ $root.OpenRoomModal($data); }"
{'fraction_non_alphanumeric': 0.16462804831140856, 'fraction_numerical': 0.0032310177705977385, 'mean_word_length': 1.6156941649899397, 'pattern_counts': {'":': 0, '<': 333, '<?xml version=': 0, '>': 331, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 2, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '954879', 'n_tokens_mistral': 3711, 'n_tokens_neox': 3515, 'n_words': 649}