<commit_before>import React from 'react';
import './ErrorList.css';

const ErrorList = () => (
  <ul className="error-list">
    {
    this.props.errors.map(error => (
      <li className={error.length > 40 ? 'long-error error capitalize' : 'error capitalize'} key={null}>{error}</li>
    ))
  }
  </ul>
);


export default ErrorList;<commit_msg>changed PropTypes<commit_after>import React from 'react';
import PropTypes from 'prop-types';
import './ErrorList.css';

const ErrorList = props => (
  <ul className="error-list">
    {
    props.errors.map(error => (
      <li className={error.length > 40 ? 'long-error error capitalize' : 'error capitalize'} key={null}>{error}</li>
    ))
  }
  </ul>
);

ErrorList.propTypes = {
  errors: PropTypes.arrayOf(
    PropTypes.string,
  ).isRequired,
};


export default ErrorList;
{'fraction_non_alphanumeric': 0.1696969696969697, 'fraction_numerical': 0.0048484848484848485, 'mean_word_length': 3.72, 'pattern_counts': {'":': 0, '<': 11, '<?xml version=': 0, '>': 17, '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': '1191983', 'n_tokens_mistral': 271, 'n_tokens_neox': 267, 'n_words': 58}