<commit_before>import React, { Component, PropTypes } from 'react';
import Card from './Card';
import { render } from 'react-dom';

class List extends Component {
  render() {
    var cards = this.props.cards.map((card) => {
      return <Card key={ card.id } id={ card.id } title={ card.title } color={ card.color } description={ card.description } tasks={ card.tasks }
             />
    });

    return (
      <div className="list">
        <h1>{ this.props.title }</h1>
        { cards }
      </div>
      );
  }
}

List.propTypes = {
  title: PropTypes.string.isRequired,
  cards: PropTypes.arrayOf(PropTypes.object)
};

export default List;<commit_msg>List Component Receiving and Passing the taskCallbacks Prop. use spread operator to reduce some typing when passing props to the Card component<commit_after>import React, { Component, PropTypes } from 'react';
import Card from './Card';
import { render } from 'react-dom';

class List extends Component {
  render() {
    let cards = this.props.cards.map((card) => {
      return <Card key={ card.id } taskCallbacks={this.props.taskCallbacks} {...card} />
    });

    return (
      <div className="list">
        <h1>{ this.props.title }</h1>
        { cards }
      </div>
      );
  }
}

List.propTypes = {
  title: PropTypes.string.isRequired,
  cards: PropTypes.arrayOf(PropTypes.object),
  taskCallbacks: PropTypes.object
};

export default List;
{'fraction_non_alphanumeric': 0.14285714285714285, 'fraction_numerical': 0.002828854314002829, 'mean_word_length': 2.9971751412429377, 'pattern_counts': {'":': 0, '<': 13, '<?xml version=': 0, '>': 15, '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': '284790', 'n_tokens_mistral': 425, 'n_tokens_neox': 427, 'n_words': 118}