<commit_before>import styles from '../styles/breadcrumb'

import React from 'react'
import { translate } from '../plugins/preact-polyglot'
import { withRouter } from 'react-router'

const Breadcrumb = ({ t, router }) => {
  // extract elements from the pathNames
  let path = router.location.pathname.match(/\/([^/]*)(.*)/)

  // rootName is the first element before file path
  const rootName = path[1]

  // the remainder is the file path
  const filePath = path[2]
  const filePathElements = path[2].replace(/\/([^/]*)/, '$1').split('/')

  return (
    <h2 class={styles['fil-content-title']}>
      { t(`breadcrumb.title_${rootName}`) }
    </h2>
  )
}

export default translate()(withRouter(Breadcrumb))<commit_msg>[lint] Comment breadcrumb elements not used yet<commit_after>import styles from '../styles/breadcrumb'

import React from 'react'
import { translate } from '../plugins/preact-polyglot'
import { withRouter } from 'react-router'

const Breadcrumb = ({ t, router }) => {
  // extract elements from the pathNames
  let path = router.location.pathname.match(/\/([^/]*)(.*)/)

  // rootName is the first element before file path
  const rootName = path[1]

  // the remainder is the file path
  // const filePath = path[2]
  // const filePathElements = path[2].replace(/\/([^/]*)/, '$1').split('/')

  return (
    <h2 class={styles['fil-content-title']}>
      { t(`breadcrumb.title_${rootName}`) }
    </h2>
  )
}

export default translate()(withRouter(Breadcrumb))
{'fraction_non_alphanumeric': 0.17543859649122806, 'fraction_numerical': 0.008097165991902834, 'mean_word_length': 3.5913312693498454, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 9, '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': '5603891', 'n_tokens_mistral': 487, 'n_tokens_neox': 471, 'n_words': 125}