<commit_before>{%  for media in resource.getMedia %}
    <div class="gallery-box">
        {% set imgUrl = media.url %}
        <a href="{{ imgUrl }}" rel="gallery-{{ resource.id }}" title="{{ media.name }}" class="fancybox">
            <img src="{{ imgUrl | imagine_filter('image_small_jpg') }}" />
        </a>
    </div>
{% endfor %}
<div class="gallery-clearfix"></div><commit_msg>Gallery bugfix<commit_after>{%  for media in resource.getMedia %}
    <div class="gallery-box">
        {% set imgUrl = media.url %}
        {% if imgUrl and media.contentType starts with 'image' %}
            <a href="{{ imgUrl }}" rel="gallery-{{ resource.id }}" title="{{ media.name }}" class="fancybox">
                <img src="{{ imgUrl | imagine_filter('image_small_jpg') }}" />
            </a>
        {% endif %}
    </div>
{% endfor %}
<div class="gallery-clearfix"></div>
{'fraction_non_alphanumeric': 0.20321469575200918, 'fraction_numerical': 0.0, 'mean_word_length': 2.774891774891775, 'pattern_counts': {'":': 0, '<': 17, '<?xml version=': 0, '>': 17, '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': '6077643', 'n_tokens_mistral': 289, 'n_tokens_neox': 266, 'n_words': 62}