<commit_before>import React from "react";
import PropTypes from "prop-types";
import RemoveButton from "../ActionButtons/Remove";
import "./style.css";

export default class ModalHeader extends React.Component {
  static propTypes = {
    title: PropTypes.string.isRequired,
    close: PropTypes.func.isRequired
  };
  render() {
    return (
      <span className="header modal-header">
        <h2>{this.props.title}</h2>
        <RemoveButton onClick={this.props.close} />
      </span>
    );
  }
}<commit_msg>do not require these props<commit_after>import React from "react";
import PropTypes from "prop-types";
import RemoveButton from "../ActionButtons/Remove";
import "./style.css";

export default class ModalHeader extends React.Component {
  static propTypes = {
    title: PropTypes.string,
    close: PropTypes.func
  };
  render() {
    return (
      <span className="header modal-header">
        <h2>{this.props.title}</h2>
        <RemoveButton onClick={this.props.close} />
      </span>
    );
  }
}
{'fraction_non_alphanumeric': 0.13542688910696762, 'fraction_numerical': 0.003925417075564278, 'mean_word_length': 3.2677824267782425, 'pattern_counts': {'":': 0, '<': 13, '<?xml version=': 0, '>': 13, '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': '2126466', 'n_tokens_mistral': 293, 'n_tokens_neox': 299, 'n_words': 74}