<commit_before>{% macro render_field(field) %}
    <div class="form-group">
        {{ field.label(class_="form-label") }}
        {% if not kwargs['class_'] %}
          {{ field(class_="form-control", **kwargs)|safe }}
        {% else %}
          {{ field(**kwargs)|safe }}
        {% endif %}
        {% if field.errors %}
            {% for error in field.errors %}
                <span class="error">{{error}}</span>
            {% endfor %}
        {% endif %}
    </div>
{% endmacro %}


{% macro render_hidden(form) %}
    {{ form.hidden_tag() }}
{% endmacro %}


{% macro linked_with(links) %}
  <p>Linked with:</p>
  <ul>
    {% for link in links %}
    <li>
        {%- if link.__class__.__name__ == 'Competency' -%}
          Competency: {{ link.name }}

        {%- elif link.entry_type == 'objective' -%}
          Objective: {{ link.entry.what }}

        {%- elif link.entry_type == 'feedback' -%}
          Feedback: {{ link.entry.details }}

        {%- elif link.entry_type == 'log' -%}
          Note: {{ link.entry.content }}

        {%- endif -%}

        <a href="#remove-link?link={{ link.id }}">remove</a>
      </li>
    {% endfor %}
  </ul>
{% endmacro %}<commit_msg>Update linked-with macro to use new layout<commit_after>{% macro render_field(field) %}
    <div class="form-group">
        {{ field.label(class_="form-label") }}
        {% if not kwargs['class_'] %}
          {{ field(class_="form-control", **kwargs)|safe }}
        {% else %}
          {{ field(**kwargs)|safe }}
        {% endif %}
        {% if field.errors %}
            {% for error in field.errors %}
                <span class="error">{{error}}</span>
            {% endfor %}
        {% endif %}
    </div>
{% endmacro %}


{% macro render_hidden(form) %}
    {{ form.hidden_tag() }}
{% endmacro %}


{% macro linked_with(links) %}
  <h3 class="heading-small">Linked to:</h3>
  <ul class="linked-list">
    {% if links %}

    {% for link in links %}
    <li class="linked-item">
      {%- if link.__class__.__name__ == 'Competency' -%}
        Competency: <a href="">{{ link.name }}</a>

      {%- elif link.entry_type == 'objective' -%}
        Objective: <a href="">{{ link.entry.what|truncate(40) }}</a>

      {%- elif link.entry_type == 'feedback' -%}
        Feedback: <a href="">{{ link.entry.details|truncate(40) }}</a>

      {%- elif link.entry_type == 'log' -%}
        Note: <a href="">{{ link.entry.content|truncate(40) }}</a>

      {%- endif -%}

      <span class="remove-link"><a href="">remove</a></span>
    </li>
    {% endfor %}

    {% endif %}
  </ul>
{% endmacro %}
{'fraction_non_alphanumeric': 0.21453287197231835, 'fraction_numerical': 0.0030757400999615533, 'mean_word_length': 2.1501210653753025, 'pattern_counts': {'":': 0, '<': 37, '<?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': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '1666992', 'n_tokens_mistral': 951, 'n_tokens_neox': 833, 'n_words': 161}