<commit_before>{% extends "base.html" %}
{% load static core_tags wagtailcore_tags %}

{% block content %}
    <div class="container search-results">
        <h1>Search Results</h1>
        <h2>Search Results{% if request.GET.q %} for {{ request.GET.q }}{% endif %}</h2>
        <ul class="search-results">
            {% for result in search_results %}
              <li>
                <h3><a href="{% pageurl result.specific %}">{{ result.specific.title }}</a></h3>
                {% if result.specific.search_description %}
                  {{ result.specific.search_description|safe }}
                {% else %}
                    {% if result.specific.body %}
                        {{ result.specific.body|safe|truncatechars:350 }}
                    {% elif result.specific.search_result_text %}
                        {{ result.specific.search_result_text|safe|truncatechars:350 }}
                    {% endif %}
                {% endif %}
              </li>
            {% empty %}
              <li>No results found</li>
            {% endfor %}
        </ul>
    </div>
{% endblock %}
<commit_msg>OCW-48 #comment remove truncated fields, not working as expected<commit_after>{% extends "base.html" %}
{% load static core_tags wagtailcore_tags %}

{% block content %}
    <div class="container search-results">
        <h1>Search Results</h1>
        <h2>Search Results{% if request.GET.q %} for {{ request.GET.q }}{% endif %}</h2>
        <ul class="search-results">
            {% for result in search_results %}
              <li>
                <h3><a href="{% pageurl result.specific %}">{{ result.specific.title }}</a></h3>
                {% if result.specific.search_description %}
                  {{ result.specific.search_description|safe }}
                {% endif %}
              </li>
            {% empty %}
              <li>No results found</li>
            {% endfor %}
        </ul>
    </div>
{% endblock %}

{'fraction_non_alphanumeric': 0.15301944728761516, 'fraction_numerical': 0.01023541453428864, 'mean_word_length': 1.722841225626741, 'pattern_counts': {'":': 0, '<': 35, '<?xml version=': 0, '>': 35, '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': '5098518', 'n_tokens_mistral': 601, 'n_tokens_neox': 523, 'n_words': 112}