<commit_before>import React, { Component } from 'react';
import PropTypes from 'prop-types';
import styles from './timelineEvent.css';

class TimelineEvent extends Component {
  render() {
    return (
      <div className={styles.eventContainer}>
        <h4 className={styles.eventTitle}>
          {this.props.title}
        </h4>

        <div className={styles.eventContent}>
          <p>
            {this.props.content}
          </p>
        </div>
      </div>
    );
  }
}

TimelineEvent.propTypes = {
  title: PropTypes.string.isRequired,
  content: PropTypes.string.isRequired,
};

export default TimelineEvent;<commit_msg>Force TimelineEvent.js Title to be TitleCase with Regex #531<commit_after>import React, { Component } from 'react';
import PropTypes from 'prop-types';
import styles from './timelineEvent.css';

class TimelineEvent extends Component {
  titleCase = title => title.toLowerCase().replace(/(^[a-z]| [a-z])/g, match => match.toUpperCase());

  render() {
    return (
      <div className={styles.eventContainer}>
        <h4 className={styles.eventTitle}>
          {this.titleCase(this.props.title)}
        </h4>
        <div className={styles.eventContent}>
          <p>
            {this.props.content}
          </p>
        </div>
      </div>
    );
  }
}

TimelineEvent.propTypes = {
  title: PropTypes.string.isRequired,
  content: PropTypes.string.isRequired,
};

export default TimelineEvent;
{'fraction_non_alphanumeric': 0.1370911621433542, 'fraction_numerical': 0.0048712595685455815, 'mean_word_length': 2.774278215223097, 'pattern_counts': {'":': 0, '<': 19, '<?xml version=': 0, '>': 21, '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': '2399330', 'n_tokens_mistral': 430, 'n_tokens_neox': 432, 'n_words': 93}