<commit_before>{% extends "base.html" %}
{% load i18n %}
{% load thumbnail %}
{% load url from future %}
{% load sekizai_tags %}

{% block title %}
        {% if image.title %}
            {{ image.title }}
        {% else %}
            image
        {% endif %}

        {% if image.overrideable_photographer %}
            {% trans "by" %}{{ image.overrideable_photographer }}
        {% endif %}
{% endblock title %}

{% block content %}

    {# Sekizai makes us put these Addtoblocks INSIDE the block content tag #}

    {% addtoblock "css" %}
        <link rel="stylesheet" type="text/css" href="{{ STATIC_URL }}css/imagesift.css">
        <style type="text/css">
            /* css for this detail template only*/
        </style>
    {% endaddtoblock %}

    {% addtoblock "js" %}
        <script type="text/javascript" src="{{ STATIC_URL }}js/imagesift.js"></script>
        <script type="text/javascript">
            /* js for this template only */
        </script>
    {% endaddtoblock %}


    <main class="black">
      <div id="main-sub" >
        <div id="content" class="gallery detail">
          <div id="modal-container">
            <div id="modal" class="visible">
              <div id="modal-sub">

                <div id="modal-controls">
                  <a id="close-modal" href="#">close x</a>
                  {% if prev != None %}
                      <a href="{% url 'imagesift:image' pk=prev.id %}?gall={{ gall_plugin.id }}&back={{ back }}" id="gallery-previous" class="gallery-nav"></a>
                  {% endif %}
                  {% if next != None %}
                      <a href="{% url 'imagesift:image' pk=next.id %}?gall={{ gall_plugin.id }}&back={{ back }}" id="gallery-next" class="gallery-nav"></a>
                  {% endif %}
                 
                  
                </div>

                {# just change the dimensions for the cropped image, as needed. Computed and cached on first use. #}
                {% thumbnail image.image geometry crop="center" as im %}

                    <img class="preview" src="{{ im.url }}" {% if image.title %} alt="{{ image.title }}" {% endif %} width="{{ im.width }}" height="{{ im.height }}"/>

                {% endthumbnail %}

          
                <div id="modal-meta">

                  <div class="meta-col">
                  {{ image.overrideable_photographer }}<br>
                  {{ image.event_name }}<br>
                  Date: {{ image.overrideable_date }}<commit_msg>video embed block<commit_after>{% extends "base.html" %}
{% load i18n %}
{% load thumbnail %}
{% load url from future %}
{% load sekizai_tags %}

{% block title %}
        {% if image.title %}
            {{ image.title }}
        {% else %}
            image
        {% endif %}

        {% if image.overrideable_photographer %}
            {% trans "by" %}{{ image.overrideable_photographer }}
        {% endif %}
{% endblock title %}

{% block content %}

    {# Sekizai makes us put these Addtoblocks INSIDE the block content tag #}

    {% addtoblock "css" %}
        <link rel="stylesheet" type="text/css" href="{{ STATIC_URL }}css/imagesift.css">
        <style type="text/css">
            /* css for this detail template only*/
        </style>
    {% endaddtoblock %}

    {% addtoblock "js" %}
        <script type="text/javascript" src="{{ STATIC_URL }}js/imagesift.js"></script>
        <script type="text/javascript">
            /* js for this template only */
        </script>
    {% endaddtoblock %}


    <main class="black">
      <div id="main-sub" >
        <div id="content" class="gallery detail">
          <div id="modal-container">
            <div id="modal" class="visible">
              <div id="modal-sub">

                <div id="modal-controls">
                  <a id="close-modal" href="#">close x</a>
                  {% if prev != None %}
                      <a href="{% url 'imagesift:image' pk=prev.id %}?gall={{ gall_plugin.id }}&back={{ back }}" id="gallery-previous" class="gallery-nav"></a>
                  {% endif %}
                  {% if next != None %}
                      <a href="{% url 'imagesift:image' pk=next.id %}?gall={{ gall_plugin.id }}&back={{ back }}" id="gallery-next" class="gallery-nav"></a>
                  {% endif %}
                 
                  
                </div>

                {% if image.has_video %}
                  {{ image.video_embed_block }} 
                {% else %}

                {# just change the dimensions for the cropped image, as needed. Computed and cached on first use. #}
                {% thumbnail image.image geometry crop="center" as im %}

                    <img class="preview" src="{{ im.url }}" {% if image.title %} alt="{{ image.title }}" {% endif %} width="{{ im.width }}" height="{{ im.height }}"/>

                {% endthumbnail %}

                {% endif %}

                <div id="modal-meta">

                  <div class="meta-col">
                  {{ image.overrideable_photographer }}<br>
                  {{ image.event_name }}<br>
                  Date: {{ image.overrideable_date }}
{'fraction_non_alphanumeric': 0.1658878504672897, 'fraction_numerical': 0.000778816199376947, 'mean_word_length': 1.7266454352441614, 'pattern_counts': {'":': 0, '<': 55, '<?xml version=': 0, '>': 55, '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': '1350759', 'n_tokens_mistral': 1594, 'n_tokens_neox': 1389, 'n_words': 355}