<commit_before>﻿@using SettingsService.Web.Properties
@section Scripts {
    <script>
        /// <reference path="typings/models.d.ts" />
        settingsServiceApi.setApiServer("@Settings.Default.SettingServiceUrl");
        $(function () {
            ko.applyBindings(generalSettings);
            settingsServiceApi.loadGeneralSettings();
        });
    </script>
}
<div class="panel panel-default">
    <div class="panel-heading">
        <h3 class="panel-title">Default Crawler Settings</h3>
    </div>
    <div class="panel-body">
        <form class="form-horizontal">
            <div class="form-group">
                <label for="disallow" class="col-sm-2 control-label">Disallow</label>
                <div class="col-sm-10">
                    <input type="text" class="form-control" id="disallow" placeholder="Example: *" data-bind="text: disallow"/>
                </div>
            </div>
            <div class="form-group">
                <label for="delay" class="col-sm-2 control-label">Delay</label>
                <div class="col-sm-10">
                    <input type="number" class="form-control" id="delay" placeholder="Example: 20" data-bind="text: delay"/>
                </div>
            </div>
            <div class="form-group">
                <div class="col-sm-offset-2 col-sm-10">
                    <button type="button" class="btn btn-primary" data-bind="click: saveSettings">Save</button>
                    @Html.ActionLink("Details", "Details", null, new { @class = "btn btn-default" })
                </div>
            </div>
        </form>
    </div>
</div>
<div class="panel panel-default">
    <div class="panel-heading">
        <h3 class="panel-title">Frontier Seed URLs</h3>
    </div>
    <div class="panel-body">
        <form class="form-inline">
            <div class="form-group">
                <label for="newurl">New URL</label>
                <input type="text" class="form-control" id="newurl" placeholder="For example: http://myurl.com/page" data-bind="value: newUrl"/>
            </div>
            <button type="button" class="btn btn-primary" data-bind="click: addUrl">Add</button>
        </form>
        <br />
        <table class="table table-hover">
            <tr>
                <th>URL</th>
                <th></th>
            </tr>
            <tbody data-bind="foreach: urls">
                <tr>
                    <td data-bind="text: Url"></td>
                    <td>
                        <button type="button" class="btn btn-default btn-sm" title="Remove" data-bind="click: $root.removeUrl"><span class="glyphicon glyphicon-trash" aria-hidden="true"></span></button>
                    </td>
                </tr>
            </tbody>
        </table>
    </div>
</div><commit_msg>Added comment for Delay input<commit_after>﻿@using SettingsService.Web.Properties
@section Scripts {
    <script>
        /// <reference path="typings/models.d.ts" />
        settingsServiceApi.setApiServer("@Settings.Default.SettingServiceUrl");
        $(function () {
            ko.applyBindings(generalSettings);
            settingsServiceApi.loadGeneralSettings();
        });
    </script>
}
<div class="panel panel-default">
    <div class="panel-heading">
        <h3 class="panel-title">Default Crawler Settings</h3>
    </div>
    <div class="panel-body">
        <form class="form-horizontal">
            <div class="form-group">
                <label for="disallow" class="col-sm-2 control-label">Disallow</label>
                <div class="col-sm-10">
                    <input type="text" class="form-control" id="disallow" placeholder="Example: *" data-bind="text: disallow"/>
                </div>
            </div>
            <div class="form-group">
                <label for="delay" class="col-sm-2 control-label">Delay</label>
                <div class="col-sm-10">
                    <input type="number" class="form-control" id="delay" placeholder="Example: 20" data-bind="text: delay"/>
                    <span class="help-block">A delay in seconds</span>
                </div>
            </div>
            <div class="form-group">
                <div class="col-sm-offset-2 col-sm-10">
                    <button type="button" class="btn btn-primary" data-bind="click: saveSettings">Save</button>
                    @Html.ActionLink("Details", "Details", null, new { @class = "btn btn-default" })
                </div>
            </div>
        </form>
    </div>
</div>
<div class="panel panel-default">
    <div class="panel-heading">
        <h3 class="panel-title">Frontier Seed URLs</h3>
    </div>
    <div class="panel-body">
        <form class="form-inline">
            <div class="form-group">
                <label for="newurl">New URL</label>
                <input type="text" class="form-control" id="newurl" placeholder="For example: http://myurl.com/page" data-bind="value: newUrl"/>
            </div>
            <button type="button" class="btn btn-primary" data-bind="click: addUrl">Add</button>
        </form>
        <br />
        <table class="table table-hover">
            <tr>
                <th>URL</th>
                <th></th>
            </tr>
            <tbody data-bind="foreach: urls">
                <tr>
                    <td data-bind="text: Url"></td>
                    <td>
                        <button type="button" class="btn btn-default btn-sm" title="Remove" data-bind="click: $root.removeUrl"><span class="glyphicon glyphicon-trash" aria-hidden="true"></span></button>
                    </td>
                </tr>
            </tbody>
        </table>
    </div>
</div>
{'fraction_non_alphanumeric': 0.16534321510499383, 'fraction_numerical': 0.005293806246691371, 'mean_word_length': 1.8425275827482448, 'pattern_counts': {'":': 0, '<': 147, '<?xml version=': 0, '>': 147, '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': '6124557', 'n_tokens_mistral': 1649, 'n_tokens_neox': 1585, 'n_words': 314}