<commit_before>import React, { Component } from 'react';
import ColouredConsole from './colourConsole';

class Display extends Component {
  constructor(props) {
    super(props);
    this.colouredConsole = new ColouredConsole();
    this.colouredConsole.setColour('#333', '#bada55');
    this.colouredConsole.log('Display: constructor', ' just fired!');
  }

  componentWillMount() {
    this.colouredConsole.log('Display: componentWillMount', ' just fired!');
  }

  componentDidMount() {
    this.colouredConsole.log('Display: componentDidMount', ' just fired!');
  }

  componentWillReceiveProps(nextProps) {
    this.colouredConsole.log(`Display: componentWillReceiveProps', ' just fired with this for nextProps: ${JSON.stringify(nextProps)}`)
  }

  shouldComponentUpdate(nextProps, nextState) {
    this.colouredConsole.log('Display: shouldComponentUpdate', ` just fired with nextProps set to: ${JSON.stringify(nextProps)}; and nextState set to: ${JSON.stringify(nextState)}`);
    return nextProps.message !== this.props.message;
  }

  componentWillUpdate(nextProps, nextState) {
    this.colouredConsole.log('Display: componentWillUpdate', ` just fired with nextProps set to: ${JSON.stringify(nextProps)}; and nextState set to: ${JSON.stringify(nextState)}`);
  }<commit_msg>Missed the apostrophe, do'h!<commit_after>import React, { Component } from 'react';
import ColouredConsole from './colourConsole';

class Display extends Component {
  constructor(props) {
    super(props);
    this.colouredConsole = new ColouredConsole();
    this.colouredConsole.setColour('#333', '#bada55');
    this.colouredConsole.log('Display: constructor', ' just fired!');
  }

  componentWillMount() {
    this.colouredConsole.log('Display: componentWillMount', ' just fired!');
  }

  componentDidMount() {
    this.colouredConsole.log('Display: componentDidMount', ' just fired!');
  }

  componentWillReceiveProps(nextProps) {
    this.colouredConsole.log('Display: componentWillReceiveProps', ` just fired with this for nextProps: ${JSON.stringify(nextProps)}`)
  }

  shouldComponentUpdate(nextProps, nextState) {
    this.colouredConsole.log('Display: shouldComponentUpdate', ` just fired with nextProps set to: ${JSON.stringify(nextProps)}; and nextState set to: ${JSON.stringify(nextState)}`);
    return nextProps.message !== this.props.message;
  }

  componentWillUpdate(nextProps, nextState) {
    this.colouredConsole.log('Display: componentWillUpdate', ` just fired with nextProps set to: ${JSON.stringify(nextProps)}; and nextState set to: ${JSON.stringify(nextState)}`);
  }
{'fraction_non_alphanumeric': 0.13500967117988394, 'fraction_numerical': 0.0038684719535783366, 'mean_word_length': 5.53030303030303, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, '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': '2078242', 'n_tokens_mistral': 747, 'n_tokens_neox': 726, 'n_words': 161}