<commit_before>{% extends 'RonConsumptionBundle::base.html.twig' %}

{% block title %}<h1>{% trans %}Verbrauchsliste{% endtrans %}</h1>{% endblock title %}
{% block content %}
    <script type="text/javascript" src="https://www.google.com/jsapi"></script>
    <script type="text/javascript">
        google.load("visualization", "1", {packages: ["corechart"]});
        google.setOnLoadCallback(drawChart);
        function drawChart() {
            var data = google.visualization.arrayToDataTable([
                ['Datum', 'Wasser', 'Strom', 'Gas'],
                {% for consumption in data %}
                [
                    '{{ consumption[0] }}',
                    {{ consumption[1] }},
                    {{ consumption[2] }},
                    {{ consumption[3] }},
                ],
                {% endfor %}
            ]);

            var options = {
                title: 'Ressourcenverbrauch',
                hAxis: {title: 'Datum', titleTextStyle: {color: 'red'}},
                backgroundColor: 'none'
            };

            var chart = new google.visualization.AreaChart(document.getElementById('chart_div'));
            chart.draw(data, options);
        }
    </script>
    <script type="text/javascript">
        google.load("visualization", "1", {packages: ["corechart"]});
        google.setOnLoadCallback(drawChart);
        function drawChart() {
            var data = google.visualization.arrayToDataTable([
                ['Datum', 'Wasser', 'Strom', 'Gas'],
                {% for date, consumption in dataAvg %}
                [
                    '{{ consumption['date'] }}',
                    {{ consumption['energy'] }},
                    {{ consumption['water'] }},
                    {{ consumption['gas'] }},
                ],
                {% endfor %}
            ]);

            var options = {
                title: 'Ressourcenverbrauch',
                hAxis: {title: 'Datum', titleTextStyle: {color: 'red'}},
                backgroundColor: 'none'
            };

            var chart = new google.visualization.AreaChart(document.getElementById('chart_div_average'));
            chart.draw(data, options);
        }
    </script>
    <div data-role="content">
        <div id="chart_div" style="width: 450px; height: 250px;"></div>
        <div id="chart_div_average" style="width: 450px; height: 250px;"></div>
        <div>{{ dump(dataAvg) }}</div>
        <table data-role="table" class="ui-responsive" id="consumption-table">
            <thead>
            <tr>
                <th data-priority="1">{% trans %}Id{% endtrans %}</th>
                <th data-priority="2">{% trans %}Energy{% endtrans %}</th>
                <th data-priority="3">{% trans %}Water{% endtrans %}</th>
                <th data-priority="4">{% trans %}Gas{% endtrans %}</th>
                <th data-priority="5">{% trans %}Createdate{% endtrans %}</th>
                <th data-priority="6">{% trans %}Actions{% endtrans %}</th>
            </tr>
            </thead>
            <tbody>
            {% for entity in entities %}
                <tr>
                    <td>{{ entity.id }}</a></td><commit_msg>remove debug<commit_after>{% extends 'RonConsumptionBundle::base.html.twig' %}

{% block title %}<h1>{% trans %}Verbrauchsliste{% endtrans %}</h1>{% endblock title %}
{% block content %}
    <script type="text/javascript" src="https://www.google.com/jsapi"></script>
    <script type="text/javascript">
        google.load("visualization", "1", {packages: ["corechart"]});
        google.setOnLoadCallback(drawChart);
        function drawChart() {
            var data = google.visualization.arrayToDataTable([
                ['Datum', 'Wasser', 'Strom', 'Gas'],
                {% for consumption in data %}
                [
                    '{{ consumption[0] }}',
                    {{ consumption[1] }},
                    {{ consumption[2] }},
                    {{ consumption[3] }},
                ],
                {% endfor %}
            ]);

            var options = {
                title: 'Ressourcenverbrauch',
                hAxis: {title: 'Datum', titleTextStyle: {color: 'red'}},
                backgroundColor: 'none'
            };

            var chart = new google.visualization.AreaChart(document.getElementById('chart_div'));
            chart.draw(data, options);
        }
    </script>
    <script type="text/javascript">
        google.load("visualization", "1", {packages: ["corechart"]});
        google.setOnLoadCallback(drawChart);
        function drawChart() {
            var data = google.visualization.arrayToDataTable([
                ['Datum', 'Wasser', 'Strom', 'Gas'],
                {% for date, consumption in dataAvg %}
                [
                    '{{ consumption['date'] }}',
                    {{ consumption['energy'] }},
                    {{ consumption['water'] }},
                    {{ consumption['gas'] }},
                ],
                {% endfor %}
            ]);

            var options = {
                title: 'Ressourcenverbrauch',
                hAxis: {title: 'Datum', titleTextStyle: {color: 'red'}},
                backgroundColor: 'none'
            };

            var chart = new google.visualization.AreaChart(document.getElementById('chart_div_average'));
            chart.draw(data, options);
        }
    </script>
    <div data-role="content">
        <div id="chart_div" style="width: 450px; height: 250px;"></div>
        <div id="chart_div_average" style="width: 450px; height: 250px;"></div>
        <table data-role="table" class="ui-responsive" id="consumption-table">
            <thead>
            <tr>
                <th data-priority="1">{% trans %}Id{% endtrans %}</th>
                <th data-priority="2">{% trans %}Energy{% endtrans %}</th>
                <th data-priority="3">{% trans %}Water{% endtrans %}</th>
                <th data-priority="4">{% trans %}Gas{% endtrans %}</th>
                <th data-priority="5">{% trans %}Createdate{% endtrans %}</th>
                <th data-priority="6">{% trans %}Actions{% endtrans %}</th>
            </tr>
            </thead>
            <tbody>
            {% for entity in entities %}
                <tr>
                    <td>{{ entity.id }}</a></td>
{'fraction_non_alphanumeric': 0.1674573055028463, 'fraction_numerical': 0.008222643896268185, 'mean_word_length': 1.7169243986254294, 'pattern_counts': {'":': 0, '<': 75, '<?xml version=': 0, '>': 75, 'https://': 2, 'lorem ipsum': 0, 'www.': 2, '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': '4154931', 'n_tokens_mistral': 1867, 'n_tokens_neox': 1661, 'n_words': 349}