<commit_before>import React from 'react'

const idSuffix = 'navigation__'

const Navigation = ({ onClick, id, title, tooltip, isActive }) => (
  <li id={`${idSuffix}${id}`} onClick={onClick} alt={tooltip} data-active={isActive}>
    {title}
  </li>
)

export default Navigation<commit_msg>Add highlight active navigation<commit_after>import React from 'react'

const idSuffix = 'navigation__'

const Navigation = ({ onClick, id, title, tooltip, isActive }) => (
  /* replace b by css solution only later on */
  <li id={`${idSuffix}${id}`} onClick={onClick} alt={tooltip} data-active={isActive}>
    {isActive ? <b>{title}</b> : title }
  </li >
)

export default Navigation
{'fraction_non_alphanumeric': 0.16468842729970326, 'fraction_numerical': 0.0, 'mean_word_length': 5.081081081081081, 'pattern_counts': {'":': 0, '<': 9, '<?xml version=': 0, '>': 11, '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': '6860403', 'n_tokens_mistral': 219, 'n_tokens_neox': 216, 'n_words': 60}