<commit_before>{% load i18n %}


    {% if not related_resource_flag %}
    <div class="col-sm-4">
        <h3 class="arches-report-subsection"></h3>
    </div>
    <div class="col-sm-8">
        <div class="row">
            <div class="col-xs-12 arches-report-subsection-content">
            <p class="arches-report-subsection-item">
                <span class="arches-report-subsection-item-none">{% trans "none recorded" %}</span>
                </p>
            </div>
        </div>
    </div>
    {% endif %}
    
    <!-- hiding the related resource graph for now, perhaps can be supported later -->
    <div id="related-resources-graph-section" style="display:none">
    {% if related_resource_flag %}
        <div id="report_info" name="report_info" type="hidden" value='{"resourceid":"{{report_info.source.entityid}}","primaryname":"{{report_info.source.primaryname}}","entitytypeid":"{{report_info.source.entitytypeid}}"}'></div>
        <!--<a href="javascript:void(0);" class="info-link related-resources-graph" data-bind="attr: {'data-resourceid': {{report_info.source.entityid}}, 'data-primaryname': {{report_info.source.primaryname}}, 'data-entitytypeid': entitytypeid}"><span class="arches-search-link" data-bind="attr: {'data-resourceid': resourceid, 'data-primaryname': primaryname, 'data-entitytypeid': {{report_info.source.entitytypeid}}}">{% trans "Related Resources" %}</span></a>-->
        <div class="svg arches-related-resource-panel" style="margin:0px 15px 15px 15px;">
            {# include 'views/related-resources-graph.htm' #}
        </div>
    {% endif %}
    </div>
        
    {% if related_resource_dict.HERITAGE_RESOURCE|length > 0 %}
    <div class="col-sm-4">
        <h3 class="arches-report-subsection">{% trans "Related Archaeological Sites" %}</h3>
    </div>
    
    <div class="col-sm-8">
        <div class="row">
            <div class="col-xs-12 arches-report-subsection-content">
                    {% for related_resource in related_resource_dict.HERITAGE_RESOURCE %}
                    <p class="arches-report-subsection-item">
                        <a href="{% url 'report' related_resource.entityid %}" class="" title="{% trans 'View Report' %}">
                            {{related_resource.primaryname}}
                        </a>
                        <span class="arches-report-subsection-item-type">
                            {% if related_resource.relationship|length > 0 %}
                                ({{related_resource.relationship|join:", "}})
                            {% endif %}
                        </span>
                    </p>
                {% endfor %}
            </div>
        </div>
    </div>
    {% endif %}
    
    {% if related_resource_dict.HERITAGE_RESOURCE_GROUP|length > 0 %}
    <div class="col-sm-4">
        <h3 class="arches-report-subsection">{% trans "Related Archaeological Complexes" %}</h3>
    </div>
    
    <div class="col-sm-8">
        <div class="row">
            <div class="col-xs-12 arches-report-subsection-content">
                    {% for related_resource in related_resource_dict.HERITAGE_RESOURCE_GROUP %}
                    <p class="arches-report-subsection-item">
                        <a href="{% url 'report' related_resource.entityid %}" class="" title="{% trans 'View Report' %}">
                            {{related_resource.primaryname}}
                        </a>
                        <span class="arches-report-subsection-item-type">
                            {% if related_resource.relationship|length > 0 %}
                                ({{related_resource.relationship|join:", "}})
                            {% endif %}
                        </span>
                    </p>
                {% endfor %}
            </div>
        </div>
    </div>
    {% endif %}
    
    {% if related_resource_dict.ACTOR|length > 0 %}
    <div class="col-sm-4">
        <h3 class="arches-report-subsection">{% trans "Related People/Organizations" %}</h3>
    </div>
    
    <div class="col-sm-8">
        <div class="row">
            <div class="col-xs-12 arches-report-subsection-content">
                {% for related_resource in related_resource_dict.ACTOR %}
                <p class="arches-report-subsection-item">
                    <a href="{% url 'report' related_resource.entityid %}" class="" title="{% trans 'View Report' %}">
                        {{related_resource.primaryname}}
                    </a>
                    <span class="arches-report-subsection-item-type">
                        {% if related_resource.relationship|length > 0 %}
                            ({{related_resource.relationship|join:", "}})
                        {% endif %}
                    </span>
                </p>
                {% endfor %}
            </div>
        </div>
    </div>
    {% endif %}
    
    {% if related_resource_dict.ACTIVITY|length > 0 %}
    <div class="col-sm-4">
        <h3 class="arches-report-subsection">{% trans "Related Management Activities" %}</h3>
    </div>
    
    <div class="col-sm-8">
        <div class="row">
            <div class="col-xs-12 arches-report-subsection-content">
                {% for related_resource in related_resource_dict.ACTIVITY %}
                <p class="arches-report-subsection-item">
                    <a href="{% url 'report' related_resource.entityid %}" class="" title="{% trans 'View Report' %}">
                        {{related_resource.primaryname}}
                    </a>
                    <span class="arches-report-subsection-item-type">
                        {% if related_resource.relationship|length > 0 %}
                            ({{related_resource.relationship|join:", "}})
                        {% endif %}
                    </span>
                </p>
                {% endfor %}
            </div>
        </div>
    </div>
    {% endif %}
    
    {% if related_resource_dict.HISTORICAL_EVENT|length > 0 %}
    <div class="col-sm-4">
        <h3 class="arches-report-subsection">{% trans "Related Historical Events" %}</h3>
    </div>
    
    <div class="col-sm-8">
        <div class="row">
            <div class="col-xs-12 arches-report-subsection-content">
                {% for related_resource in related_resource_dict.HISTORICAL_EVENT %}
                <p class="arches-report-subsection-item">
                    <a href="{% url 'report' related_resource.entityid %}" class="" title="{% trans 'View Report' %}">
                        {{related_resource.primaryname}}
                    </a>
                    <span class="arches-report-subsection-item-type">
                        {% if related_resource.relationship|length > 0 %}
                            ({{related_resource.relationship|join:", "}})
                        {% endif %}
                    </span>
                </p>
                {% endfor %}
            </div>
        </div>
    </div>
    {% endif %}
    
    {% if related_resource_dict.INFORMATION_RESOURCE_IMAGE|length > 0 %}
    <div class="col-sm-4">
        <h3 class="arches-report-subsection">{% trans "Related Images" %}</h3>
    </div>
    
    <div class="col-sm-8">
        <div class="row">
            <div class="col-xs-12 arches-report-subsection-content">
                {% for related_resource in related_resource_dict.INFORMATION_RESOURCE_IMAGE %}
                <p class="arches-report-subsection-item">
                    <a href="{% url 'report' related_resource.entityid %}" title="{% trans 'View Report' %}">
                        <img src="{{related_resource.thumbnail}}" alt="" class="arches-report-image-thumbnail" style="width: 25%; margin-bottom: 20px; border: solid 1px #999;" onerror="this.src='{{STATIC_URL}}img/photo_missing.png';">
                    </a>
                </p>
                <p class="arches-report-subsection-item">
                    <a href="{% url 'report' related_resource.entityid %}" class="" title="{% trans 'View Report' %}">
                        {{related_resource.primaryname}}
                    </a>
                    <span class="arches-report-subsection-item-type">
                        {% if related_resource.relationship|length > 0 %}
                            ({{related_resource.relationship|join:", "}})
                        {% endif %}
                    </span>
                </p>
                {% endfor %}
            </div>
        </div>
    </div>
    {% endif %}<commit_msg>fix styling for multiple images<commit_after>{% load i18n %}


    {% if not related_resource_flag %}
    <div class="col-sm-4">
        <h3 class="arches-report-subsection"></h3>
    </div>
    <div class="col-sm-8">
        <div class="row">
            <div class="col-xs-12 arches-report-subsection-content">
            <p class="arches-report-subsection-item">
                <span class="arches-report-subsection-item-none">{% trans "none recorded" %}</span>
                </p>
            </div>
        </div>
    </div>
    {% endif %}
    
    <!-- hiding the related resource graph for now, perhaps can be supported later -->
    <div id="related-resources-graph-section" style="display:none">
    {% if related_resource_flag %}
        <div id="report_info" name="report_info" type="hidden" value='{"resourceid":"{{report_info.source.entityid}}","primaryname":"{{report_info.source.primaryname}}","entitytypeid":"{{report_info.source.entitytypeid}}"}'></div>
        <!--<a href="javascript:void(0);" class="info-link related-resources-graph" data-bind="attr: {'data-resourceid': {{report_info.source.entityid}}, 'data-primaryname': {{report_info.source.primaryname}}, 'data-entitytypeid': entitytypeid}"><span class="arches-search-link" data-bind="attr: {'data-resourceid': resourceid, 'data-primaryname': primaryname, 'data-entitytypeid': {{report_info.source.entitytypeid}}}">{% trans "Related Resources" %}</span></a>-->
        <div class="svg arches-related-resource-panel" style="margin:0px 15px 15px 15px;">
            {# include 'views/related-resources-graph.htm' #}
        </div>
    {% endif %}
    </div>
        
    {% if related_resource_dict.HERITAGE_RESOURCE|length > 0 %}
    <div class="col-sm-4">
        <h3 class="arches-report-subsection">{% trans "Related Archaeological Sites" %}</h3>
    </div>
    
    <div class="col-sm-8">
        <div class="row">
            <div class="col-xs-12 arches-report-subsection-content">
                    {% for related_resource in related_resource_dict.HERITAGE_RESOURCE %}
                    <p class="arches-report-subsection-item">
                        <a href="{% url 'report' related_resource.entityid %}" class="" title="{% trans 'View Report' %}">
                            {{related_resource.primaryname}}
                        </a>
                        <span class="arches-report-subsection-item-type">
                            {% if related_resource.relationship|length > 0 %}
                                ({{related_resource.relationship|join:", "}})
                            {% endif %}
                        </span>
                    </p>
                {% endfor %}
            </div>
        </div>
    </div>
    {% endif %}
    
    {% if related_resource_dict.HERITAGE_RESOURCE_GROUP|length > 0 %}
    <div class="col-sm-4">
        <h3 class="arches-report-subsection">{% trans "Related Archaeological Complexes" %}</h3>
    </div>
    
    <div class="col-sm-8">
        <div class="row">
            <div class="col-xs-12 arches-report-subsection-content">
                    {% for related_resource in related_resource_dict.HERITAGE_RESOURCE_GROUP %}
                    <p class="arches-report-subsection-item">
                        <a href="{% url 'report' related_resource.entityid %}" class="" title="{% trans 'View Report' %}">
                            {{related_resource.primaryname}}
                        </a>
                        <span class="arches-report-subsection-item-type">
                            {% if related_resource.relationship|length > 0 %}
                                ({{related_resource.relationship|join:", "}})
                            {% endif %}
                        </span>
                    </p>
                {% endfor %}
            </div>
        </div>
    </div>
    {% endif %}
    
    {% if related_resource_dict.ACTOR|length > 0 %}
    <div class="col-sm-4">
        <h3 class="arches-report-subsection">{% trans "Related People/Organizations" %}</h3>
    </div>
    
    <div class="col-sm-8">
        <div class="row">
            <div class="col-xs-12 arches-report-subsection-content">
                {% for related_resource in related_resource_dict.ACTOR %}
                <p class="arches-report-subsection-item">
                    <a href="{% url 'report' related_resource.entityid %}" class="" title="{% trans 'View Report' %}">
                        {{related_resource.primaryname}}
                    </a>
                    <span class="arches-report-subsection-item-type">
                        {% if related_resource.relationship|length > 0 %}
                            ({{related_resource.relationship|join:", "}})
                        {% endif %}
                    </span>
                </p>
                {% endfor %}
            </div>
        </div>
    </div>
    {% endif %}
    
    {% if related_resource_dict.ACTIVITY|length > 0 %}
    <div class="col-sm-4">
        <h3 class="arches-report-subsection">{% trans "Related Management Activities" %}</h3>
    </div>
    
    <div class="col-sm-8">
        <div class="row">
            <div class="col-xs-12 arches-report-subsection-content">
                {% for related_resource in related_resource_dict.ACTIVITY %}
                <p class="arches-report-subsection-item">
                    <a href="{% url 'report' related_resource.entityid %}" class="" title="{% trans 'View Report' %}">
                        {{related_resource.primaryname}}
                    </a>
                    <span class="arches-report-subsection-item-type">
                        {% if related_resource.relationship|length > 0 %}
                            ({{related_resource.relationship|join:", "}})
                        {% endif %}
                    </span>
                </p>
                {% endfor %}
            </div>
        </div>
    </div>
    {% endif %}
    
    {% if related_resource_dict.HISTORICAL_EVENT|length > 0 %}
    <div class="col-sm-4">
        <h3 class="arches-report-subsection">{% trans "Related Historical Events" %}</h3>
    </div>
    
    <div class="col-sm-8">
        <div class="row">
            <div class="col-xs-12 arches-report-subsection-content">
                {% for related_resource in related_resource_dict.HISTORICAL_EVENT %}
                <p class="arches-report-subsection-item">
                    <a href="{% url 'report' related_resource.entityid %}" class="" title="{% trans 'View Report' %}">
                        {{related_resource.primaryname}}
                    </a>
                    <span class="arches-report-subsection-item-type">
                        {% if related_resource.relationship|length > 0 %}
                            ({{related_resource.relationship|join:", "}})
                        {% endif %}
                    </span>
                </p>
                {% endfor %}
            </div>
        </div>
    </div>
    {% endif %}
    
    {% if related_resource_dict.INFORMATION_RESOURCE_IMAGE|length > 0 %}
    <div class="col-sm-4">
        <h3 class="arches-report-subsection">{% trans "Related Images" %}</h3>
    </div>
    
    <div class="col-sm-8">
        <div class="row">
            <div class="col-xs-12 arches-report-subsection-content">
                {% for related_resource in related_resource_dict.INFORMATION_RESOURCE_IMAGE %}
                <div class="col-xs-12 col-sm-4">
                <div class="arches-report-subsection-item">
                    <a href="{% url 'report' related_resource.entityid %}" class="" title="{% trans 'View Report' %}">
                        {{related_resource.primaryname}}
                    </a>
                    <span class="arches-report-subsection-item-type">
                        {% if related_resource.relationship|length > 0 %}
                            <br>({{related_resource.relationship|join:", "}})
                        {% endif %}
                    </span>
                </div>
                <div class="arches-report-subsection-item" style="text-align:center;">
                    <a href="{% url 'report' related_resource.entityid %}" title="{% trans 'View Report' %}">
                        <img src="{{related_resource.thumbnail}}" alt="" class="arches-report-image-thumbnail" style="margin-bottom: 20px; border: solid 1px #999;" onerror="this.src='{{STATIC_URL}}img/photo_missing.png';">
                    </a>
                </div>
                
                </div>
                {% endfor %}
            </div>
        </div>
    </div>
    {% endif %}
{'fraction_non_alphanumeric': 0.15444172779136103, 'fraction_numerical': 0.008441029223425312, 'mean_word_length': 1.6989787902592302, 'pattern_counts': {'":': 6, '<': 260, '<?xml version=': 0, '>': 284, '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': '5217106', 'n_tokens_mistral': 5105, 'n_tokens_neox': 4630, 'n_words': 855}