<commit_before>import { connect } from 'react-redux'
import { fetchUserProfile,
  changeInput,
  confirmUserForm,
  userDataValidation,
  sendUserProfileUpdate,
  titleTextToTitleCode,
  changeTitleInput,
  changeTaxOptOutInput } from '../modules/user'

/*  This is a container component. Notice it does not contain any JSX,
    nor does it import React. This component is **only** responsible for
    wiring in the actions and state necessary to render a presentational
    component - in this case, the user:   */

import User from '../components/User'

/*  Object of action creators (can also be function that returns object).
    Keys will be passed as props to presentational components. Here we are
    implementing our wrapper around increment; the component doesn't care   */

const mapDispatchToProps = {
  fetchUserProfile,
  changeInput,
  confirmUserForm,
  userDataValidation,
  sendUserProfileUpdate,
  titleTextToTitleCode,
  changeTitleInput,
  changeTaxOptOutInput
}

const mapStateToProps = (state) => ({
  user : state.user,
  auth : state.auth
})

/*  Note: mapStateToProps is where you should use `reselect` to create selectors, ie:

    import { createSelector } from 'reselect'
    const user = (state) => state.user
    const tripleCount = createSelector(user, (count) => count * 3)
    const mapStateToProps = (state) => ({
      user: tripleCount(state)
    })

    Selectors can compute derived data, allowing Redux to store the minimal possible state.
    Selectors are efficient. A selector is not recomputed unless one of its arguments change.
    Selectors are composable. They can be used as input to other selectors.
    https://github.com/reactjs/reselect    */

export default connect(mapStateToProps, mapDispatchToProps)(User)
<commit_msg>Add function to redux<commit_after>import { connect } from 'react-redux'
import { fetchUserProfile,
  changeInput,
  confirmUserForm,
  userDataValidation,
  sendUserProfileUpdate,
  titleTextToTitleCode,
  changeTitleInput,
  changeInputWithValidation } from '../modules/user'

/*  This is a container component. Notice it does not contain any JSX,
    nor does it import React. This component is **only** responsible for
    wiring in the actions and state necessary to render a presentational
    component - in this case, the user:   */

import User from '../components/User'

/*  Object of action creators (can also be function that returns object).
    Keys will be passed as props to presentational components. Here we are
    implementing our wrapper around increment; the component doesn't care   */

const mapDispatchToProps = {
  fetchUserProfile,
  changeInput,
  confirmUserForm,
  userDataValidation,
  sendUserProfileUpdate,
  titleTextToTitleCode,
  changeTitleInput,
  changeInputWithValidation
}

const mapStateToProps = (state) => ({
  user : state.user,
  auth : state.auth
})

/*  Note: mapStateToProps is where you should use `reselect` to create selectors, ie:

    import { createSelector } from 'reselect'
    const user = (state) => state.user
    const tripleCount = createSelector(user, (count) => count * 3)
    const mapStateToProps = (state) => ({
      user: tripleCount(state)
    })

    Selectors can compute derived data, allowing Redux to store the minimal possible state.
    Selectors are efficient. A selector is not recomputed unless one of its arguments change.
    Selectors are composable. They can be used as input to other selectors.
    https://github.com/reactjs/reselect    */

export default connect(mapStateToProps, mapDispatchToProps)(User)

{'fraction_non_alphanumeric': 0.07511210762331838, 'fraction_numerical': 0.0005605381165919282, 'mean_word_length': 3.9024725274725274, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 11, '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': '5206621', 'n_tokens_mistral': 971, 'n_tokens_neox': 960, 'n_words': 369}