<commit_before>import {HotKeys} from "react-hotkeys"

import Chart from "../containers/Chart"
import EditToolbar from "../containers/EditToolbar"


const ChartBench = ({
  chordA,
  chordB,
  chordC,
  chordD,
  chordE,
  chordF,
  chordG,
  moveLeft,
  moveRight,
  redo,
  slug,
  title,
  undo,
  width,
}) => (
  <article style={{marginBottom: 60}}>
    <h1 id={slug}>
      <a href={"#" + slug} style={{textDecoration: "none"}} title="Anchor"></a>
      {" "}
      {title}
      <small>
        {" "}
      </small>
    </h1>
    <EditToolbar chartSlug={slug} />
    <HotKeys
      handlers={{
        chordA,
        chordB,
        chordC,
        chordD,
        chordE,
        chordF,
        chordG,
        moveLeft,
        moveRight,
        redo,
        undo,
      }}
    >
      <Chart slug={slug} width={width} />
    </HotKeys>
  </article>
)


export default ChartBench<commit_msg>Enable key shortcuts when toolbar is focused<commit_after>import {HotKeys} from "react-hotkeys"

import Chart from "../containers/Chart"
import EditToolbar from "../containers/EditToolbar"


const ChartBench = ({
  chordA,
  chordB,
  chordC,
  chordD,
  chordE,
  chordF,
  chordG,
  moveLeft,
  moveRight,
  redo,
  slug,
  title,
  undo,
  width,
}) => (
  <article style={{marginBottom: 60}}>
    <h1 id={slug}>
      <a href={"#" + slug} style={{textDecoration: "none"}} title="Anchor"></a>
      {" "}
      {title}
      <small>
        {" "}
      </small>
    </h1>
    <HotKeys
      handlers={{
        chordA,
        chordB,
        chordC,
        chordD,
        chordE,
        chordF,
        chordG,
        moveLeft,
        moveRight,
        redo,
        undo,
      }}
    >
      <EditToolbar chartSlug={slug} />
      <Chart slug={slug} width={width} />
    </HotKeys>
  </article>
)


export default ChartBench
{'fraction_non_alphanumeric': 0.14883215643671918, 'fraction_numerical': 0.0043454644215100485, 'mean_word_length': 2.0147299509001635, 'pattern_counts': {'":': 0, '<': 27, '<?xml version=': 0, '>': 29, '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': '6861866', 'n_tokens_mistral': 696, 'n_tokens_neox': 695, 'n_words': 137}