<commit_before>@if($ro->contact)
    <?php
    $contactInfo = '';
    ?>
    @foreach($ro->contact as $contact)
    <?php
        if($contact['contact_type']=='telephoneNumber'&& $contact['contact_value']!='')
        {
            $contactInfo .=  'Ph: '.$contact['contact_value'].'<br/>';
        }
        elseif($contact['contact_type']=='faxNumber'&& $contact['contact_value']!='')
        {
            $contactInfo .=  'Fax: '.$contact['contact_value'].'<br/>';
        }
        elseif($contact['contact_value']!='' && str_replace("electronic_","",$contact['contact_type']) == $contact['contact_type']){
            $contactInfo .= html_entity_decode($contact['contact_value'])."<br/>";
        }
        elseif($contact['contact_type']=='electronic_url'&& $contact['contact_value']!=''){
            $contactInfo .= '<a href="'.$contact['contact_value'].'">'.$contact['contact_value'].'</a><br/>';
        }
        elseif($contact['contact_type']=='electronic_email'&& $contact['contact_value']!=''){
            $contactInfo .=  $contact['contact_value'].'<br/>';
        }
        elseif($contact['contact_type']=='electronic_other'&& $contact['contact_value']!=''){
            $contactInfo .=  $contact['contact_value'].'<br/>';
        }
        elseif(str_replace("electronic_","",$contact['contact_type']) != $contact['contact_type']){
            $contactInfo .=  $contact['contact_value'].'<br/>';
        }
        elseif($contact['contact_type'] == "end") {
            $contactInfo .="<br/>";
        }
    ?>
    @endforeach

    @if(trim($contactInfo)!='' && trim($contactInfo)!='<br/>')
    <div id="contact">
        <h4>Contact Information</h4>
        {{$contactInfo}}
    </div>

    @endif
@endif<commit_msg>added order to display of url and email contact info CC-2196<commit_after>@if($ro->contact)

    <?php
    $order = array('electronic_email', 'electronic_url', 'electronic_other');
    $contactInfo = '';
    ?>
    @foreach($order as $o)
        @foreach($ro->contact as $contact)
        <?php
           if($contact['contact_type'] == $o){

            if($contact['contact_type']=='electronic_url'&& $contact['contact_value']!=''){
                $contactInfo .= '<a href="'.$contact['contact_value'].'">'.$contact['contact_value'].'</a><br/>';
            }
            else{
                $contactInfo .=  $contact['contact_value'].'<br/>';
            }

            }
        ?>
        @endforeach
    @endforeach
    @foreach($ro->contact as $contact)
        <?php
            if($contact['contact_type']=='telephoneNumber'&& $contact['contact_value']!='')
            {
                $contactInfo .=  'Ph: '.$contact['contact_value'].'<br/>';
            }
            elseif($contact['contact_type']=='faxNumber'&& $contact['contact_value']!='')
            {
                $contactInfo .=  'Fax: '.$contact['contact_value'].'<br/>';
            }
            elseif($contact['contact_value']!=''&& str_replace("electronic_","",$contact['contact_type']) == $contact['contact_type']){
                $contactInfo .= html_entity_decode($contact['contact_value'])."<br/>";
            }
            elseif(str_replace("electronic_","",$contact['contact_type']) != $contact['contact_type'] && !in_array($contact['contact_type'],$order)){
                $contactInfo .=  $contact['contact_value'].'<br/>';
            }
            elseif($contact['contact_type'] == "end") {
                $contactInfo .="<br/>";
            }
        ?>
    @endforeach
    @if(trim($contactInfo)!='' && trim($contactInfo)!='<br/>')
    <div id="contact">
        <h4>Contact Information</h4>
        {{$contactInfo}}
    </div>

    @endif
@endif
{'fraction_non_alphanumeric': 0.21990238611713667, 'fraction_numerical': 0.0021691973969631237, 'mean_word_length': 2.6706467661691544, 'pattern_counts': {'":': 0, '<': 37, '<?xml version=': 0, '>': 42, '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': '6207046', 'n_tokens_mistral': 1131, 'n_tokens_neox': 1103, 'n_words': 128}