<commit_before>import React from 'react'

export default class AutoFireForm extends React.Component {
  constructor (props, context) {
    super(props, context)
    this.state = {
      loading: false,
      hasNewField: false
    }
  }

  render () {
    return <div>mensagem</div>
  }
}<commit_msg>[#110173274] Add hybrid behavior to menu's autofire component<commit_after>import React from 'react'
import * as Paths from '../Paths'
import { FormWidgetMenu, DonationWidgetMenu, Loading, CloseButton } from './../components'

export default class AutoFireForm extends React.Component {
  constructor (props, context) {
    super(props, context)
    this.state = {
      loading: false,
      hasNewField: false
    }
  }

  widget (props = this.props) {
    const { widgets } = props
    return widgets.data[widgets.data.map((widget) => { return widget.id.toString() }).indexOf(this.props.params.widget_id)]
  }

  renderPage () {
    const { widgets, dirty } = this.props
    const widget = this.widget()
    return (
      <div className='flex-auto flex flex-column bg-silver gray relative'>
        {(widget.kind === 'donation'
          ? <DonationWidgetMenu {...this.props} widget={widget} />
          : <FormWidgetMenu {...this.props} widget={widget} />
        )}
        <div className='p3 flex-auto overflow-scroll'>

        </div>
        <CloseButton dirty={dirty} path={Paths.editMobilization(this.props.mobilization.id)} />
      </div>
    )
  }

  renderLoading () {
    return (
      <Loading />
    )
  }

  render () {
    return (this.props.widgets.data.length > 0 ? this.renderPage() : this.renderLoading())
  }
}
{'fraction_non_alphanumeric': 0.13683567501527183, 'fraction_numerical': 0.006719609040928528, 'mean_word_length': 2.8360655737704916, 'pattern_counts': {'":': 0, '<': 13, '<?xml version=': 0, '>': 15, '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': '953338', 'n_tokens_mistral': 511, 'n_tokens_neox': 489, 'n_words': 115}