<commit_before>import React from 'react';
import {connect} from 'react-redux';

import {filterGreetings} from './selectors';

const Counter = ({greetings, filteredGreetings}) => (
    <div className="Counter">Showing {filteredGreetings.length} of {greetings.length} Greetings</div>
);

export default connect(
    state => ({
        greetings: state.greetings,
        filteredGreetings: filterGreetings(state.greetings, state.filter)
    })
)(Counter);<commit_msg>Determine counter numbers in connect<commit_after>import React from 'react';
import {connect} from 'react-redux';

import {filterGreetings} from './selectors';

const Counter = ({greetingCount, filteredGreetingsCount}) => (
    <div className="Counter">Showing {filteredGreetingsCount} of {greetingCount} Greetings</div>
);

export default connect(
    state => ({
        greetingCount: state.greetings.length,
        filteredGreetingsCount: filterGreetings(state.greetings, state.filter).length
    })
)(Counter);
{'fraction_non_alphanumeric': 0.13034623217922606, 'fraction_numerical': 0.0, 'mean_word_length': 5.105590062111801, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 11, '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': '6421442', 'n_tokens_mistral': 298, 'n_tokens_neox': 295, 'n_words': 67}