<commit_before>{% extends "layout.html" %}
{% import "macros/numbers.html" as numbers %}


{% block body %}
    <div class="panel">
        <table class="list list-calls">
            {% for call in calls.list %}
            <tr>
                <td class="list-icon">
                    <i class="ion-android-call {% if call.status == "completed" %}text-success{% else %}text-error{% endif %}"></i>
                    {% if call.direction == "outbound" %}
                    <i class="ion-android-arrow-forward secondary"></i>
                    {% else %}
                    <i class="ion-android-arrow-back secondary"></i>
                    {% endif %}
                </td>
                <td>
                    {{ numbers.item(call.from) }}
                    {% if call.forwardedFrom %}
                    <p class="help">Forwarded by {{ numbers.item(call.forwardedFrom) }}</p>
                    {% endif %}
                </td>
                <td>{{ numbers.item(call.to) }}</td>
                <td>{{ call.startTime|relativeDate }}</td>
                <td>{{ call.duration }}s</td>
            </tr>
            {% endfor %}
        </table>
    </div>
{% endblock %}<commit_msg>Add tooltip for call status and direction<commit_after>{% extends "layout.html" %}
{% import "macros/numbers.html" as numbers %}


{% block body %}
    <div class="panel">
        <table class="list list-calls">
            {% for call in calls.list %}
            <tr>
                <td class="list-icon">
                    <div class="tooltip" title="{{ call.direction|capitalize }} call, {{ call.status|capitalize }}">
                        <i class="ion-android-call {% if call.status == "completed" %}text-success{% else %}text-error{% endif %}"></i>
                        {% if call.direction == "outbound" %}
                        <i class="ion-android-arrow-forward secondary"></i>
                        {% else %}
                        <i class="ion-android-arrow-back secondary"></i>
                        {% endif %}
                    </div>
                </td>
                <td>
                    {{ numbers.item(call.from) }}
                    {% if call.forwardedFrom %}
                    <p class="help">Forwarded by {{ numbers.item(call.forwardedFrom) }}</p>
                    {% endif %}
                </td>
                <td>{{ numbers.item(call.to) }}</td>
                <td>{{ call.startTime|relativeDate }}</td>
                <td>{{ call.duration }}s</td>
            </tr>
            {% endfor %}
        </table>
    </div>
{% endblock %}
{'fraction_non_alphanumeric': 0.16730621642363777, 'fraction_numerical': 0.0, 'mean_word_length': 1.3235294117647058, 'pattern_counts': {'":': 0, '<': 53, '<?xml version=': 0, '>': 53, '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': '6840101', 'n_tokens_mistral': 777, 'n_tokens_neox': 668, 'n_words': 149}