<commit_before>mixin shortcomings(groups)
  dl
    each group in groups
      dt= group
      dd
        ul
          each detail in details[group]
            li= detail

a#accessibility-collapser.collapsed.collapser(data-toggle="collapse", data-parent="#details-view-container", href="#accessibility-details", class="#{header_classes}")
  h3
    span(class!=icon_class) &nbsp;
    = t('accessibility.accessibility')
  span.short-text= short_text

#accessibility-details.section-content.collapse(class="#{collapse_classes}")
 if shortcomings_pending
  p= t('accessibility.pending_explanation')
 else
  if !profile_set && has_data
   a.set-accessibility-profile.prominent(href="#")
     = t('accessibility.select_accessibility_profile')
  if (!has_data && (!groups || groups.length == 0))
   .no-data-text= t('accessibility.no_data_long')

  if profile_set
    - var orderedSegments = ['outside', 'route_to_entrance', 'route_to_outdoor_sport_facility', 'entrance', 'interior', 'outdoor_sport_facility', 'service_point']
    if shortcomings_count
      dl.shortcomings
        each segment in orderedSegments
          if shortcomings[segment]
            - var group = shortcomings[segment]
            dt= t("accessibility.segment." + segment)
            dd
              ul
                each messages, requirementId in group
                  li
                    each message, index in messages
                      span= tAttr(message)
                      br
    else if has_data
      .no-shortcomings-text= t('accessibility.no_shortcomings_long')
    .accessibility-viewpoint

  if !sentence_error
    if groups.length
      if profile_set && has_data
          a.collapser.collapsed.sub-collapser(data-toggle="collapse", data-parent="#accessibility-details", href="#more-accessibility-details")
            h4
              = t('accessibility.accessibility_details')
            #more-accessibility-details.collapse
              +shortcomings(groups)
      else
          #more-accessibility-details
              +shortcomings(groups)
    else
      if has_data
        div.icon.fa.fa-spinner.fa-spin
  else
    p= t('accessibility.error')
  a.collapser.hide.collapsed.sub-collapser(data-toggle="collapse", data-parent="#accessibility-details", href="#accessibility-feedback")
   h4
     span.icon-icon-feedback
     = t('accessibility.feedback_on_accessibility')
   span.short-text
     if feedback.length
       = feedback.length
       | &nbsp;
       = t('accessibility.pcs')<commit_msg>Removed unncessary collapse element from accessibility details<commit_after>mixin shortcomings(groups)
  dl
    each group in groups
      dt= group
      dd
        ul
          each detail in details[group]
            li= detail

a#accessibility-collapser.collapsed.collapser(data-toggle="collapse", data-parent="#details-view-container", href="#accessibility-details", class="#{header_classes}")
  h3
    span(class!=icon_class) &nbsp;
    = t('accessibility.accessibility')
  span.short-text= short_text

#accessibility-details.section-content.collapse(class="#{collapse_classes}")
 if shortcomings_pending
  p= t('accessibility.pending_explanation')
 else
  if !profile_set && has_data
   a.set-accessibility-profile.prominent(href="#")
     = t('accessibility.select_accessibility_profile')
  if (!has_data && (!groups || groups.length == 0))
   .no-data-text= t('accessibility.no_data_long')

  if profile_set
    - var orderedSegments = ['outside', 'route_to_entrance', 'route_to_outdoor_sport_facility', 'entrance', 'interior', 'outdoor_sport_facility', 'service_point']
    if shortcomings_count
      dl.shortcomings
        each segment in orderedSegments
          if shortcomings[segment]
            - var group = shortcomings[segment]
            dt= t("accessibility.segment." + segment)
            dd
              ul
                each messages, requirementId in group
                  li
                    each message, index in messages
                      span= tAttr(message)
                      br
    else if has_data
      .no-shortcomings-text= t('accessibility.no_shortcomings_long')
    .accessibility-viewpoint

  if !sentence_error
    if groups.length
      h4
        = t('accessibility.accessibility_details')
      #more-accessibility-details
        +shortcomings(groups)
    else
      if has_data
        div.icon.fa.fa-spinner.fa-spin
  else
    p= t('accessibility.error')
  a.collapser.hide.collapsed.sub-collapser(data-toggle="collapse", data-parent="#accessibility-details", href="#accessibility-feedback")
   h4
     span.icon-icon-feedback
     = t('accessibility.feedback_on_accessibility')
   span.short-text
     if feedback.length
       = feedback.length
       | &nbsp;
       = t('accessibility.pcs')
{'fraction_non_alphanumeric': 0.10875943000838223, 'fraction_numerical': 0.0016764459346186086, 'mean_word_length': 2.7790973871733966, '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': '6808264', 'n_tokens_mistral': 1418, 'n_tokens_neox': 1359, 'n_words': 254}