<commit_before>{# Dime/Report/Resources/views/Reports/index.html.twig #}

<header class="page-header dont-print">
    <h1>Reports</h1>
</header>

<ul class="nav nav-tabs dont-print">
    <li class="active"><a href="#tab-relation" data-toggle="tab"><i class="icon-user"></i><i class="icon-folder-open"></i><i class="icon-wrench"></i> Relations</a></li>
    <li><a href="#tab-date" data-toggle="tab"><i class="icon-calendar"></i> Dates</a></li>
    <li><a href="#tab-tags" data-toggle="tab"><i class="icon-tags"></i> Tags</a></li>
    <li><a href="#tab-show" data-toggle="tab"><i class="icon-tasks"></i> Show</a></li>
</ul>
<form id="report-form" class="form-horizontal tab-content dont-print">
    <fieldset id="tab-relation" class="tab-pane active">
        <div class="control-group">
            <label for="customer" class="control-label"><i class="icon-user"></i> Customer</label>
            <div class="controls">
                <select id="customer" class="input-medium" title="by customer">
                    <option>by customer</option>
                </select>
            </div>
        </div>
        <div class="control-group">
            <label for="project" class="control-label"><i class="icon-folder-open"></i> Project</label>
            <div class="controls">
                <select id="project" class="input-medium" title="by project">
                    <option>by project</option>
                </select>
            </div>
        </div>
        <div class="control-group">
            <label for="service" class="control-label"><i class="icon-wrench"></i> Service</label>
            <div class="controls">
                <select id="service" class="input-medium" title="by service">
                    <option>by service</option>
                </select>
            </div>
        </div>
    </fieldset>
    <fieldset id="tab-date" class="tab-pane">
        <div class="control-group">
            <label for="period" class="control-label">Period</label>
            <div class="controls">
                <select id="period">
                    <optgroup label="fixed">
                        <option value="this-month">This month</option>
                        <option value="this-week">This week</option>
                        <option value="today">Today</option>
                        <option value="last-month">Last month</option>
                        <option value="last-week">Last week</option>
                        <option value="yesterday">Yesterday</option>
                    </optgroup>
                    <optgroup label="variable">
                        <option value="D">Day</option>
                        <option value="W">Week</option>
                        <option value="M">Month</option>
                        <option value="Y">Year</option>
                        <option value="R">Range</option>
                    </optgroup>
                </select>
            </div>
        </div>
        <div id="from-group" class="control-group hide">
            <label for="from" class="control-label">From</label>
            <div class="controls">
                <input type="date" id="from" name="from" placeholder="YYYY-MM-DD" data-toggle="datepicker"
                       data-date="{{ 'now'|date('Y-m-d') }}"
                       data-date-format="YYYY-MM-DD" data-date-with-period="true" data-date-period="W"
                       data-date-weekstart="1"
                       data-date-autoclose="true">
            </div>
        </div>
        <div id="to-group" class="control-group hide">
            <label for="to" class="control-label">To</label>
            <div class="controls">
                <input type="date" id="to" name="to" placeholder="YYYY-MM-DD" data-toggle="datepicker"
                       data-date="{{ 'now'|date('Y-m-d') }}"
                       data-date-format="YYYY-MM-DD" data-date-with-period="true" data-date-period="W"
                       data-date-weekstart="1"
                       data-date-autoclose="true">
            </div>
        </div>
    </fieldset>
    <fieldset id="tab-tags" class="tab-pane">
        <div class="control-group">
            <label for="withTags" class="control-label"><i class="icon-tag"></i>with Tag</label>
            <div class="controls">
                <select id="withTags" class="filter filter-tags filter-with-tags input-medium" title="with tags">
                    <option value="">with tag</option>
                </select>
            </div>
        </div>
        <div class="control-group">
            <label for="withoutTags" class="control-label"><i class="icon-tag"></i>without Tag</label>
            <div class="controls">
                <select id="withoutTags" class="filter filter-tags filter-without-tags input-medium" title="without tags">
                    <option value="">without tag</option>
                </select>
            </div>
        </div>
    </fieldset>
    <fieldset id="tab-show" class="tab-pane">
        <div class="control-group">
            <label for="show-title" class="control-label">Title</label>
            <div class="controls">
                <input type="text" id="show-title" value="Report">
            </div>
        </div>
        <div class="control-group">
            <label class="control-label">Show</label>
            <div class="controls">
                <label for="show-date" class="checkbox"><input type="checkbox" id="show-date" checked="checked" value="1"> Date</label>
                <label for="show-start" class="checkbox"><input type="checkbox" id="show-start" value="1"> Start</label>
                <label for="show-stop" class="checkbox"><input type="checkbox" id="show-stop" value="1"> Stop</label>
                <label for="show-description" class="checkbox"><input type="checkbox" id="show-description" value="1"> Description</label>
                <label for="show-duration" class="checkbox"><input type="checkbox" id="show-duration" checked="checked" value="1"> Duration</label>
            </div>
        </div>
        <div class="control-group">
            <label for="show-precision" class="control-label">Precision</label>
            <div class="controls">
                <input type="text" id="show-precision" value="1">
            </div>
        </div>
        <div class="control-group">
            <label for="show-precision-unit" class="control-label">Unit</label>
            <div class="controls">
                <select id="show-precision-unit">
                    <option value="s">second</option>
                    <option value="m" selected="selected">minute</option>
                    <option value="h">hour</option>
                </select>
            </div>
        </div>
    </fieldset>
    <fieldset class="form-actions">
        <div class="pull-right">
            <button type="submit" class="btn btn-primary">Generate</button>
        </div>
    </fieldset>
</form>

<div id="report-results" ></div>

<script type="text/template" id="tpl-report-table">
<header class="page-header">
    <h1><%- opt.title %></h1>
</header>
<table class="table">
    <thead>
    <tr>
        <% var cols = 0; if (opt.date) { cols++; %><th>Date</th><% } %>
        <% if (opt.start) { cols++;%><th>Start</th><% } %>
        <% if (opt.stop) { cols++;%><th>Stop</th><% } %>
        <% if (opt.duration) { %><th>Duration</th><% } %>
        <% if (opt.description) { %><th>Description</th><% } %>
    </tr>
    </thead>
    <tbody id="report-table-data">
    </tbody>
    <% if (opt.duration) { %>
    <tfoot>
    <tr>
        <th colspan="<%- cols %>" class="t-right">Total</th>
        <td id="report-table-total"></td>
        <% if (opt.description) { %><td></td><% } %>
    </tr>
    </tfoot>
    <% } %>
</table>
</script>

<script type="text/template" id="tpl-report-table-data">
<tr>
    <% if (opt.date) { %>
    <td>
        <% if (model.get('start')) { %>
        <%- model.get('start').format('YYYY-MM-DD') %>
        <% } else if (model.get('created')) { %>
        <%- model.get('created').format('YYYY-MM-DD') %>
        <% } %>
    </td>
    <% } %>
    <% if (opt.start) { %>
    <td><% print(model.get('start') ? model.get('start').format('HH:mm:ss') : '') %></td>
    <% } %>
    <% if (opt.stop) { %>
    <td><% print(model.get('stop') ? model.get('stop').format('HH:mm:ss') : '') %></td>
    <% } %>
    <% if (opt.duration) { %>
    <td><% print(model.get('duration') ? model.formatDuration(opt.precision, opt['precision-unit']) : '') %></td>
    <% } %>
    <% if (opt.description) { %>
    <td><% print( model.get('description') ? model.get('description') : '' ) %></td>
    <% } %>
</tr>
</script><commit_msg>inputs are now input-block-level description will now formatted with nl2br<commit_after>{# Dime/Report/Resources/views/Reports/index.html.twig #}

<header class="page-header dont-print">
    <h1>Reports</h1>
</header>

<ul class="nav nav-tabs dont-print">
    <li class="active"><a href="#tab-relation" data-toggle="tab"><i class="icon-user"></i><i class="icon-folder-open"></i><i class="icon-wrench"></i> Relations</a></li>
    <li><a href="#tab-date" data-toggle="tab"><i class="icon-calendar"></i> Dates</a></li>
    <li><a href="#tab-tags" data-toggle="tab"><i class="icon-tags"></i> Tags</a></li>
    <li><a href="#tab-show" data-toggle="tab"><i class="icon-tasks"></i> Show</a></li>
</ul>
<form id="report-form" class="form-horizontal tab-content dont-print">
    <fieldset id="tab-relation" class="tab-pane active">
        <div class="control-group">
            <label for="customer" class="control-label"><i class="icon-user"></i> Customer</label>
            <div class="controls">
                <select id="customer" class="input-block-level" title="by customer">
                    <option>by customer</option>
                </select>
            </div>
        </div>
        <div class="control-group">
            <label for="project" class="control-label"><i class="icon-folder-open"></i> Project</label>
            <div class="controls">
                <select id="project" class="input-block-level" title="by project">
                    <option>by project</option>
                </select>
            </div>
        </div>
        <div class="control-group">
            <label for="service" class="control-label"><i class="icon-wrench"></i> Service</label>
            <div class="controls">
                <select id="service" class="input-block-level" title="by service">
                    <option>by service</option>
                </select>
            </div>
        </div>
    </fieldset>
    <fieldset id="tab-date" class="tab-pane">
        <div class="control-group">
            <label for="period" class="control-label">Period</label>
            <div class="controls">
                <select id="period" class="input-block-level">
                    <option value="">None</option>
                    <optgroup label="fixed">
                        <option value="this-month">This month</option>
                        <option value="this-week">This week</option>
                        <option value="today">Today</option>
                        <option value="last-month">Last month</option>
                        <option value="last-week">Last week</option>
                        <option value="yesterday">Yesterday</option>
                    </optgroup>
                    <optgroup label="variable">
                        <option value="D">Day</option>
                        <option value="W">Week</option>
                        <option value="M">Month</option>
                        <option value="Y">Year</option>
                        <option value="R">Range</option>
                    </optgroup>
                </select>
            </div>
        </div>
        <div id="from-group" class="control-group hide">
            <label for="from" class="control-label">From</label>
            <div class="controls">
                <input type="date" id="from" class="input-block-level" name="from" placeholder="YYYY-MM-DD" data-toggle="datepicker"
                       data-date="{{ 'now'|date('Y-m-d') }}"
                       data-date-format="YYYY-MM-DD" data-date-with-period="true" data-date-period="W"
                       data-date-weekstart="1"
                       data-date-autoclose="true">
            </div>
        </div>
        <div id="to-group" class="control-group hide">
            <label for="to" class="control-label">To</label>
            <div class="controls">
                <input type="date" id="to" class="input-block-level" name="to" placeholder="YYYY-MM-DD" data-toggle="datepicker"
                       data-date="{{ 'now'|date('Y-m-d') }}"
                       data-date-format="YYYY-MM-DD" data-date-with-period="true" data-date-period="W"
                       data-date-weekstart="1"
                       data-date-autoclose="true">
            </div>
        </div>
    </fieldset>
    <fieldset id="tab-tags" class="tab-pane">
        <div class="control-group">
            <label for="withTags" class="control-label"><i class="icon-tag"></i>with Tag</label>
            <div class="controls">
                <select id="withTags" class="filter filter-tags filter-with-tags input-block-level" title="with tags">
                    <option value="">with tag</option>
                </select>
            </div>
        </div>
        <div class="control-group">
            <label for="withoutTags" class="control-label"><i class="icon-tag"></i>without Tag</label>
            <div class="controls">
                <select id="withoutTags" class="filter filter-tags filter-without-tags input-block-level" title="without tags">
                    <option value="">without tag</option>
                </select>
            </div>
        </div>
    </fieldset>
    <fieldset id="tab-show" class="tab-pane">
        <div class="control-group">
            <label for="show-title" class="control-label">Title</label>
            <div class="controls">
                <input type="text" id="show-title" class="input-block-level" value="Report">
            </div>
        </div>
        <div class="control-group">
            <label class="control-label">Show</label>
            <div class="controls">
                <label for="show-date" class="checkbox"><input type="checkbox" id="show-date" checked="checked" value="1"> Date</label>
                <label for="show-start" class="checkbox"><input type="checkbox" id="show-start" value="1"> Start</label>
                <label for="show-stop" class="checkbox"><input type="checkbox" id="show-stop" value="1"> Stop</label>
                <label for="show-description" class="checkbox"><input type="checkbox" id="show-description" value="1"> Description</label>
                <label for="show-duration" class="checkbox"><input type="checkbox" id="show-duration" checked="checked" value="1"> Duration</label>
            </div>
        </div>
        <div class="control-group">
            <label for="show-precision" class="control-label">Precision</label>
            <div class="controls">
                <input type="text" id="show-precision" class="input-block-level" value="1">
            </div>
        </div>
        <div class="control-group">
            <label for="show-precision-unit" class="control-label">Unit</label>
            <div class="controls">
                <select id="show-precision-unit" class="input-block-level">
                    <option value="s">second</option>
                    <option value="m" selected="selected">minute</option>
                    <option value="h">hour</option>
                </select>
            </div>
        </div>
    </fieldset>
    <fieldset class="form-actions">
        <div class="pull-right">
            <button type="submit" class="btn btn-primary">Generate</button>
        </div>
    </fieldset>
</form>

<div id="report-results" ></div>

<script type="text/template" id="tpl-report-table">
<header class="page-header">
    <h1><%- opt.title %></h1>
</header>
<table class="table">
    <thead>
    <tr>
        <% var cols = 0; if (opt.date) { cols++; %><th>Date</th><% } %>
        <% if (opt.start) { cols++;%><th>Start</th><% } %>
        <% if (opt.stop) { cols++;%><th>Stop</th><% } %>
        <% if (opt.duration) { %><th>Duration</th><% } %>
        <% if (opt.description) { %><th>Description</th><% } %>
    </tr>
    </thead>
    <tbody id="report-table-data">
    </tbody>
    <% if (opt.duration) { %>
    <tfoot>
    <tr>
        <th colspan="<%- cols %>" class="t-right">Total</th>
        <td id="report-table-total"></td>
        <% if (opt.description) { %><td></td><% } %>
    </tr>
    </tfoot>
    <% } %>
</table>
</script>

<script type="text/template" id="tpl-report-table-data">
<tr>
    <% if (opt.date) { %>
    <td>
        <% if (model.get('start')) { %>
        <%- model.get('start').format('YYYY-MM-DD') %>
        <% } else if (model.get('created')) { %>
        <%- model.get('created').format('YYYY-MM-DD') %>
        <% } %>
    </td>
    <% } %>
    <% if (opt.start) { %>
    <td><% print(model.get('start') ? model.get('start').format('HH:mm:ss') : '') %></td>
    <% } %>
    <% if (opt.stop) { %>
    <td><% print(model.get('stop') ? model.get('stop').format('HH:mm:ss') : '') %></td>
    <% } %>
    <% if (opt.duration) { %>
    <td><% print(model.get('duration') ? model.formatDuration(opt.precision, opt['precision-unit']) : '') %></td>
    <% } %>
    <% if (opt.description) { %>
    <td><% print( model.get('description') ? model.get('description').replace(/\n/g, "<br/>") : '' ) %></td>
    <% } %>
</tr>
</script>
{'fraction_non_alphanumeric': 0.19813073588198862, 'fraction_numerical': 0.0015201846742863578, 'mean_word_length': 2.0730103806228373, 'pattern_counts': {'":': 0, '<': 590, '<?xml version=': 0, '>': 590, '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': '1353184', 'n_tokens_mistral': 5435, 'n_tokens_neox': 5188, 'n_words': 923}