<commit_before>import React from 'react';
import classNames from 'classnames';
import styles from "./ChapterLink.module.css";
import AppHeaderTooltip from "./AppHeaderTooltip";

export default function ChapterLink(props) {
  return (
    <div>
      <a className={classNames(styles.chapterLink, {[styles.chapterLinkActive]: props.active})}
         href={`chapter-${props.permaId}`}
         onClick={() => props.handleMenuClick(props.chapterLinkId)}
         data-tip data-for={props.chapterLinkId}>
        {props.title}
      </a>
      <AppHeaderTooltip chapterIndex={props.chapterIndex}
                        chapterLinkId={props.chapterLinkId}
                        {...props} />
    </div>

  )
}<commit_msg>Fix chapter links in scrolled navigation<commit_after>import React from 'react';
import classNames from 'classnames';
import styles from "./ChapterLink.module.css";
import AppHeaderTooltip from "./AppHeaderTooltip";

export default function ChapterLink(props) {
  return (
    <div>
      <a className={classNames(styles.chapterLink, {[styles.chapterLinkActive]: props.active})}
         href={`#chapter-${props.permaId}`}
         onClick={() => props.handleMenuClick(props.chapterLinkId)}
         data-tip data-for={props.chapterLinkId}>
        {props.title}
      </a>
      <AppHeaderTooltip chapterIndex={props.chapterIndex}
                        chapterLinkId={props.chapterLinkId}
                        {...props} />
    </div>

  )
}
{'fraction_non_alphanumeric': 0.1330150068212824, 'fraction_numerical': 0.0, 'mean_word_length': 2.943548387096774, 'pattern_counts': {'":': 0, '<': 13, '<?xml version=': 0, '>': 15, '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': '4555739', 'n_tokens_mistral': 418, 'n_tokens_neox': 406, 'n_words': 81}