<commit_before>﻿<form class="form-horizontal" data-ng-submit="saveDir()">
    <input type="text" data-ng-model="downloadDir"> <input class="btn" type="submit" value="Apply"> <button class="btn" data-ng-click="suggest();$event.preventDefault()">Use title</button>
</form>

<h4>Add source</h4>
<form data-ng-submit="add()">
    <input type="url" name="source" data-ng-model="source.url" data-ng-change="preview()" placeholder="URL" required><br>
    <input type="text" name="contains" data-ng-model="source.contains" placeholder="Contains"><br>
    <input type="text" name="regex" data-ng-model="source.regex" placeholder="Regex"><br>
    <input type="text" name="category" data-ng-model="source.category" placeholder="Category"><br>
    <input type="submit" class="btn" value="Add">
</form>

<div data-ng-show="source.previewItems.length">
    <h5>preview items</h5>
    <table class="table">
        <thead>
            <tr>
                <th>Title</th>
                <th>Summary</th>
                <th>Categories</th>
            </tr>
        </thead>
        <tbody>
            <tr data-ng-repeat="item in source.previewItems" data-ng-show="matchPreview(item)">
                <td>{{item.title}}</td>
                <td>{{item.summary}}</td>
                <td>{{item.categories.join(', ')}}</td>
            </tr>
        </tbody>
    </table>
</div>

<h4>Existing sources</h4>
<table class="table">
    <thead>
        <tr>
            <th>Source-URL</th>
            <th>Contains</th>
            <th>Regex</th><commit_msg>Add the naming convention to the download settings<commit_after>﻿<form class="form-horizontal" data-ng-submit="saveDir()">
    <input type="text" data-ng-model="downloadDir"> <input class="btn" type="submit" value="Apply"> <button class="btn" data-ng-click="suggest();$event.preventDefault()">Use title</button>
</form>

<h4>Add source</h4>
<form data-ng-submit="add()">
    <input type="url" name="source" data-ng-model="source.url" data-ng-change="preview()" placeholder="URL" required><br>
    <input type="text" name="contains" data-ng-model="source.contains" placeholder="Contains"><br>
    <input type="text" name="regex" data-ng-model="source.regex" placeholder="Regex"><br>
    <input type="text" name="category" data-ng-model="source.category" placeholder="Category"><br>
    <select data-ng-model="source.assignMethod" data-ng-init="source.assignMethod = 'sxe'">
        <option value="sxe">SeasonxEpisode (S01E01)</option>
        <option value="se">SeasonEpisode (101)</option>
        <option value="e">Episode only (01)</option>
        <option value="numbered">numbered episode (528)</option>
    </select><br>
    <div data-ng-if="source.assignMethod == 'e'">
        <input type="number" class="input-mini" data-ng-model="source.assignSeason" placeholder="Staffel" min="0" required>
    </div>
    
    <input type="submit" class="btn" value="Add">
</form>

<div data-ng-show="source.previewItems.length">
    <h5>preview items</h5>
    <table class="table">
        <thead>
            <tr>
                <th>Title</th>
                <th>Summary</th>
                <th>Categories</th>
            </tr>
        </thead>
        <tbody>
            <tr data-ng-repeat="item in source.previewItems" data-ng-show="matchPreview(item)">
                <td>{{item.title}}</td>
                <td>{{item.summary}}</td>
                <td>{{item.categories.join(', ')}}</td>
            </tr>
        </tbody>
    </table>
</div>

<h4>Existing sources</h4>
<table class="table">
    <thead>
        <tr>
            <th>Source-URL</th>
            <th>Contains</th>
            <th>Regex</th>
{'fraction_non_alphanumeric': 0.19726027397260273, 'fraction_numerical': 0.00684931506849315, 'mean_word_length': 2.9427645788336934, 'pattern_counts': {'":': 0, '<': 129, '<?xml version=': 0, '>': 129, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 6, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '910013', 'n_tokens_mistral': 1199, 'n_tokens_neox': 1142, 'n_words': 200}