<commit_before>:ruby
  options = local_assigns[:options] || {microdata: true}
  microdata = options.delete(:microdata)

  if microdata
    microdata_fragment = {itemscope: true, itemtype: 'http://data-vocabulary.org/Breadcrumb'}
    microdata_link = {itemprop: 'url'}
    microdata_title = {itemprop: 'title'}
  else
    microdata_fragment = {}
    microdata_link = {}
    microdata_title = {}
  end

- breadcrumbs(options).tap do |links|
  - if links.any?
    %nav.breadcrumbs
      %ol.breadcrumbs__list
        - links.each do |link|
          %li.breadcrumbs__fragment{microdata_fragment}
            - if links.options[:link_current] || link != links.last
              %a.breadcrumbs__link{**microdata_link, href: link.url}
                %span{microdata_title}= link.text<commit_msg>Update microdata using http://schema.org<commit_after>:ruby
  options = local_assigns[:options] || {microdata: true}
  microdata = options.delete(:microdata)

  if microdata
    microdata_list = {itemtype: 'http://schema.org/BreadcrumbList', itemscope: true}
    microdata_item = {itemtype: 'http://schema.org/ListItem', itemscope: true, itemprop: 'itemListElement'}
    microdata_link = {itemprop: 'item'}
    microdata_title = {itemprop: 'name'}
  else
    microdata_list = {}
    microdata_item = {}
    microdata_link = {}
    microdata_title = {}
  end

- breadcrumbs(options).tap do |links|
  - if links.any?
    %nav.breadcrumbs
      %ol.breadcrumbs__list{microdata_list}
        - links.each.with_index(1) do |link, index|
          %li.breadcrumbs__fragment{microdata_item}
            - if links.options[:link_current] || link != links.last
              %a.breadcrumbs__link{**microdata_link, href: link.url}
                %span{microdata_title}= link.text
                - if microdata
                  %meta(itemprop="position" content=index)
{'fraction_non_alphanumeric': 0.12587790383576444, 'fraction_numerical': 0.0005402485143165856, 'mean_word_length': 3.088300220750552, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, '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': '2879885', 'n_tokens_mistral': 612, 'n_tokens_neox': 600, 'n_words': 105}