<commit_before>@if($ro->relationships && isset($ro->relationships['party_one']))
    @foreach($ro->relationships['party_one'] as $col)
    	@if(isset($col['identifier_relation_id']))
    	<a href="<?php echo base_url()?>" class="ro_preview" identifier_relation_id="{{$col['identifier_relation_id']}}" style="margin-right:5px;">{{$col['title']}} <small>({{readable($col['relation_type'])}}) </small></a> 
        @elseif($col['slug'] && $col['registry_object_id'])
        <?php
        $description = '';
        if(isset($col['relation_description']) && $col['relation_description']!='')
        {
            $description = 'tip="'.$col['relation_description'].'"';
        }
        ?>
        <a href="<?php echo base_url()?>{{$col['slug']}}/{{$col['registry_object_id']}}" {{$description}} class="ro_preview" ro_id="{{$col['registry_object_id']}}" style="margin-right:5px;">{{$col['title']}} <small>({{readable($col['relation_type'])}}) </small></a>
    	@endif
    @endforeach
    @if(sizeof($ro->relationships['party_one']) < $ro->relationships['party_one_count_solr'])
		<a href="{{portal_url()}}search/#!/related_{{$ro->core['class']}}_id={{$ro->core['id']}}/class=party/type=person">View all {{$ro->relationships['party_one_count_solr']}} related parties</a></li>
	@endif
@endif<commit_msg>added to the related parties that if there are not related people then display the related groups under the title<commit_after>@if($ro->relationships && isset($ro->relationships['party_one']))
    @foreach($ro->relationships['party_one'] as $col)
    	@if(isset($col['identifier_relation_id']))
    	<a href="<?php echo base_url()?>" class="ro_preview" identifier_relation_id="{{$col['identifier_relation_id']}}" ">{{$col['title']}} <small>({{readable($col['relation_type'])}}) </small></a>
        @elseif($col['slug'] && $col['registry_object_id'])
        <?php
        $description = '';
        if(isset($col['relation_description']) && $col['relation_description']!='')
        {
            $description = 'tip="'.$col['relation_description'].'"';
        }
        ?>
        <a href="<?php echo base_url()?>{{$col['slug']}}/{{$col['registry_object_id']}}" {{$description}} class="ro_preview" ro_id="{{$col['registry_object_id']}}" style="margin-right:5px;">{{$col['title']}} <small>({{readable($col['relation_type'])}}) </small></a>
    	@endif
    @endforeach
    @if(sizeof($ro->relationships['party_one']) < $ro->relationships['party_one_count_solr'])
		<a href="{{portal_url()}}search/#!/related_{{$ro->core['class']}}_id={{$ro->core['id']}}/class=party/type=person">View all {{$ro->relationships['party_one_count_solr']}} related parties</a></li>
	@endif
@endif

@if($ro->relationships && !(isset($ro->relationships['party_one'])) && isset($ro->relationships['party_multi']))
    @foreach($ro->relationships['party_multi'] as $col)
        @if(isset($col['identifier_relation_id']))
        <a href="<?php echo base_url()?>" class="ro_preview" identifier_relation_id="{{$col['identifier_relation_id']}}" ">{{$col['title']}} <small>({{readable($col['relation_type'])}}) </small></a>
        @elseif($col['slug'] && $col['registry_object_id'])
        <?php
        $description = '';
        if(isset($col['relation_description']) && $col['relation_description']!='')
        {
            $description = 'tip="'.$col['relation_description'].'"';
        }
        ?>
        <a href="<?php echo base_url()?>{{$col['slug']}}/{{$col['registry_object_id']}}" {{$description}} class="ro_preview" ro_id="{{$col['registry_object_id']}}" style="margin-right:5px;">{{$col['title']}} <small>({{readable($col['relation_type'])}}) </small></a>
        @endif
    @endforeach
    @if(sizeof($ro->relationships['party_multi']) < $ro->relationships['party_multi_count_solr'])
    <a href="{{portal_url()}}search/#!/related_{{$ro->core['class']}}_id={{$ro->core['id']}}/class=party/type=group">View all {{$ro->relationships['party_multi_count_solr']}} related parties</a></li>
    @endif
@endif

{'fraction_non_alphanumeric': 0.25187781672508763, 'fraction_numerical': 0.00100150225338007, 'mean_word_length': 5.79421768707483, 'pattern_counts': {'":': 0, '<': 48, '<?xml version=': 0, '>': 70, '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': '986884', 'n_tokens_mistral': 1313, 'n_tokens_neox': 1293, 'n_words': 154}