<commit_before>{% cache cache_duration, 'dataset-card', dataset.id|string, g.lang_code %}
{% from theme('macros/certified.html') import badge_if_certified with context %}
<a class="card dataset-card"  href="{{ url_for('datasets.show', dataset=dataset) }}"
     href="{{ url_for('datasets.show', dataset=dataset) }}">
    {% if dataset.organization %}
        <div class="card-logo">
            <img alt="{{ dataset.organization.name }}"
                src="{{ dataset.organization.logo(70)|placeholder('organization') }}"
                width="70" height="70">
        </div>
        {{ badge_if_certified(dataset.organization) }}
    {% else %}
    <div class="card-logo">
        <img src="{{ ''|placeholder('organization') }}" alt="">
    </div>
    {% endif %}
    <div class="card-body">
        <h4>{{ dataset.title }}</h4>
        <div class="clamp-3">{{ dataset.description|mdstrip(180) }}</div>
    </div>

    <footer class="card-footer">
        <ul>
            <li v-tooltip title="{{ _('Number of resources') }}">
                <span class="{{ ficon('fa-cubes') }} fa-fw"></span>
                {{ dataset.resources | length  }}
            </li><commit_msg>Use external URLs in dataset card<commit_after>{% cache cache_duration, 'dataset-card', dataset.id|string, g.lang_code %}
{% from theme('macros/certified.html') import badge_if_certified with context %}
<a class="card dataset-card"  href="{{ url_for('datasets.show', dataset=dataset, _external=True) }}">
    {% if dataset.organization %}
        <div class="card-logo">
            <img alt="{{ dataset.organization.name }}"
                src="{{ dataset.organization.logo(70)|placeholder('organization', external=True) }}"
                width="70" height="70">
        </div>
        {{ badge_if_certified(dataset.organization) }}
    {% else %}
    <div class="card-logo">
        <img src="{{ ''|placeholder('organization', external=True) }}" alt="">
    </div>
    {% endif %}
    <div class="card-body">
        <h4>{{ dataset.title }}</h4>
        <div class="clamp-3">{{ dataset.description|mdstrip(180) }}</div>
    </div>

    <footer class="card-footer">
        <ul>
            <li v-tooltip title="{{ _('Number of resources') }}">
                <span class="{{ ficon('fa-cubes') }} fa-fw"></span>
                {{ dataset.resources | length  }}
            </li>
{'fraction_non_alphanumeric': 0.1955969517358171, 'fraction_numerical': 0.010160880609652836, 'mean_word_length': 2.7330173775671405, 'pattern_counts': {'":': 0, '<': 41, '<?xml version=': 0, '>': 41, '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': '5811374', 'n_tokens_mistral': 748, 'n_tokens_neox': 684, 'n_words': 142}