<commit_before><?php
	$order = array('brief', 'full', 'note','significanceStatement','researchAreas','researchDataProfile','researchSupport','lineage','deliverymethod','local');
	$omit = array('logo');
    $currentHeading = '';
?>
<div class="swatch-white">
    <div class="panel panel-primary element-no-top element-short-bottom panel-content">

@if($ro->descriptions)
        <div class="panel-heading"> Descriptions </div>
		<div class="panel-body swatch-white">
			@foreach($order as $o)

				@foreach($ro->descriptions as $desc)
                    <?php
                        $showHeading = false;
                    ?>
					@if($desc['type']==$o && $desc['description']!='')
						<div class="description">
                            <?php
                            if($currentHeading != $desc['type']){
                                $showHeading = true;
                                $currentHeading = $desc['type'];
                            }
                            ?>
                            @if($showHeading)
							<small>{{readable($currentHeading)}}</small>
                            @endif
							<span itemprop="description">{{nl2br(html_entity_decode($desc['description']))}}</span>
						</div>
						
					@endif
				@endforeach
			@endforeach
			
			@foreach($ro->descriptions as $desc)
				@if(!in_array($desc['type'], $order) && !in_array($desc['type'], $omit) && $desc['description']!='')
					<div class="description">
						<small>{{readable($desc['type'])}}</small>
						<span itemprop="description">{{nl2br(html_entity_decode($desc['description']))}}</span>
					</div>
					
				@endif
			@endforeach
        </div>
@elseif($ro->rights||($ro->contact && $ro->core['class']=='collection') ||($ro->directaccess && $ro->core['class']=='collection'))
        <div class="panel-heading">
            <a href="">Information</a>
        </div>
        <div class="panel-body swatch-white">
        </div>
@endif

    </div>
</div><commit_msg>description headings shown only ones... and groupped by some list ++<commit_after><?php
	$order = array('brief', 'full', 'note','significanceStatement','researchAreas','researchDataProfile','researchSupport','lineage','deliverymethod','local');
	$omit = array('logo');
    $currentHeading = '';
?>
<div class="swatch-white">
    <div class="panel panel-primary element-no-top element-short-bottom panel-content">

@if($ro->descriptions)
        <div class="panel-heading"> Descriptions </div>
		<div class="panel-body swatch-white">
			@foreach($order as $o)

				@foreach($ro->descriptions as $desc)
                    <?php
                        $showHeading = false;
                    ?>
					@if($desc['type']==$o && $desc['description']!='')
						<div class="description">
                            <?php
                            if($currentHeading != $desc['type']){
                                $showHeading = true;
                                $currentHeading = $desc['type'];
                            }
                            ?>
                            @if($showHeading)
							<small>{{readable($currentHeading)}}</small>
                            @endif
							<span itemprop="description">{{nl2br(html_entity_decode($desc['description']))}}</span>
						</div>
						
					@endif
				@endforeach
			@endforeach
			@foreach($ro->descriptions as $desc)
                <?php
                $showHeading = false;
                ?>
				@if(!in_array($desc['type'], $order) && !in_array($desc['type'], $omit) && $desc['description']!='')
					<div class="description">
                        <?php
                        if($currentHeading != $desc['type']){
                            $showHeading = true;
                            $currentHeading = $desc['type'];
                        }
                        ?>
                        @if($showHeading)
                        <small>{{readable($currentHeading)}}</small>
                        @endif
						<span itemprop="description">{{nl2br(html_entity_decode($desc['description']))}}</span>
					</div>
					
				@endif
			@endforeach
        </div>
@elseif($ro->rights||($ro->contact && $ro->core['class']=='collection') ||($ro->directaccess && $ro->core['class']=='collection'))
        <div class="panel-heading">
            <a href="">Information</a>
        </div>
        <div class="panel-body swatch-white">
        </div>
@endif

    </div>
</div>
{'fraction_non_alphanumeric': 0.18051189941625506, 'fraction_numerical': 0.000898069151324652, 'mean_word_length': 1.9251477347340775, 'pattern_counts': {'":': 0, '<': 63, '<?xml version=': 0, '>': 79, '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': '4673694', 'n_tokens_mistral': 1408, 'n_tokens_neox': 1196, 'n_words': 193}