<commit_before>{% extends "./layout/default" %}

{% block breadcrumbs %}
    {{ Breadcrumbs.renderIfExists(Route.getCurrentRoute.getName, bill) }}
{% endblock %}

{% block content %}

    <div class="row">
        <div class="col-lg-6 col-sm-12 col-md-12">
            <div class="box">
                <div class="box-header with-border">
                    <h3 class="box-title">{{ bill.name }}</h3>

                    {% if bill.active %}
                        <i class="fa fa-check fa-fw" title="{{ 'active'|_ }}"></i>
                    {% else %}
                        <i class="fa fa-times fa-fw" title="{{ 'inactive'|_ }}"></i>
                    {% endif %}

                    {% if bill.automatch %}
                        <i class="fa fa-check fa-fw" title="{{ 'auto_match_on'|_ }}"></i>
                    {% else %}
                        <i class="fa fa-times fa-fw" title="{{ 'auto_match_off'|_ }}"></i>
                    {% endif %}

                    <!-- ACTIONS MENU -->
                    <div class="box-tools pull-right">
                        <div class="btn-group">
                            <button class="btn btn-box-tool dropdown-toggle" data-toggle="dropdown"><i class="fa fa-ellipsis-v"></i></button>
                            <ul class="dropdown-menu" role="menu">
                                <li><a href="{{ route('bills.edit',bill.id) }}"><i class="fa fa-fw fa-pencil"></i> {{ 'edit'|_ }}</a></li>
                                <li><a href="{{ route('bills.delete',bill.id) }}"><i class="fa fa-fw fa-trash-o"></i> {{ 'delete'|_ }}</a></li>
                            </ul>
                        </div>
                    </div>

                </div>
                <div class="box-body">
                    <table class="table">
                        <tr>
                            <td colspan="2">
                                {{ 'matching_on'|_ }}
                                {% for word in bill.match|split(',') %}
                                    <span class="label label-info">{{ word }}</span>
                                {% endfor %}
                                {{ trans('firefly.between_amounts', {low: bill.amount_min|formatAmount, high: bill.amount_max|formatAmount })|raw }}
                                {{ 'repeats'|_ }}
                                {{ trans('firefly.repeat_freq_' ~bill.repeat_freq) }}.
                            </td>

                        </tr>
                        <tr>
                            <td>{{ 'next_expected_match'|_ }}</td>
                            <td>
                                {% if bill.nextExpectedMatch %}
                                    {{ bill.nextExpectedMatch.formatLocalized(monthAndDayFormat) }}
                                {% else %}
                                    <em>{{ 'unknown'|_ }}</em>
                                {% endif %}
                            </td>
                        </tr>
                        <tr>
                            <td>{{ trans('firefly.average_bill_amount_year', {year: year}) }}</td>
                            <td>{{ yearAverage|formatAmount }}</td>
                        </tr>
                        <tr>
                            <td>{{ 'average_bill_amount_overall'|_ }}</td>
                            <td>{{ overallAverage|formatAmount }}</td>
                        </tr>
                    </table>
                </div>
            </div>
        </div>
        <div class="col-lg-6 col-sm-12 col-md-12">
            <div class="box"><commit_msg>Fixes #708<commit_after>{% extends "./layout/default" %}

{% block breadcrumbs %}
    {{ Breadcrumbs.renderIfExists(Route.getCurrentRoute.getName, bill) }}
{% endblock %}

{% block content %}

    <div class="row">
        <div class="col-lg-6 col-sm-12 col-md-12">
            <div class="box">
                <div class="box-header with-border">
                    <h3 class="box-title">{{ bill.name }}</h3>

                    <div class="box-tools pull-right">
                        <div class="btn-group">
                            <button class="btn btn-box-tool dropdown-toggle" data-toggle="dropdown"><i class="fa fa-ellipsis-v"></i></button>
                            <ul class="dropdown-menu" role="menu">
                                <li><a href="{{ route('bills.edit',bill.id) }}"><i class="fa fa-fw fa-pencil"></i> {{ 'edit'|_ }}</a></li>
                                <li><a href="{{ route('bills.delete',bill.id) }}"><i class="fa fa-fw fa-trash-o"></i> {{ 'delete'|_ }}</a></li>
                            </ul>
                        </div>
                    </div>

                </div>
                <div class="box-body">
                    <table class="table">
                        <tr>
                            <td colspan="2">
                                {{ 'matching_on'|_ }}
                                {% for word in bill.match|split(',') %}
                                    <span class="label label-info">{{ word }}</span>
                                {% endfor %}
                                {{ trans('firefly.between_amounts', {low: bill.amount_min|formatAmount, high: bill.amount_max|formatAmount })|raw }}
                                {{ 'repeats'|_ }}
                                {{ trans('firefly.repeat_freq_' ~bill.repeat_freq) }}.
                            </td>
                        </tr>
                        <tr>
                            <td>{{ 'bill_is_active'|_ }}</td>
                            <td>
                                {% if bill.active %}
                                    <i class="fa fa-check fa-fw" title="{{ 'active'|_ }}"></i> {{ 'yes'|_ }}
                                {% else %}
                                    <i class="fa fa-times fa-fw" title="{{ 'inactive'|_ }}"></i> {{ 'no'|_ }}
                                {% endif %}
                            </td>
                        </tr>
                        <tr>
                            <td>{{ 'bill_will_automatch'|_ }}</td>
                            <td>
                                {% if bill.automatch %}
                                    <i class="fa fa-check fa-fw" title="{{ 'auto_match_on'|_ }}"></i> {{ 'yes'|_ }}
                                {% else %}
                                    <i class="fa fa-times fa-fw" title="{{ 'auto_match_off'|_ }}"></i> {{ 'no'|_ }}
                                {% endif %}
                            </td>
                        </tr>

                        <tr>
                            <td>{{ 'next_expected_match'|_ }}</td>
                            <td>
                                {% if bill.nextExpectedMatch %}
                                    {{ bill.nextExpectedMatch.formatLocalized(monthAndDayFormat) }}
                                {% else %}
                                    <em>{{ 'unknown'|_ }}</em>
                                {% endif %}
                            </td>
                        </tr>
                        <tr>
                            <td>{{ trans('firefly.average_bill_amount_year', {year: year}) }}</td>
                            <td>{{ yearAverage|formatAmount }}</td>
                        </tr>
                        <tr>
                            <td>{{ 'average_bill_amount_overall'|_ }}</td>
                            <td>{{ overallAverage|formatAmount }}</td>
                        </tr>
                    </table>
                </div>
            </div>
        </div>
        <div class="col-lg-6 col-sm-12 col-md-12">
            <div class="box">
{'fraction_non_alphanumeric': 0.15710205141521683, 'fraction_numerical': 0.0037652557777200727, 'mean_word_length': 0.9029150197628458, 'pattern_counts': {'":': 0, '<': 158, '<?xml version=': 0, '>': 158, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 34, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '2207480', 'n_tokens_mistral': 2128, 'n_tokens_neox': 1888, 'n_words': 360}