<commit_before>import React, { PropTypes } from 'react';
import Section from './Section';
const Education = props => {
  const { education } = props;
  const section = props.section_names.education;
  const renderHonor = (honor) =>
    <dd className="education-honor">{honor}</dd>;
  return (
    <Section startTime={education.start} endTime={education.end} section={section}>
      <dl className="education-description">
        <dt className="education-school">{education.school}</dt>
        <dd className="education-major">{education.major}</dd>
        {education.honor.map(renderHonor)}
      </dl>
    </Section>
  );
};
Education.propTypes = {
  education: PropTypes.object,
  section_names: PropTypes.object,
};
export default Education;<commit_msg>honor optional<commit_after>import React, { PropTypes } from 'react';
import Section from './Section';
const Education = props => {
  const { education } = props;
  const section = props.section_names.education;
  const renderHonor = (honor) =>
    <dd className="education-honor">{honor}</dd>;
  const honers = education.honor ? education.honor.map(renderHonor) : null;
  return (
    <Section startTime={education.start} endTime={education.end} section={section}>
      <dl className="education-description">
        <dt className="education-school">{education.school}</dt>
        <dd className="education-major">{education.major}</dd>
        {honers}
      </dl>
    </Section>
  );
};
Education.propTypes = {
  education: PropTypes.object,
  section_names: PropTypes.object,
};
export default Education;
{'fraction_non_alphanumeric': 0.1499680918953414, 'fraction_numerical': 0.0, 'mean_word_length': 4.1749174917491745, 'pattern_counts': {'":': 0, '<': 23, '<?xml version=': 0, '>': 27, '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': '1655717', 'n_tokens_mistral': 475, 'n_tokens_neox': 452, 'n_words': 95}