<commit_before>//
// @route /mobilizations/:mobilization_id/widgets/:widget_id/form/export
//
import { connect } from 'react-redux'
import { asyncWidgetDataExport, dataExportMount } from '~client/mobrender/redux/action-creators'
import MobSelectors from '~client/mobrender/redux/selectors'

import Page from './page'

const mapStateToProps = state => {
  const selectors = MobSelectors(state)

  return {
    loading: state.mobilizations.dataExport.loading,
    error: state.mobilizations.dataExport.error,
    success: state.mobilizations.dataExport.success,
    mobilization: selectors.getMobilization(),
    widget: selectors.getWidget()
  }
}

const mapActionsToProps = {
  asyncWidgetDataExport,
  dataExportMount
}
<commit_msg>fix(admin): multiple form widget report button<commit_after>//
// @route /mobilizations/:mobilization_id/widgets/:widget_id/form/export
//
import { connect } from 'react-redux'
import { asyncWidgetDataExport, dataExportMount } from '~client/mobrender/redux/action-creators'
import MobSelectors from '~client/mobrender/redux/selectors'

import Page from './page'

const mapStateToProps = (state, props) => {
  const selectors = MobSelectors(state, props)

  return {
    loading: state.mobilizations.dataExport.loading,
    error: state.mobilizations.dataExport.error,
    success: state.mobilizations.dataExport.success,
    mobilization: selectors.getMobilization(),
    widget: selectors.getWidget()
  }
}

const mapActionsToProps = {
  asyncWidgetDataExport,
  dataExportMount
}

{'fraction_non_alphanumeric': 0.11155115511551156, 'fraction_numerical': 0.0, 'mean_word_length': 4.921875, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 5, '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': '4945845', 'n_tokens_mistral': 475, 'n_tokens_neox': 468, 'n_words': 89}