<commit_before>import React from 'react';
import Task from './Task';
import AddTask from './AddTask';

class TaskBoard extends React.Component {
  constructor(){
    super();

    this.state = {
        tasks: [
            { title: "Chiel", description: "Do something" },
            { title: "Maurice", description: "Go to work!" },
            { title: "Ashot", description: "What are you doing?!" }
        ]
    };
}

  renderTask(task){
    return <Task
        title={task.title}
        description={task.description}
        />;
}

  onAddTask(new_title, new_description){
    var newTask = { title: new_title, description: new_description };
    var newTasks = this.state.tasks.concat(newTask);
    this.setState({
      tasks: newTasks
    });
  }

  render() {
    return (
      <div>
        <AddTask onSubmit={this.onAddTask.bind(this)} />
        <hr />
        <table>
          <tbody>
            {this.state.tasks.map(this.renderTask.bind(this))}
          </tbody>
        </table>
      </div>
    );
  }
}

export default TaskBoard;
<commit_msg>some div changes and onAddTask refactor<commit_after>import React from 'react';
import Task from './Task';
import AddTask from './AddTask';

class TaskBoard extends React.Component {
  constructor(){
    super();

    this.state = {
        tasks: [
            { title: "Chiel", description: "Do something" },
            { title: "Maurice", description: "Go to work!" },
            { title: "Ashot", description: "What are you doing?!" }
        ]
    };
}

  renderTask(task){
    return <Task
        title={task.title}
        description={task.description}
        />;
}

  onAddTask(new_title, new_description){
    var currentTasks = this.state.tasks;
    var newTasks = currentTasks.concat(new_title, new_description);
    this.setState({
      tasks: newTasks
    });
  }

  render() {
    return (
      <div>
        <AddTask onSubmit={this.onAddTask.bind(this)} />
      </div>
      <hr />
      <div>
        <table>
          <tbody>
              {this.state.tasks.map(this.renderTask.bind(this))}
              </tbody>
            </table>
      </div>
    );
  }
}

export default TaskBoard;

{'fraction_non_alphanumeric': 0.1425951398441082, 'fraction_numerical': 0.0, 'mean_word_length': 2.0862800565770865, 'pattern_counts': {'":': 0, '<': 23, '<?xml version=': 0, '>': 23, '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': '1306464', 'n_tokens_mistral': 668, 'n_tokens_neox': 661, 'n_words': 149}