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

export default class Home extends Component {
  render() {
    //console.info(this.props);
    let todo = this.props.todos[this.props.params.id] || {};
    return (
      <div>
        <h2>Detail Page</h2>
        <p>{todo.text}</p>
        <Link to="/">回首页咯</Link>
      </div>
    );
  }
}
<commit_msg>修复获取todo不对的问题<commit_after>import React, { Component } from 'react';
import { Link } from 'react-router';

export default class Home extends Component {
  render() {
    let todo = this.props.todos.find(todo => todo.id === parseInt(this.props.params.id)) || {};
    return (
      <div>
        <h2>Detail Page</h2>
        <p>{todo.text}</p>
        <Link to="/">回首页咯</Link>
      </div>
    );
  }
}

{'fraction_non_alphanumeric': 0.1797752808988764, 'fraction_numerical': 0.004993757802746567, 'mean_word_length': 2.5486725663716814, 'pattern_counts': {'":': 0, '<': 19, '<?xml version=': 0, '>': 20, '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': '2608969', 'n_tokens_mistral': 290, 'n_tokens_neox': 297, 'n_words': 57}