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

import TaskActions from '../actions/TaskActions';

const propTypes = {
  task: PropTypes.object.isRequired,
};

export default class Task extends React.Component {
  constructor(props) {
    super(props);

    this.removeTask = this.removeTask.bind(this);
    this.playTask = this.playTask.bind(this);
    this.doneTask = this.doneTask.bind(this);
  }

  removeTask() {
    TaskActions.removeTask(this.props.task.id, this.props.date);
  }

  playTask() {
    TaskActions.playTask(this.props.task.id, this.props.date);
  }

  doneTask() {
    TaskActions.doneTask(this.props.task.id, this.props.date);
  }

  render() {
    const buttonPlay = (this.props.task.status === 1) ?
      <td className="is-icon" onClick={this.playTask}>
        <i className="fa fa-play" />
      </td>
      : false;<commit_msg>Add proptypes in task component<commit_after>import React, { PropTypes } from 'react';

import TaskActions from '../actions/TaskActions';

const propTypes = {
  task: PropTypes.object.isRequired,
  date: PropTypes.string.isRequired,
};

export default class Task extends React.Component {
  constructor(props) {
    super(props);

    this.removeTask = this.removeTask.bind(this);
    this.playTask = this.playTask.bind(this);
    this.doneTask = this.doneTask.bind(this);
  }

  removeTask() {
    TaskActions.removeTask(this.props.task.id, this.props.date);
  }

  playTask() {
    TaskActions.playTask(this.props.task.id, this.props.date);
  }

  doneTask() {
    TaskActions.doneTask(this.props.task.id, this.props.date);
  }

  render() {
    const buttonPlay = (this.props.task.status === 1) ?
      <td className="is-icon" onClick={this.playTask}>
        <i className="fa fa-play" />
      </td>
      : false;
{'fraction_non_alphanumeric': 0.1493542953396968, 'fraction_numerical': 0.0011229646266142617, 'mean_word_length': 3.356968215158924, 'pattern_counts': {'":': 0, '<': 9, '<?xml version=': 0, '>': 9, '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': '3798699', 'n_tokens_mistral': 590, 'n_tokens_neox': 582, 'n_words': 103}