<commit_before>/*
 * this container conform the suggested pattern described in
 * https://rackt.org/redux/docs/basics/UsageWithReact.html
 *
 */

import { connect } from 'react-redux';

import increaseCounter from '../actions/counter/increment';

import CounterCard from '../components/counter-card';

const mapStateToProps = (state) => {
  return {... state};
};

const mapDispatchToProps = (dispatch) => {
  return {
    onIncreaseButtonClick: () => {
      dispatch(increaseCounter());
    }
  };
};

export default connect(mapStateToProps, mapDispatchToProps)(CounterCard);
<commit_msg>fix counter<commit_after>/*
 * this container conform the suggested pattern described in
 * https://rackt.org/redux/docs/basics/UsageWithReact.html
 *
 */

import { connect } from 'react-redux';

import increaseCounter from '../actions/counter/increment';

import CounterCard from '../components/counter-card';

const mapStateToProps = (state) => {
  return {...state.counter};
};

const mapDispatchToProps = (dispatch) => {
  return {
    onIncreaseButtonClick: () => {
      dispatch(increaseCounter());
    }
  };
};

export default connect(mapStateToProps, mapDispatchToProps)(CounterCard);

{'fraction_non_alphanumeric': 0.14261603375527426, 'fraction_numerical': 0.0, 'mean_word_length': 4.247787610619469, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 9, 'https://': 2, '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': '1981016', 'n_tokens_mistral': 354, 'n_tokens_neox': 347, 'n_words': 75}