<commit_before>import React from 'react'
import { reduxForm, Field } from 'redux-form'
import { withRouter } from 'react-router'
import { connect } from 'react-redux'
import { push, goBack } from 'react-router-redux'
import { injectIntl, FormattedMessage } from 'react-intl'
import Button from './button'
import Input from './input'
import { Form, Modal as ModalBootstrap, ModalHeader, ModalBody, ModalFooter } from 'reactstrap'
import { validate } from './index'

export class Modal extends React.Component {
  static contextTypes = {
    location: React.PropTypes.object
  }
  getConfig () {
    const { config } = this.props
    return {
      formTitle: 'test',
      submit: function (values) {
        console.log(values)
      },
      fields: [],
      body: e => e,
      buttons: (
        <div>
          <Button onClick={this.close.bind(this)}><FormattedMessage id='close' /></Button>
          &nbsp;&nbsp;
          <Button color='primary' type='submit'><FormattedMessage id='submit' /></Button><commit_msg>improve<commit_after>import React from 'react'
import { reduxForm, Field } from 'redux-form'
import { withRouter } from 'react-router'
import { connect } from 'react-redux'
import { push, goBack } from 'react-router-redux'
import { injectIntl, FormattedMessage } from 'react-intl'
import Button from './button'
import Input from './input'
import { Form, Modal as ModalBootstrap, ModalHeader, ModalBody, ModalFooter } from 'reactstrap'
import { validate } from './index'

export class Modal extends React.Component {
  static contextTypes = {
    location: React.PropTypes.object
  }
  getConfig () {
    const { config } = this.props
    return {
      formTitle: 'test',
      submit: function (values) {
        console.log(values)
      },
      fields: [],
      body: e => e,
      buttons: (
        <div>
          <Button onClick={this.close.bind(this)} type='button'><FormattedMessage id='close' /></Button>
          &nbsp;&nbsp;
          <Button color='primary' type='submit'><FormattedMessage id='submit' /></Button>
{'fraction_non_alphanumeric': 0.13414634146341464, 'fraction_numerical': 0.0, 'mean_word_length': 3.3088235294117645, 'pattern_counts': {'":': 0, '<': 17, '<?xml version=': 0, '>': 19, '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': '3511302', 'n_tokens_mistral': 610, 'n_tokens_neox': 603, 'n_words': 170}