<commit_before><ol{!! HTML::attributes(Aperdia\AperdiaUI\Helpers::addClass($attributes, 'breadcrumb')) !!} itemscope itemtype="http://schema.org/BreadcrumbList">

@php
  $position = 1;
@endphp

@foreach ($elements as $element)
  <li {!! HTML::attributes($element['attributes']) !!} itemprop="itemListElement" itemscope itemtype="http://schema.org/ListItem">

  @if (isset($element['link']) && !empty($element['link']))
    <a itemprop="item" href="{!! $element['link'] !!}"><span itemprop="name">{!! $element['title'] !!}</span></a>
  @else
    <span itemprop="name">{!! $element['title'] !!}</span>
  @endif
    <meta itemprop="position" content="{!! $position !!}" />
  </li>

  @php
    $position++;
  @endphp
@endforeach
</ol><commit_msg>feature: breadcrumb<commit_after>@php
  $position = 1;
  $nbrElements = count($elements);
@endphp

<nav{!! HTML::attributes(Aperdia\AperdiaUI\Helpers::addClass($attributes, 'breadcrumb is-centered')) !!} aria-label="breadcrumbs" itemscope itemtype="http://schema.org/BreadcrumbList">
  <ul>
  @foreach ($elements as $element)
    @php
      if ($position === $nbrElements) {
        $element['attributes'] = Aperdia\AperdiaUI\Helpers::addClass($element['attributes'], 'is-current');
      }
    @endphp

    <li {!! HTML::attributes($element['attributes']) !!} itemprop="itemListElement" itemscope itemtype="http://schema.org/ListItem">
      @if (isset($element['link']) && $element['link'] != '')
        <a itemprop="item" href="{!! $element['link'] !!}"><span itemprop="name">{!! $element['title'] !!}</span></a>
      @elseif ($position === $nbrElements)
        <a itemprop="item" href="#" aria-current="page">{!! $element['title'] !!}</a>
      @else
        <a itemprop="item" href="#"><span itemprop="name">{!! $element['title'] !!}</span></a>
      @endif
      <meta itemprop="position" content="{!! $position !!}" />
    </li>
    @php
      $position++;
    @endphp
  @endforeach
  </ul>
</nav>
{'fraction_non_alphanumeric': 0.237044638276039, 'fraction_numerical': 0.001026167265264238, 'mean_word_length': 4.873493975903615, 'pattern_counts': {'":': 0, '<': 31, '<?xml version=': 0, '>': 31, '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': '7541133', 'n_tokens_mistral': 651, 'n_tokens_neox': 640, 'n_words': 115}