<commit_before>import React, {useState} from 'react';
import PropTypes from 'prop-types';

const Counter = ({initialCount}) => {
    const [count, setCount] = useState(initialCount);
    const increment = () => setCount(count + 1);

    return (
        <div>
            <h2>Count: {count}</h2>
            <button
                type="button"<commit_msg>Use useCallback so that `increment` is memoized<commit_after>import React, {useState} from 'react';
import PropTypes from 'prop-types';

const Counter = ({initialCount}) => {
    const [count, setCount] = useState(initialCount);
    const increment = useCallback(() => setCount(count + 1), [count]);

    return (
        <div>
            <h2>Count: {count}</h2>
            <button
                type="button"
{'fraction_non_alphanumeric': 0.14415584415584415, 'fraction_numerical': 0.007792207792207792, 'mean_word_length': 2.7794117647058822, 'pattern_counts': {'":': 0, '<': 11, '<?xml version=': 0, '>': 13, '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': '3114781', 'n_tokens_mistral': 227, 'n_tokens_neox': 222, 'n_words': 59}