<commit_before>//@flow
import { connect } from 'react-redux'
import { compose } from 'redux'
import router from 'hoc-little-router'
import ProfilScreen from './ProfilScreen'
import { updateConnectedUser, updateConnectedUserProperty } from '../../auth'


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

const mapDispatchToProps = (dispatch, ownProps) => ({
  handleSave: () => dispatch(updateConnectedUser(ownProps.user)),
  handleChange: (name, value) => dispatch(updateConnectedUserProperty(name, value))
})


export default compose(
  router('PROFIL', { absolute: true }),  
  connect(mapStateToProps, mapDispatchToProps),
)(ProfilScreen)<commit_msg>:bug: Password edition in profile fix #315<commit_after>//@flow
import { connect } from 'react-redux'
import { compose } from 'redux'
import router from 'hoc-little-router'
import ProfilScreen from './ProfilScreen'
import { updateConnectedUser, updateConnectedUserProperty } from '../../auth'


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

const mapDispatchToProps = (dispatch, ownProps) => ({
  handleSave: () => dispatch(updateConnectedUser(ownProps.user)),
  handleChange: (name, value) => dispatch(updateConnectedUserProperty(name, value))
})


export default compose(
  router('PROFIL', { absolute: true }),
  connect(mapStateToProps, mapDispatchToProps),
)(ProfilScreen)
{'fraction_non_alphanumeric': 0.13866471019809246, 'fraction_numerical': 0.0022010271460014674, 'mean_word_length': 5.786069651741293, 'pattern_counts': {'":': 0, '<': 3, '<?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': '5042600', 'n_tokens_mistral': 411, 'n_tokens_neox': 400, 'n_words': 99}