<commit_before>import React from 'react'
import { Link } from 'react-router-dom'

const MealsList = ({ meals }) => {
  return (
    <div>
      <h1>All Meals</h1>
      <ul>
        {meals.map(m =>
          <Link key={m.id} to={`/meals/${m.id}`}>
            <h3 style={{ listStyleType: 'none' }}>
              {m.name}
            </h3>
          </Link>
        )}
      </ul>
    </div>
  )
}

export default MealsList
<commit_msg>Add prop types to MealsList component<commit_after>import React from 'react';
import { Link } from 'react-router-dom';
import PropTypes from 'prop-types';

const MealsList = ({ meals }) => (
  <div>
    <h1>All Meals</h1>
    <ul>
      {meals.map(m => (
        <Link key={m.id} to={`/meals/${m.id}`}>
          <h3 style={{ listStyleType: 'none' }}>
            {m.name}
          </h3>
        </Link>
      ))}
    </ul>
  </div>
);

MealsList.propTypes = {
  meals: PropTypes.arrayOf(PropTypes.object).isRequired,
};

export default MealsList;

{'fraction_non_alphanumeric': 0.18274111675126903, 'fraction_numerical': 0.008121827411167513, 'mean_word_length': 2.062111801242236, 'pattern_counts': {'":': 0, '<': 23, '<?xml version=': 0, '>': 27, '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': '3715759', 'n_tokens_mistral': 359, 'n_tokens_neox': 366, 'n_words': 75}