<commit_before>@if($ro->directaccess)
    @if($ro->directaccess[0]['access_type']=='url')
        <a href="{{$ro->directaccess[0]['access_value']['href']}}" class="btn btn-lg btn-primary btn-block"><i class="fa fa-cube"></i> Go to Data</a>
    @endif

    @if($ro->directaccess[0]['access_type']!='url')
        <a href="" class="btn btn-lg btn-primary btn-block" id="gotodata"><i class="fa fa-cube"></i> Go to Data</a>
        <div id="dataformats">
        @foreach($ro->directaccess as $access)
            <?php
            if($access['byteSize']!=''){
                $access['title'] = $access['title'].'  ('.$access['byteSize'].')' ;
            }
            $title = $access['title'];
            if(strlen($title)>35){
                $title = substr($title,0,35)."...";
            }
            $preText='';
            $itemprop='';
            if($access['access_type']=='directDownload')
            {
                $preText='Download data <br/>';
            }
            elseif($access['access_type']=='landingPage'){
                $preText='Access data via landing page </br >';
                $itemprop = ' itemprop="distribution"';
            }elseif($access['access_type']=='viaService'){
                $preText='Access data online via tools </br >';
            }

            ?>
           <a class="btn btn-info btn-icon-right btn-block element-no-bottom element-no-top" href="{{$access['access_value']['href']}}" title="{{$access['notes']}}" <?=$itemprop?>>
               <span>{{$access['mediaType']}}</span>
               <?=$preText;?><?=$title?></a>
        @endforeach
        </div>
    @endif<commit_msg>Portal view. deal with inconsistent direct access data<commit_after>@if($ro->directaccess)
    @if($ro->directaccess[0]['access_type']=='url')
        @if(isset($ro->directaccess[0]['access_value']['href']))
            <a href="{{$ro->directaccess[0]['access_value']['href']}}" class="btn btn-lg btn-primary btn-block"><i class="fa fa-cube"></i> Go to Data</a>
        @elseif(isset($ro->directaccess[0]['access_value']))
            <a href="{{$ro->directaccess[0]['access_value']}}" class="btn btn-lg btn-primary btn-block"><i class="fa fa-cube"></i> Go to Data</a>
        @endif

    @endif

    @if($ro->directaccess[0]['access_type']!='url')
        <a href="" class="btn btn-lg btn-primary btn-block" id="gotodata"><i class="fa fa-cube"></i> Go to Data</a>
        <div id="dataformats">
        @foreach($ro->directaccess as $access)
            <?php
            if($access['byteSize']!=''){
                $access['title'] = $access['title'].'  ('.$access['byteSize'].')' ;
            }
            $title = $access['title'];
            if(strlen($title)>35){
                $title = substr($title,0,35)."...";
            }
            $preText='';
            $itemprop='';
            if($access['access_type']=='directDownload')
            {
                $preText='Download data <br/>';
            }
            elseif($access['access_type']=='landingPage'){
                $preText='Access data via landing page </br >';
                $itemprop = ' itemprop="distribution"';
            }elseif($access['access_type']=='viaService'){
                $preText='Access data online via tools </br >';
            }

            ?>

            @if(isset($access['access_value']['href']))
            <a class="btn btn-info btn-icon-right btn-block element-no-bottom element-no-top" href="{{$access['access_value']['href']}}" title="{{$access['notes']}}" <?=$itemprop?>>
            <span>{{$access['mediaType']}}</span>
            <?=$preText;?><?=$title?></a>
            @elseif(isset($access['access_value']))
            <a class="btn btn-info btn-icon-right btn-block element-no-bottom element-no-top" href="{{$access['access_value']}}" title="{{$access['notes']}}" <?=$itemprop?>>
                <span>{{$access['mediaType']}}</span>
                <?=$preText;?><?=$title?></a>
            @endif

        @endforeach
        </div>
    @endif
{'fraction_non_alphanumeric': 0.2186335403726708, 'fraction_numerical': 0.004720496894409938, 'mean_word_length': 2.346633416458853, 'pattern_counts': {'":': 0, '<': 56, '<?xml version=': 0, '>': 71, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 4, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '7062169', 'n_tokens_mistral': 1232, 'n_tokens_neox': 1200, 'n_words': 193}