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

class QuestPage extends React.Component {
  constructor (props) {
    super(props);
    shouldComponentUpdate: (nextProps, nextState) => {
    // return a boolean value
      return true;
    };
  }

  render() {
    return (
      <div>
        <h2> Food Quest </h2>
          {(this.props.restos.length > 0) ? this.props.restos.map((restos) => {
            return (
              <div>
                <Task bis={restos}/>
              </div>
            );
          }) : console.log('it\'s not greater than 0')}
      </div>
    );
  }
}

export default QuestPage;<commit_msg>add key to map in quest page<commit_after>import React from 'react';
import Task from './Task.jsx';

class QuestPage extends React.Component {
  constructor (props) {
    super(props);
    shouldComponentUpdate: (nextProps, nextState) => {
    // return a boolean value
      return true;
    };
  }

  render() {
    return (
      <div>
        <h2> Food Quest </h2>
          {(this.props.restos.length > 0) ? this.props.restos.map((restos, i) => {
            return (
              <div key={i}>
                <Task bis={restos}/>
              </div>
            );
          }) : console.log('it\'s not greater than 0')}
      </div>
    );
  }
}

export default QuestPage;
{'fraction_non_alphanumeric': 0.14349775784753363, 'fraction_numerical': 0.005979073243647235, 'mean_word_length': 1.8071278825995807, 'pattern_counts': {'":': 0, '<': 17, '<?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': '5983026', 'n_tokens_mistral': 420, 'n_tokens_neox': 408, 'n_words': 103}