<commit_before>class App extends React.Component {
  constructor(props) {
    super(props);

    this.state = {
      query: ''
    };

    this.onSearchUpdate = this.onSearchUpdate.bind(this);
  }

  getHomeProps(props) {
    let newProps = props;

    newProps.query = this.state.query;
    newProps.onSearchUpdate = this.onSearchUpdate;

    return newProps;
  }

  render() {
    return React.createElement(
      'div',
      { className: 'container' },
      [
        React.createElement('h1', null, 'Simple GitHub Search'),
        React.createElement(
          ReactRouterDOM.Route,
          {
            path: '/',
            exact: true,
            render: (props) => React.createElement(Home, this.getHomeProps(props))
          }
        ),
        React.createElement(
          ReactRouterDOM.Route,
          {
            path: '/profile/:username',
            render: ProfileContainer
          }
        )
      ]
    );
  }

  onSearchUpdate(query) {
    this.setState({ query });
  }
}<commit_msg>fix profile route not rendering profile container<commit_after>class App extends React.Component {
  constructor(props) {
    super(props);

    this.state = {
      query: ''
    };

    this.onSearchUpdate = this.onSearchUpdate.bind(this);
  }

  getHomeProps(props) {
    let newProps = props;

    newProps.query = this.state.query;
    newProps.onSearchUpdate = this.onSearchUpdate;

    return newProps;
  }

  render() {
    return React.createElement(
      'div',
      { className: 'container' },
      [
        React.createElement('h1', null, 'Simple GitHub Search'),
        React.createElement(
          ReactRouterDOM.Route,
          {
            path: '/',
            exact: true,
            render: (props) => React.createElement(Home, this.getHomeProps(props))
          }
        ),
        React.createElement(
          ReactRouterDOM.Route,
          {
            path: '/profile/:username',
            component: ProfileContainer
          }
        )
      ]
    );
  }

  onSearchUpdate(query) {
    this.setState({ query });
  }
}
{'fraction_non_alphanumeric': 0.11978917105893627, 'fraction_numerical': 0.0009583133684714902, 'mean_word_length': 1.88, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 5, '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': '5484601', 'n_tokens_mistral': 601, 'n_tokens_neox': 597, 'n_words': 104}