<commit_before>import React from "react"
import Prism from "prismjs"
import "prismjs/components/prism-javascript.js"

class Section extends React.Component {
  componentDidMount() {
    Prism.highlightAll()
  }
  componentDidUpdate() {
    Prism.highlightAll()
  }
  render() {
    let example = this.props.component.example
    example = example.replace(/ /g, "\u00a0").replace(/</g, "&lt;").replace(/>/g, "&gt;")
    return (
      <li>
        <h2 className="section-description">{this.props.component.description}</h2>
        <span className="section-path">{this.props.component.path}</span>
        <p className="section-example">
          <code style={{whiteSpace: "pre"}} className="language-javascript">
            <div dangerouslySetInnerHTML={ {__html: example} } />
          </code>
        </p>
      </li>
    )
  }
}

export default Section<commit_msg>Fix div cannot appear as child of p tag warning.<commit_after>import React from "react"
import Prism from "prismjs"
import "prismjs/components/prism-javascript.js"

class Section extends React.Component {
  componentDidMount() {
    Prism.highlightAll()
  }
  componentDidUpdate() {
    Prism.highlightAll()
  }
  render() {
    let example = this.props.component.example
    example = example.replace(/ /g, "\u00a0").replace(/</g, "&lt;").replace(/>/g, "&gt;")
    return (
      <li>
        <h2 className="section-description">{this.props.component.description}</h2>
        <span className="section-path">{this.props.component.path}</span>
        <div className="section-example">
          <code style={{whiteSpace: "pre"}} className="language-javascript">
            <div dangerouslySetInnerHTML={ {__html: example} } />
          </code>
        </div>
      </li>
    )
  }
}

export default Section
{'fraction_non_alphanumeric': 0.1579539066891512, 'fraction_numerical': 0.005621135469364812, 'mean_word_length': 3.073226544622426, 'pattern_counts': {'":': 0, '<': 27, '<?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': '457191', 'n_tokens_mistral': 552, 'n_tokens_neox': 545, 'n_words': 109}