<commit_before>{% macro show_flashed_messages() %}
  {% set flashed_messages = get_flashed_messages() %}
  {% if flashed_messages %}
    <div class="flash-messges">
      {% for f in get_flashed_messages() %}
        {% set cat = dict(error="danger").get(f.category, f.category) %}
        <div class="alert alert-{{cat}}">{{f.message}}</div>
      {% endfor %}
    </div>
  {% endif %}
{% endmacro %}

{% macro workshop_preview(workshop, user=None) %}
  <div class="workshop">
    {% set org = workshop.get_org() %}
    <h3 class="workshop-title"><a href="/workshops/{{ workshop.id }}">{{ workshop.title }}</a></h3>
    <div class="workshop-venue">
      <span class="octicon octicon-location"></span>
      <span class="workshop-org">{{ org.name }}</span>,
      <span class="city">{{ org.city }}</span>
    </div>
    <div class="workshop-date"><commit_msg>Link the org in workshop preview.<commit_after>{% macro show_flashed_messages() %}
  {% set flashed_messages = get_flashed_messages() %}
  {% if flashed_messages %}
    <div class="flash-messges">
      {% for f in get_flashed_messages() %}
        {% set cat = dict(error="danger").get(f.category, f.category) %}
        <div class="alert alert-{{cat}}">{{f.message}}</div>
      {% endfor %}
    </div>
  {% endif %}
{% endmacro %}

{% macro workshop_preview(workshop, user=None) %}
  <div class="workshop">
    {% set org = workshop.get_org() %}
    <h3 class="workshop-title"><a href="/workshops/{{ workshop.id }}">{{ workshop.title }}</a></h3>
    <div class="workshop-venue">
      <span class="octicon octicon-location"></span>
      <span class="workshop-org"><a href="/orgs/{{org.id}}">{{ org.name }}</a></span>,
      <span class="city">{{ org.city }}</span>
    </div>
    <div class="workshop-date">
{'fraction_non_alphanumeric': 0.21569734613212874, 'fraction_numerical': 0.002258610954263128, 'mean_word_length': 3.6145833333333335, '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': '2208576', 'n_tokens_mistral': 633, 'n_tokens_neox': 580, 'n_words': 115}