<commit_before>import * as React from 'react';
import * as ReactDOM from 'react-dom';

interface ChildProps {
  name: string;
}

const Child = ({ name }: ChildProps) => <p>Hello, {name}!</p>;

class Test extends React.Component {
  public render() {
    return (
      <div className="test" style={{ width: 100 }}>
        <Child name="World" />
      </div>
    );
  }
}

ReactDOM.render(<Test />, document.getElementById('test'));<commit_msg>Add more examples<commit_after>import * as React from 'react';
import { Component, HTMLProps } from 'react';
import * as ReactDOM from 'react-dom';

interface ChildProps {
  name: string;
}

interface TestProps extends HTMLProps<HTMLDivElement> {
  className: string;
}

const Child = ({ name }: ChildProps) => <p>Hello, {name}!</p>;

class Test extends Component<TestProps, {}> {
  public render() {
    return (
      <div className="test" style={{ width: 100 }} onClick={this.boundMethod}>
        <Child name="World" />
        {[
          <div key={0} />,
          <div key={1} />,
          <div key={2} />,
          <div key={3} />,
          <div key={4} />,
        ]}
      </div>
    );
  }

  private boundMethod = (event: React.MouseEvent<HTMLDivElement>) => {
    event.preventDefault();
  };
}

ReactDOM.render(<Test className={'test'} />, document.getElementById('test'));
{'fraction_non_alphanumeric': 0.1752808988764045, 'fraction_numerical': 0.008239700374531835, 'mean_word_length': 3.0484848484848484, 'pattern_counts': {'":': 0, '<': 23, '<?xml version=': 0, '>': 26, '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': '6147373', 'n_tokens_mistral': 425, 'n_tokens_neox': 419, 'n_words': 103}