<commit_before>import React, { Component } from 'react';

import Timer from 'material-ui/svg-icons/image/timer';

import { amber500, red500 } from 'material-ui/styles/colors';

class DueDate extends Component {
  render() {
    const colors = {
      tomorrow: amber500,
      today: red500,
    };
    const styles = {
      tomorrow: {
        color: amber500,
      },
      today: {
        color: red500,
      }
    };
    return (
      <span className="DueDate">
        {this.props.due === 'tomorrow' ?
          (
            <span>
              <Timer color={colors.tomorrow} /><small style={styles.tomorrow}>Tomorrow</small>
            </span>
          )
          :
          (
            <span>
              <Timer color={colors.today} /><small style={styles.today}>Today</small>
            </span>
          )
        }
      </span>
    );
  }
}

export default DueDate;<commit_msg>Update DueDate component to support null values<commit_after>import React, { Component } from 'react';

import Timer from 'material-ui/svg-icons/image/timer';

import { amber500, red500 } from 'material-ui/styles/colors';

class DueDate extends Component {
  render() {
    const colors = {
      tomorrow: amber500,
      today: red500,
    };
    const styles = {
      tomorrow: {
        color: amber500,
      },
      today: {
        color: red500,
      }
    };
    return (
      <span className="DueDate">
        {this.props.due === 'tomorrow' ?
          (
            <span>
              <Timer color={colors.tomorrow} /><small style={styles.tomorrow}>Tomorrow</small>
            </span>
          )
          : this.props.due === 'today' ?
          (
            <span>
              <Timer color={colors.today} /><small style={styles.today}>Today</small>
            </span>
          )
          : null
        }
      </span>
    );
  }
}

export default DueDate;
{'fraction_non_alphanumeric': 0.1361228813559322, 'fraction_numerical': 0.019067796610169493, 'mean_word_length': 1.6794326241134752, 'pattern_counts': {'":': 0, '<': 27, '<?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': '5554299', 'n_tokens_mistral': 593, 'n_tokens_neox': 556, 'n_words': 116}