<commit_before>var React = require('react');
var moment = require('moment');
var cx = require('classnames');

var ADay = React.createClass({
  propTypes: {
    dayAbbrevMask: React.PropTypes.string.isRequired,
    firstDayAbbrevMask: React.PropTypes.string.isRequired,
    chart: React.PropTypes.func.isRequired,
    data: React.PropTypes.object,
    date: React.PropTypes.string.isRequired,
    future: React.PropTypes.bool.isRequired,
    mostRecent: React.PropTypes.bool.isRequired,
    onHover: React.PropTypes.func.isRequired
  },
  getDefaultProps: function() {
    return {
      dayAbbrevMask: 'D',
      firstDayAbbrevMask: 'MMM D'
    };
  },
  /**
   * We currently do not want to ever re-render this component,
   * possibly subject to change in the future
   *
   * @return {boolean}
   */
  shouldComponentUpdate: function() {
    return false;
  },
  mouseEnter: function () {
    this.props.onHover(this.props.date);
  },

  mouseLeave: function () {
    this.props.onHover(null);
  },
  render: function() {
    var chart = this.props.chart({data: this.props.data, date: this.props.date});
    var date = moment(this.props.date);

    var containerClass = cx({
      'Calendar-day': !this.props.future,
      'Calendar-day-future': this.props.future,
      'Calendar-day-most-recent': this.props.mostRecent,
      'Calendar-day-odd-month': (date.month() % 2 === 0)
    });<commit_msg>Remove hover behaviour on future days<commit_after>var React = require('react');
var moment = require('moment');
var cx = require('classnames');

var ADay = React.createClass({
  propTypes: {
    dayAbbrevMask: React.PropTypes.string.isRequired,
    firstDayAbbrevMask: React.PropTypes.string.isRequired,
    chart: React.PropTypes.func.isRequired,
    data: React.PropTypes.object,
    date: React.PropTypes.string.isRequired,
    future: React.PropTypes.bool.isRequired,
    mostRecent: React.PropTypes.bool.isRequired,
    onHover: React.PropTypes.func.isRequired
  },
  getDefaultProps: function() {
    return {
      dayAbbrevMask: 'D',
      firstDayAbbrevMask: 'MMM D'
    };
  },
  /**
   * We currently do not want to ever re-render this component,
   * possibly subject to change in the future
   *
   * @return {boolean}
   */
  shouldComponentUpdate: function() {
    return false;
  },
  mouseEnter: function () {
    if (this.props.future) {
      return;
    }
    this.props.onHover(this.props.date);
  },
  mouseLeave: function () {
    if (this.props.future) {
      return;
    }
    this.props.onHover(null);
  },
  render: function() {
    var chart = this.props.chart({data: this.props.data, date: this.props.date});
    var date = moment(this.props.date);

    var containerClass = cx({
      'Calendar-day': !this.props.future,
      'Calendar-day-future': this.props.future,
      'Calendar-day-most-recent': this.props.mostRecent,
      'Calendar-day-odd-month': (date.month() % 2 === 0)
    });
{'fraction_non_alphanumeric': 0.14095107765993842, 'fraction_numerical': 0.0013684570646595963, 'mean_word_length': 3.219336219336219, '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': '3858788', 'n_tokens_mistral': 959, 'n_tokens_neox': 937, 'n_words': 191}