<commit_before>import React, { PureComponent } from "react"
import { PrismLight } from "react-syntax-highlighter"
import swift from "react-syntax-highlighter/dist/cjs/languages/prism/swift"
import prismStyle from "react-syntax-highlighter/dist/cjs/styles/prism/a11y-dark"

PrismLight.registerLanguage("swift", swift)

interface Props {
  value: string
  language?: string
}

class CodeBlock extends PureComponent<Props> {
  render(): JSX.Element {
    const { language, value } = this.props
    return (
      <PrismLight language={language} style={prismStyle}>
        {value}
      </PrismLight>
    )
  }
}

export default CodeBlock
<commit_msg>Improve scrollbar colours for code blocks<commit_after>import React, { PureComponent } from "react"
import { PrismLight } from "react-syntax-highlighter"
import swift from "react-syntax-highlighter/dist/cjs/languages/prism/swift"
import prismStyle from "react-syntax-highlighter/dist/cjs/styles/prism/a11y-dark"

PrismLight.registerLanguage("swift", swift)

interface Props {
  value: string
  language?: string
}

class CodeBlock extends PureComponent<Props> {
  render(): JSX.Element {
    const { language, value } = this.props
    return (
      <PrismLight
        language={language}
        style={prismStyle}
        customStyle={{
          "color-scheme": "dark",
        }}
      >
        {value}
      </PrismLight>
    )
  }
}

export default CodeBlock

{'fraction_non_alphanumeric': 0.11307420494699646, 'fraction_numerical': 0.0028268551236749115, 'mean_word_length': 3.5974025974025974, 'pattern_counts': {'":': 1, '<': 9, '<?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': '2609152', 'n_tokens_mistral': 458, 'n_tokens_neox': 437, 'n_words': 96}