<commit_before>let template = `<input type="hidden" id="id" value="<%= options.file ? options.file.id : '' %>">

<div class="form-group">
    <label>Nickname</label>
    <input type="text" id="nickname" class="form-control" placeholder="Nickname" value="<%= options.file ? options.file.nickname : '' %>">
</div>

<div class="form-group">
    <label class="control-label" for="fullPath">File</label>
    <input type="text" id="fullPath" class="form-control" placeholder="File path and name" value="<%= options.file ? options.file.fullPath : '' %>">
    <span class="help-block">File doesn't exist.</span>
</div>

<div class="form-group">
    <label>Format</label>
    <input type="text" id="jsonFormat" class="form-control" value="<%= options.file ? options.file.jsonFormat : '' %>">
    <p class="help-block">Unserscore template to format the json line.</p>
</div>

<div class="form-group">
    <div id="colorpicker" class="input-group colorpicker-component">
        <span class="input-group-addon"><i></i></span>
        <input type="text" value="<%= options.file ? options.file.color : options.generateRandomColor()%>" class="form-control" />
    </div>
</div>

<div class="form-group">
    <label>Log Length</label>
    <input type="text" id="logLength" class="form-control" value="<%= options.file ? options.file.logLength : '' %>">
    <p class="help-block">The maximum number of log lines to display.</p>
</div>

<div class="form-group">
    <label>Filter</label>
    <input type="text" id="filter" class="form-control" value="<%= options.file ? options.file.filter : '' %>">
    <p class="help-block">Filter logs from this file.</p>
</div>`

export { template };
<commit_msg>Add note for regex to filter out log lines.<commit_after>let template = `<input type="hidden" id="id" value="<%= options.file ? options.file.id : '' %>">

<div class="form-group">
    <label>Nickname</label>
    <input type="text" id="nickname" class="form-control" placeholder="Nickname" value="<%= options.file ? options.file.nickname : '' %>">
</div>

<div class="form-group">
    <label class="control-label" for="fullPath">File</label>
    <input type="text" id="fullPath" class="form-control" placeholder="File path and name" value="<%= options.file ? options.file.fullPath : '' %>">
    <span class="help-block">File doesn't exist.</span>
</div>

<div class="form-group">
    <label>Format</label>
    <input type="text" id="jsonFormat" class="form-control" value="<%= options.file ? options.file.jsonFormat : '' %>">
    <p class="help-block">Unserscore template to format the json line.</p>
</div>

<div class="form-group">
    <div id="colorpicker" class="input-group colorpicker-component">
        <span class="input-group-addon"><i></i></span>
        <input type="text" value="<%= options.file ? options.file.color : options.generateRandomColor()%>" class="form-control" />
    </div>
</div>

<div class="form-group">
    <label>Log Length</label>
    <input type="text" id="logLength" class="form-control" value="<%= options.file ? options.file.logLength : '' %>">
    <p class="help-block">The maximum number of log lines to display.</p>
</div>

<div class="form-group">
    <label>Filter</label>
    <input type="text" id="filter" class="form-control" value="<%= options.file ? options.file.filter : '' %>">
    <p class="help-block">Filter logs from this file.</p>
    <p class="help-block">To filter out use the following expression replacing <i>SearchTerm</i> with your value. <b>^((?!SearchTerm)[\\s\\S])*$</b></p>
</div>`

export { template };

{'fraction_non_alphanumeric': 0.20963651732882502, 'fraction_numerical': 0.0, 'mean_word_length': 4.572998430141287, 'pattern_counts': {'":': 0, '<': 109, '<?xml version=': 0, '>': 109, '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': '1356889', 'n_tokens_mistral': 1176, 'n_tokens_neox': 1139, 'n_words': 256}