<commit_before><!DOCTYPE HTML>

<html lang={{ config.lang_code }} dir={{ lang_dir }}>
  <head>
    {% block head_extras %}{% endblock %}
    <title>Citation Hunt</title>
    <link rel="stylesheet" href="static/style.css">
    <link rel="stylesheet" href="static/awesomplete.css">
    <script src="static/awesomplete/awesomplete.min.js" defer></script>
    <script src="static/category_filter.js" defer></script>
    <meta name="robots" content="nofollow, noodp">
    <meta name="description" content="Citation Hunt - {{ config.strings.introduction }}">
  </head>
  <body>
    <h1>Citation Hunt</h1>
    <p id=intro>{{ config.strings.introduction }}</h1>
    <p id="preamble"><span id="page-title-text">{{ config.strings.in_page % (article_url, article_title) }}</span></p>
    {# use a list for snippet_html to make sure we can access it outside the loop; see https://stackoverflow.com/questions/4870346 #}
    {% set cn_html = cn_html % config.citation_needed_template_name | replace(' ', '&thinsp;') | safe %}
    {% set snippet_html = [snippet | replace(cn_marker, cn_html)] %}
    {% for i in range(1, snippet_html[-1].count(ref_marker) + 1) %}
      {% if snippet_html.append(snippet_html[-1] | replace(ref_marker, ref_html % i, 1)) %}{% endif %}
    {% endfor %}
    <blockquote id="snippet"><div id="quotation">"</div>{{ snippet_html[-1] }}</blockquote>
    <div id="buttons">
      <a href={{ article_url }}{% if section %}#{{ section }}{% endif %} target=_blank><button class="button" id="button-wikilink">{{ config.strings.button_wikilink }}</button></a>
      <button form="form-next" type="submit" id="button-next" class="button">{{ config.strings.button_next }}</button>
    </div>
    <div id="bottom">
      {% if not section and config.strings.lead_section_hint %}<div id="lead-hint">{{ config.strings.lead_section_hint }}</div>{% endif %}
      <div> <!-- The content to the left of #lead-hint must be display:block to wrap around it -->
        <form method="GET" action="" id="form-next">
          <input type="text" id="category-input" list="categories" value = "{{ current_category.title }}" autocomplete="off" placeholder="{{ config.strings.category_filter_placeholder }}" {% if category_filter_autofocus %}autofocus{% endif %} style="visibility: hidden;">
          <input type="text" id="hidden-id-input" name="id" value="{{ next_snippet_id }}" hidden>
          <input type="text" id="hidden-category-input" name="cat" value="{{ current_category.id }}" hidden>
        </form>
        <noscript>
          <span id="js-disabled-category-warning">Sorry, filtering by category requires Javascript!</span>
        </noscript>
        <p id="beginners-link-text">{{ config.strings.beginners_hint }}</p>
      </div>
    </div>
    <link href="https://fonts.googleapis.com/css?family=Fondamento" rel="stylesheet" type="text/css">
    <a target="_blank" id="github-link" href="https://github.com/eggpi/citationhunt">{{ config.strings.github_link_title }}</a>
    <link rel="prefetch" href="{{ config.lang_code }}?id={{ next_snippet_id }}&cat={{ current_category.id }}">
    <div id="lang-links">
      {% for lang_code, lang_config in config.lang_code_to_config.items() | sort %}
        <a href="{{ lang_code }}"{% if config.lang_code == lang_code %} class="current-lang" {% endif %}>{{ lang_config.lang_name }}</a>
      {% endfor %}
    </div><commit_msg>Make it possible to hide a language while it is a work-in-progress.<commit_after><!DOCTYPE HTML>

<html lang={{ config.lang_code }} dir={{ lang_dir }}>
  <head>
    {% block head_extras %}{% endblock %}
    <title>Citation Hunt</title>
    <link rel="stylesheet" href="static/style.css">
    <link rel="stylesheet" href="static/awesomplete.css">
    <script src="static/awesomplete/awesomplete.min.js" defer></script>
    <script src="static/category_filter.js" defer></script>
    <meta name="robots" content="nofollow, noodp">
    <meta name="description" content="Citation Hunt - {{ config.strings.introduction }}">
  </head>
  <body>
    <h1>Citation Hunt</h1>
    <p id=intro>{{ config.strings.introduction }}</h1>
    <p id="preamble"><span id="page-title-text">{{ config.strings.in_page % (article_url, article_title) }}</span></p>
    {# use a list for snippet_html to make sure we can access it outside the loop; see https://stackoverflow.com/questions/4870346 #}
    {% set cn_html = cn_html % config.citation_needed_template_name | replace(' ', '&thinsp;') | safe %}
    {% set snippet_html = [snippet | replace(cn_marker, cn_html)] %}
    {% for i in range(1, snippet_html[-1].count(ref_marker) + 1) %}
      {% if snippet_html.append(snippet_html[-1] | replace(ref_marker, ref_html % i, 1)) %}{% endif %}
    {% endfor %}
    <blockquote id="snippet"><div id="quotation">"</div>{{ snippet_html[-1] }}</blockquote>
    <div id="buttons">
      <a href={{ article_url }}{% if section %}#{{ section }}{% endif %} target=_blank><button class="button" id="button-wikilink">{{ config.strings.button_wikilink }}</button></a>
      <button form="form-next" type="submit" id="button-next" class="button">{{ config.strings.button_next }}</button>
    </div>
    <div id="bottom">
      {% if not section and config.strings.lead_section_hint %}<div id="lead-hint">{{ config.strings.lead_section_hint }}</div>{% endif %}
      <div> <!-- The content to the left of #lead-hint must be display:block to wrap around it -->
        <form method="GET" action="" id="form-next">
          <input type="text" id="category-input" list="categories" value = "{{ current_category.title }}" autocomplete="off" placeholder="{{ config.strings.category_filter_placeholder }}" {% if category_filter_autofocus %}autofocus{% endif %} style="visibility: hidden;">
          <input type="text" id="hidden-id-input" name="id" value="{{ next_snippet_id }}" hidden>
          <input type="text" id="hidden-category-input" name="cat" value="{{ current_category.id }}" hidden>
        </form>
        <noscript>
          <span id="js-disabled-category-warning">Sorry, filtering by category requires Javascript!</span>
        </noscript>
        <p id="beginners-link-text">{{ config.strings.beginners_hint }}</p>
      </div>
    </div>
    <link href="https://fonts.googleapis.com/css?family=Fondamento" rel="stylesheet" type="text/css">
    <a target="_blank" id="github-link" href="https://github.com/eggpi/citationhunt">{{ config.strings.github_link_title }}</a>
    <link rel="prefetch" href="{{ config.lang_code }}?id={{ next_snippet_id }}&cat={{ current_category.id }}">
    <div id="lang-links">
      {% for lang_code, lang_config in config.lang_code_to_config.items() | sort %}
          {% if not lang_config.wip %}
            <a href="{{ lang_code }}"{% if config.lang_code == lang_code %} class="current-lang" {% endif %}>{{ lang_config.lang_name }}</a>
          {% endif %}
      {% endfor %}
    </div>
{'fraction_non_alphanumeric': 0.18734545454545454, 'fraction_numerical': 0.004654545454545455, 'mean_word_length': 4.108469539375928, 'pattern_counts': {'":': 0, '<': 125, '<?xml version=': 0, '>': 125, 'https://': 6, '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': '5355565', 'n_tokens_mistral': 2327, 'n_tokens_neox': 2183, 'n_words': 480}