<commit_before>import React, { Component } from 'react';

export default class Header extends Component {
  render() {
    const { searchBox } = this.props;

    return (
      <header className="header">
        <h1 className="header-title">
          {this.props.title}
        </h1>
        {searchBox}
      </header>
    );
  }
}
<commit_msg>Validate props in Header<commit_after>import React, { Component, PropTypes } from 'react';

export default class Header extends Component {
  render() {
    const { searchBox } = this.props;

    return (
      <header className="header">
        <h1 className="header-title">
          {this.props.title}
        </h1>
        {searchBox}
      </header>
    );
  }
}

Header.propTypes = {
  title: PropTypes.string.isRequired,
  searchBox: PropTypes.element
};

{'fraction_non_alphanumeric': 0.12839506172839507, 'fraction_numerical': 0.0049382716049382715, 'mean_word_length': 2.4956896551724137, 'pattern_counts': {'":': 0, '<': 11, '<?xml version=': 0, '>': 11, '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': '4929556', 'n_tokens_mistral': 241, 'n_tokens_neox': 242, 'n_words': 57}