<commit_before>import { makeStyles } from '@material-ui/core/styles'
import classnames from 'classnames'
import React, { memo, useState } from 'react'
import { NavLink, useHistory } from 'react-router-dom'

import ActionButton from 'src/components/buttons/ActionButton'
import { H4 } from 'src/components/typography'
import AddMachine from 'src/pages/AddMachine'
import { ReactComponent as AddIconReverse } from 'src/styling/icons/button/add/white.svg'
import { ReactComponent as AddIcon } from 'src/styling/icons/button/add/zodiac.svg'
import { ReactComponent as Logo } from 'src/styling/icons/menu/logo.svg'

import styles from './Header.styles'

const useStyles = makeStyles(styles)

const Subheader = ({ item, classes }) => {
  const [prev, setPrev] = useState(null)

  return (
    <div className={classes.subheader}>
      <div className={classes.content}>
        <nav>
          <ul className={classes.subheaderUl}>
            {item.children.map((it, idx) => (
              <li key={idx} className={classes.subheaderLi}>
                <NavLink
                  to={{ pathname: it.route, state: { prev: prev } }}
                  className={classes.subheaderLink}
                  activeClassName={classes.activeSubheaderLink}
                  isActive={match => {
                    if (!match) return false
                    setPrev(it.route)
                    return true
                  }}>
                  {it.label}
                </NavLink>
              </li>
            ))}
          </ul><commit_msg>fix: removed prev label in navlink<commit_after>import { makeStyles } from '@material-ui/core/styles'
import classnames from 'classnames'
import React, { memo, useState } from 'react'
import { NavLink, useHistory } from 'react-router-dom'

import ActionButton from 'src/components/buttons/ActionButton'
import { H4 } from 'src/components/typography'
import AddMachine from 'src/pages/AddMachine'
import { ReactComponent as AddIconReverse } from 'src/styling/icons/button/add/white.svg'
import { ReactComponent as AddIcon } from 'src/styling/icons/button/add/zodiac.svg'
import { ReactComponent as Logo } from 'src/styling/icons/menu/logo.svg'

import styles from './Header.styles'

const useStyles = makeStyles(styles)

const Subheader = ({ item, classes }) => {
  const [prev, setPrev] = useState(null)

  return (
    <div className={classes.subheader}>
      <div className={classes.content}>
        <nav>
          <ul className={classes.subheaderUl}>
            {item.children.map((it, idx) => (
              <li key={idx} className={classes.subheaderLi}>
                <NavLink
                  to={{ pathname: it.route, state: { prev } }}
                  className={classes.subheaderLink}
                  activeClassName={classes.activeSubheaderLink}
                  isActive={match => {
                    if (!match) return false
                    setPrev(it.route)
                    return true
                  }}>
                  {it.label}
                </NavLink>
              </li>
            ))}
          </ul>
{'fraction_non_alphanumeric': 0.1185617103984451, 'fraction_numerical': 0.0006478781988986071, 'mean_word_length': 2.2471083070452154, 'pattern_counts': {'":': 0, '<': 21, '<?xml version=': 0, '>': 27, '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': '4251022', 'n_tokens_mistral': 859, 'n_tokens_neox': 848, 'n_words': 199}