<commit_before>{% extends 'baseAdmin.twig' %}
{% block headScripts %}
    <style>
        .donut200{
            height:200px;
            width: 200px;
        }
        .ui-autocomplete-loading {
            background: white url("{{siteUrl}}/images/GIF/ring24.gif") right center no-repeat;
        }
    </style>
    <link rel="stylesheet" hred="{{siteUrl}}/css/bootstrapAutoCompleteCompatibility.css"/>
    <link rel="stylesheet" href="{{siteUrl}}/js/chosen.css">
    <link rel="stylesheet" href="{{siteUrl}}/js/bootstrap/checkbox/css/bootstrap-checkbox.css">
    <link rel="stylesheet" href="{{siteUrl}}/js/jquery/css/smoothness/jquery-ui-1.10.0.custom.min.css"/>
{% endblock %}
{% block breadcrumb %}
<ol class="breadcrumb">
    <li>
        <i class="fa fa-dashboard"></i>  <a href="/">Dashboard</a>
    </li>
    <li class="active">
        <i class="fa fa-line-chart"></i>{% if search %}
        <a href="/station">System</a>
    </li>
    <li>
        <i class="fa fa-search"></i> Playlist
        {% else %}
            Playslist
        {% endif %}
    </li>
</ol>
{% endblock %}
{% block content %}
    {% if flash.error %}
        <div class="row">
            <div class="alert alert-danger">
                <strong>Error</strong> {{flash.error}}
            </div>
        </div>
    {% endif %}
    {% if flash.success %}
        <div class="row">
            <div class="alert alert-success">
                <strong>Success</strong> {{flash.success}}
            </div>
        </div>
    {% endif %}
    <div class="row" id="error" style="display: none">
        <div class="alert alert-danger">
            <strong>Error: </strong><span id="errorText">TEST</span>
        </div>
    </div>
    <form role="form" method="GET">
        <div class="row">
            <div class="form-group input-group" style="z-index: 0;">
                <div class="input-group-addon">Default Date Offset</div>
<input type="text" required class="form-control datepicker4m text-center" 
value="{{today|default("now")|date("Y-m-d")}}" name="today"/>
                <span class="input-group-btn"><button class="btn btn-default" type="submit">
                        <i class="fa fa-calculator"></i>&nbsp;Update</button></span>
            </div>
        </div>
    </form><!--
    <ul class="nav nav-tabs">
        <li class="active"><a data-toggle="tab" href="#home">Home</a></li>
        <li><a data-toggle="tab" href="#menu1">Menu 1</a></li>
        <li><a data-toggle="tab" href="#menu2">Menu 2</a></li>
    </ul>-->
        <div class="panel-group" id="accordion">
            {% for genre, gap in gaps %}
            <div class="panel panel-default">
                <div class="panel-heading">
                    <h4 class="panel-title">
                        <a data-toggle="collapse" data-parent="#accordion" href="#{{genre}}">{{gap.genre}}</a>
                    </h4>
                </div>
                <div id="{{genre}}" class="panel-collapse collapse">
                    <div class="panel-body">
                        <table class='table table-bordered table-hover' >
                            <thead>
                                <th>Gap</th>
                                <th>Formats</th>
                            </thead>
                            <tbody>
                            {% for gapData in gap %}
                                {% for gapList in gapData.gaps %}
                                    <tr>
                                        <td>{{gapList|join(' - ')}}</td>
                                        <td>{{gapData.formats|join(', ')}}</td>
                                    </tr>
                                {% endfor %}
                            {% endfor %}
                            </tbody>
                        </table>
                    </div>
                </div>
            </div>
            {% endfor %}
        </div>
    <form role="form" method="POST">
    <table class='table table-bordered table-hover' >
        <thead>
            <th>Locale</th>
            <th>Format</th>
            <th>Genre</th>
            <th>Received</th>
            <th>Labels</th>
            <th>Artist</th>
            <th>Album</th>
            <th style="min-width: 150px;">On Playlist</th>
            <th style="min-width: 150px;">Off Playlist</th>
            <th title="A short Identifier for an album">Short Code</th>
            <th>Enabled</th>
        </thead>
        <tbody>
            {% for playlist in playlists %}
                <tr>
                    <td><div id="LC_SCI_{{playlist.RefCode}}">
                            {{playlist.Locale}}
                    </div></td>
                    <td><div id="FMT_SCI_{{playlist.RefCode}}">
                            {{playlist.format}}
                    </div></td>
                    <td><div id="GENRE_SCI_{{playlist.RefCode}}">
                        {{playlist.genre.Title}}
                        </div>
                        <div id="GC_SCI_{{playlist.RefCode}}" 
                             style="display: none">
                            {{playlist.genre.Genre}}
                        </div></td>
                    <!--<td>{{playlist.release_date|date("Y-m-d")}}</td>-->
                    <td>{{playlist.datein|date("Y-m-d")}}</td>
                    <td>
			{% for label in playlist.labels %}
			<a href="../../label/{{label.LabelNumber}}" target="_pl">
                            {{label.Name}}</a> {% if not loop.last %}, <br>{% endif %} 
			{% endfor %}
		    </td>
                    <td><a href="../../library/{{playlist.RefCode}}" target="_pl">
                            {{playlist.artist}}</a></td>
                    <td><a href="../../library/{{playlist.RefCode}}" target="_pl">
                            {{playlist.album}}</a></td>
                    <td><div id="DIV_ONP_SCI_{{playlist.RefCode}}">
                            <input type="text" required 
                                   id="ONP_SCI_{{playlist.RefCode}}"
                               class="form-control datepicker text-center"<commit_msg>Fix labels listing in playlist report web document<commit_after>{% extends 'baseAdmin.twig' %}
{% block headScripts %}
    <style>
        .donut200{
            height:200px;
            width: 200px;
        }
        .ui-autocomplete-loading {
            background: white url("{{siteUrl}}/images/GIF/ring24.gif") right center no-repeat;
        }
    </style>
    <link rel="stylesheet" hred="{{siteUrl}}/css/bootstrapAutoCompleteCompatibility.css"/>
    <link rel="stylesheet" href="{{siteUrl}}/js/chosen.css">
    <link rel="stylesheet" href="{{siteUrl}}/js/bootstrap/checkbox/css/bootstrap-checkbox.css">
    <link rel="stylesheet" href="{{siteUrl}}/js/jquery/css/smoothness/jquery-ui-1.10.0.custom.min.css"/>
{% endblock %}
{% block breadcrumb %}
<ol class="breadcrumb">
    <li>
        <i class="fa fa-dashboard"></i>  <a href="/">Dashboard</a>
    </li>
    <li class="active">
        <i class="fa fa-line-chart"></i>{% if search %}
        <a href="/station">System</a>
    </li>
    <li>
        <i class="fa fa-search"></i> Playlist
        {% else %}
            Playslist
        {% endif %}
    </li>
</ol>
{% endblock %}
{% block content %}
    {% if flash.error %}
        <div class="row">
            <div class="alert alert-danger">
                <strong>Error</strong> {{flash.error}}
            </div>
        </div>
    {% endif %}
    {% if flash.success %}
        <div class="row">
            <div class="alert alert-success">
                <strong>Success</strong> {{flash.success}}
            </div>
        </div>
    {% endif %}
    <div class="row" id="error" style="display: none">
        <div class="alert alert-danger">
            <strong>Error: </strong><span id="errorText">TEST</span>
        </div>
    </div>
    <form role="form" method="GET">
        <div class="row">
            <div class="form-group input-group" style="z-index: 0;">
                <div class="input-group-addon">Default Date Offset</div>
<input type="text" required class="form-control datepicker4m text-center" 
value="{{today|default("now")|date("Y-m-d")}}" name="today"/>
                <span class="input-group-btn"><button class="btn btn-default" type="submit">
                        <i class="fa fa-calculator"></i>&nbsp;Update</button></span>
            </div>
        </div>
    </form><!--
    <ul class="nav nav-tabs">
        <li class="active"><a data-toggle="tab" href="#home">Home</a></li>
        <li><a data-toggle="tab" href="#menu1">Menu 1</a></li>
        <li><a data-toggle="tab" href="#menu2">Menu 2</a></li>
    </ul>-->
        <div class="panel-group" id="accordion">
            {% for genre, gap in gaps %}
            <div class="panel panel-default">
                <div class="panel-heading">
                    <h4 class="panel-title">
                        <a data-toggle="collapse" data-parent="#accordion" href="#{{genre}}">{{gap.genre}}</a>
                    </h4>
                </div>
                <div id="{{genre}}" class="panel-collapse collapse">
                    <div class="panel-body">
                        <table class='table table-bordered table-hover' >
                            <thead>
                                <th>Gap</th>
                                <th>Formats</th>
                            </thead>
                            <tbody>
                            {% for gapData in gap %}
                                {% for gapList in gapData.gaps %}
                                    <tr>
                                        <td>{{gapList|join(' - ')}}</td>
                                        <td>{{gapData.formats|join(', ')}}</td>
                                    </tr>
                                {% endfor %}
                            {% endfor %}
                            </tbody>
                        </table>
                    </div>
                </div>
            </div>
            {% endfor %}
        </div>
    <form role="form" method="POST">
    <table class='table table-bordered table-hover' >
        <thead>
            <th>Locale</th>
            <th>Format</th>
            <th>Genre</th>
            <th>Received</th>
            <th>Labels</th>
            <th>Artist</th>
            <th>Album</th>
            <th style="min-width: 150px;">On Playlist</th>
            <th style="min-width: 150px;">Off Playlist</th>
            <th title="A short Identifier for an album">Short Code</th>
            <th>Enabled</th>
        </thead>
        <tbody>
            {% for playlist in playlists %}
                <tr>
                    <td><div id="LC_SCI_{{playlist.RefCode}}">
                            {{playlist.Locale}}
                    </div></td>
                    <td><div id="FMT_SCI_{{playlist.RefCode}}">
                            {{playlist.format}}
                    </div></td>
                    <td><div id="GENRE_SCI_{{playlist.RefCode}}">
                        {{playlist.genre.Title}}
                        </div>
                        <div id="GC_SCI_{{playlist.RefCode}}" 
                             style="display: none">
                            {{playlist.genre.Genre}}
                        </div></td>
                    <!--<td>{{playlist.release_date|date("Y-m-d")}}</td>-->
                    <td>{{playlist.datein|date("Y-m-d")}}</td>
                    <td>
			{% for label in playlist.labels %}
			<a href="../../label/{{label.LabelNumber}}" target="_pl">
                            -{{label.Name}}</a>{% if not loop.last %}<br>{% endif %} 
			{% endfor %}
		    </td>
                    <td><a href="../../library/{{playlist.RefCode}}" target="_pl">
                            {{playlist.artist}}</a></td>
                    <td><a href="../../library/{{playlist.RefCode}}" target="_pl">
                            {{playlist.album}}</a></td>
                    <td><div id="DIV_ONP_SCI_{{playlist.RefCode}}">
                            <input type="text" required 
                                   id="ONP_SCI_{{playlist.RefCode}}"
                               class="form-control datepicker text-center"
{'fraction_non_alphanumeric': 0.17589045561985492, 'fraction_numerical': 0.004727361643165702, 'mean_word_length': 1.3618864292589028, 'pattern_counts': {'":': 0, '<': 337, '<?xml version=': 0, '>': 335, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 16, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '4005918', 'n_tokens_mistral': 3707, 'n_tokens_neox': 3398, 'n_words': 610}