<commit_before>{% set collection_stats = h.collection_stats() %}
{% set collection_codes = collection_stats['collectionCodes'].keys() %}

<p>
    The Museum is committed to open access and open science, and has launched the Data Portal to
    make its research and collections datasets available online. It allows anyone to explore,
    download and reuse the data for their own research.
</p>

<h2>Museum collection</h2>

<p>
    Our natural history collection is one of the most important in the world, documenting 4.5
    billion years of life, the Earth and the solar system.  Almost all animal, plant, mineral and
    fossil groups are represented.
</p>
<p id="about_text_specimens">
    The portal's main dataset consists of specimens from the Museum's collection database, with
    <a aria-labelledby="about_text_specimens" href="{{ h.url_for_collection_view() }}">
        {{ h.delimit_number(collection_stats['total']) }}</a>
    records from the Museum’s

    {% for collection_code in collection_codes %}
        {% set dept = h.get_department(collection_code) %}
        {% set key = loop.index0 %}
        <a title="{{ dept }} specimens" href="{{ h.url_for_collection_view(filters={'collectionCode': collection_code}) }}">{{ dept }}</a>{% if key == (collection_codes.__len__() - 2) %} and {% elif key < (collection_codes.__len__() - 2) %}, {% endif %}
    {%  endfor %}

    collections.
</p>
<p>
    We also have
    <a title="Index lots" href="{{ h.url_for_indexlot_view() }}">
        {{ h.indexlot_count() }} species-level
    </a>
    (index lot) records, which denote the presence of a taxon in the Museum collection.
</p>
<p><commit_msg>Switch links to use slugs<commit_after>{% set collection_stats = h.collection_stats() %}
{% set collection_codes = collection_stats['collectionCodes'].keys() %}

<p>
    The Museum is committed to open access and open science, and has launched the Data Portal to
    make its research and collections datasets available online. It allows anyone to explore,
    download and reuse the data for their own research.
</p>

<h2>Museum collection</h2>

<p>
    Our natural history collection is one of the most important in the world, documenting 4.5
    billion years of life, the Earth and the solar system.  Almost all animal, plant, mineral and
    fossil groups are represented.
</p>
<p id="about_text_specimens">
    The portal's main dataset consists of specimens from the Museum's collection database, with
    <a aria-labelledby="about_text_specimens" href="/search/specimens">
        {{ h.delimit_number(collection_stats['total']) }}</a>
    records from the Museum’s

    {% for collection_code in collection_codes %}
        {% set dept = h.get_department(collection_code) %}
        {% set is_last = (collection_codes.index(collection_code) == (collection_codes.__len__() - 1)) %}
        <a title="{{ dept }} specimens" href="/search/{{ dept | lower }}">{{ dept }}</a>{% if not is_last %}, {% endif %}
    {%  endfor %}

    collections.
</p>
<p>
    We also have
    <a title="Index lots" href="/search/indexlots">
        {{ h.delimit_number(collection_stats['indexlots']) }} species-level
    </a>
    (index lot) records, which denote the presence of a taxon in the Museum collection.
</p>
<p>
{'fraction_non_alphanumeric': 0.12350597609561753, 'fraction_numerical': 0.003677597303095311, 'mean_word_length': 3.79295154185022, 'pattern_counts': {'":': 0, '<': 38, '<?xml version=': 0, '>': 37, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 2, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '1084878', 'n_tokens_mistral': 992, 'n_tokens_neox': 939, 'n_words': 341}