<commit_before>
            <% if !jobs.empty? %>
                <form action="<%=root%>/delete" method="post">
                    <%= csrf_tag %>
                    <input type="submit" value="Delete all" />
                </form>
            <% end %>

        <div>

            <form action="<%=root%>/" method="post">
                <h2>Schedule a scan</h2>

                <i>You can configure the scan parameters just like you normally would.</i>
                <br/>

                Select a Dispatcher:
                <select name="dispatcher">
                <% if d_stats.empty?%>
                        <option value="">None available, please add a Dispatcher to continue.</option>
                <%else%>
                    <% d_stats.each_pair do |d_url, stats| %>
                        <option value="<%=d_url%>"><%=show_dispatcher_line( stats ) %></option>
                    <%end%>
                <%end%>
                </select>

                URL: <input name="url" value="<%=session['opts']['settings']['url']%>" size="50" <% if d_stats.empty?%>  disabled="disabled"<%end%> />
                Schedule for: <input id="datetime" name="datetime" <% if d_stats.empty?%>  disabled="disabled"<%end%> />

                <%= csrf_tag %>
                <input type="submit" value="Add" <% if d_stats.empty?%>  disabled="disabled"<%end%> />

            </form>
        </div>


        <% if !jobs.empty? %>
        <table>
            <tr>
                <th>ID</th>
                <th>Dispatcher</th>
                <th>Target</th>
                <th>Starts at</th>
                <th>Created by</th>
                <th>Created at</th>
            </tr>
        <% jobs.each do |job| %>
            <tr>


                <td><%=job.id%></td>
                <td><%=job.dispatcher%></td>
                <td><%=job.url%></td>
                <td><%=job.datetime%></td>
                <td><%=job.owner_host%> (<%=job.owner_addr%>)</td>
                <td><%=job.created_at%></td>
                <td>
                    <form action="<%=root%>/<%=job.id%>/delete" method="post">
                        <%= csrf_tag %>
                        <input type="submit" value="Delete" />
                    </form>

                    <form action="#" onsubmit="showDialog( '#dialog_options_<%=job.id%>' ); return;" >
                        <input type="submit" value="Options" />
                    </form>
<commit_msg>datetime converted to time since the Time class has a nicer to_s output<commit_after>
            <% if !jobs.empty? %>
                <form action="<%=root%>/delete" method="post">
                    <%= csrf_tag %>
                    <input type="submit" value="Delete all" />
                </form>
            <% end %>

        <div>

            <form action="<%=root%>/" method="post">
                <h2>Schedule a scan</h2>

                <i>You can configure the scan parameters just like you normally would.</i>
                <br/>

                Select a Dispatcher:
                <select name="dispatcher">
                <% if d_stats.empty?%>
                        <option value="">None available, please add a Dispatcher to continue.</option>
                <%else%>
                    <% d_stats.each_pair do |d_url, stats| %>
                        <option value="<%=d_url%>"><%=show_dispatcher_line( stats ) %></option>
                    <%end%>
                <%end%>
                </select>

                URL: <input name="url" value="<%=session['opts']['settings']['url']%>" size="50" <% if d_stats.empty?%>  disabled="disabled"<%end%> />
                Schedule for: <input id="datetime" name="datetime" <% if d_stats.empty?%>  disabled="disabled"<%end%> />

                <%= csrf_tag %>
                <input type="submit" value="Add" <% if d_stats.empty?%>  disabled="disabled"<%end%> />

            </form>
        </div>


        <% if !jobs.empty? %>
        <table>
            <tr>
                <th>ID</th>
                <th>Dispatcher</th>
                <th>Target</th>
                <th>Starts at</th>
                <th>Created by</th>
                <th>Created at</th>
            </tr>
        <% jobs.each do |job| %>
            <tr>


                <td><%=job.id%></td>
                <td><%=job.dispatcher%></td>
                <td><%=job.url%></td>
                <td><%=job.datetime.to_time%></td>
                <td><%=job.owner_host%> (<%=job.owner_addr%>)</td>
                <td><%=job.created_at.to_time%></td>
                <td>
                    <form action="<%=root%>/<%=job.id%>/delete" method="post">
                        <%= csrf_tag %>
                        <input type="submit" value="Delete" />
                    </form>

                    <form action="#" onsubmit="showDialog( '#dialog_options_<%=job.id%>' ); return;" >
                        <input type="submit" value="Options" />
                    </form>

{'fraction_non_alphanumeric': 0.1764, 'fraction_numerical': 0.0016, 'mean_word_length': 1.30567081604426, 'pattern_counts': {'":': 0, '<': 181, '<?xml version=': 0, '>': 181, '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': '2547725', 'n_tokens_mistral': 1574, 'n_tokens_neox': 1380, 'n_words': 268}