<commit_before>import React, { Component, PropTypes } from 'react'
import FormCustomer from './FormCustomer'
import FormPayer from './FormPayer'
import FormControl from './FormControl'
import { reduxForm } from 'redux-form'
import { submitForm } from 'actions/order-form'
import validate from 'forms/validate/order-form'
import 'styles/core.scss'

export const fields = [ 'firstName', 'lastName', 'org', 'group', 'address',
    'address2', 'city', 'state', 'zip', 'country', 'phone', 'email',
    'shipAccount', 'shipAccountNum', 'comments', 'payerFirstName',
    'payerLastName', 'payerEmail', 'payerOrg', 'payerGroup', 'payerAddress', 'payerAddress2',
    'payerCity', 'payerState', 'payerZip', 'payerCountry', 'payerPhone', 'payMethod', 'poNum'
]

class OrderForm extends Component {
    displayName = 'dsc order form';

    static propTypes = {
        fields: PropTypes.object.isRequired,
        handleSubmit: PropTypes.func.isRequired,
        resetForm: PropTypes.func.isRequired,
        submitting: PropTypes.bool.isRequired
    }

    render() {
        const { handleSubmit, resetForm, submitting } = this.props
        const {
            fields: { firstName, lastName, email, org, group, address, address2, city,
                state, zip, country, phone, shipAccount, shipAccountNum, comments,
                payerFirstName, payerLastName, payerEmail, payerOrg, payerGroup, payerAddress,
                payerAddress2, payerCity, payerState, payerZip, payerCountry, payerPhone,
                payMethod, poNum
            }
        } = this.props
        return (
            <div className="container">
                <h2 className="page-header">
                  Please fill out the following information to complete your order
                </h2>
                <form onSubmit={ handleSubmit } className="form-horizontal">
                    <div className="row">
                        <div className="col-md-6">
                            <FormCustomer
                                firstName={ firstName }
                                lastName={ lastName }
                                email={ email }
                                org={ org }
                                group={ group }
                                address={ address }
                                address2={ address2 }
                                city={ city }
                                state={ state }
                                zip={ zip }
                                country={ country }
                                phone={ phone }
                                shipAccount={ shipAccount }
                                shipAccountNum={ shipAccountNum }
                                comments={ comments }
                            />
                        </div>
                        <div className="col-md-6">
                            <FormPayer
                                firstName={ payerFirstName }
                                lastName={ payerLastName }
                                email={ payerEmail }
                                org={ payerOrg }
                                group={ payerGroup }
                                address={ payerAddress }
                                address2={ payerAddress2 }
                                city={ payerCity }
                                state={ payerState }
                                zip={ payerZip }
                                country={ payerCountry }
                                phone={ payerPhone }
                                payMethod={ payMethod }
                                poNum={ poNum }
                            />
                        </div>
                    </div>
                    <hr />
                    <FormControl resetForm={ resetForm } submitting={ submitting }/>
                </form>
            </div>
        )
    }
}

export default reduxForm({
    form: 'dsc-order-form',
    fields,
    onSubmit: submitForm,
    validate
})(OrderForm)
<commit_msg>fixed the form name format<commit_after>import React, { Component, PropTypes } from 'react'
import FormCustomer from './FormCustomer'
import FormPayer from './FormPayer'
import FormControl from './FormControl'
import { reduxForm } from 'redux-form'
import { submitForm } from 'actions/order-form'
import validate from 'forms/validate/order-form'
import 'styles/core.scss'

export const fields = [ 'firstName', 'lastName', 'org', 'group', 'address',
    'address2', 'city', 'state', 'zip', 'country', 'phone', 'email',
    'shipAccount', 'shipAccountNum', 'comments', 'payerFirstName',
    'payerLastName', 'payerEmail', 'payerOrg', 'payerGroup', 'payerAddress', 'payerAddress2',
    'payerCity', 'payerState', 'payerZip', 'payerCountry', 'payerPhone', 'payMethod', 'poNum'
]

class OrderForm extends Component {
    displayName = 'dsc order form';

    static propTypes = {
        fields: PropTypes.object.isRequired,
        handleSubmit: PropTypes.func.isRequired,
        resetForm: PropTypes.func.isRequired,
        submitting: PropTypes.bool.isRequired
    }

    render() {
        const { handleSubmit, resetForm, submitting } = this.props
        const {
            fields: { firstName, lastName, email, org, group, address, address2, city,
                state, zip, country, phone, shipAccount, shipAccountNum, comments,
                payerFirstName, payerLastName, payerEmail, payerOrg, payerGroup, payerAddress,
                payerAddress2, payerCity, payerState, payerZip, payerCountry, payerPhone,
                payMethod, poNum
            }
        } = this.props
        return (
            <div className="container">
                <h2 className="page-header">
                  Please fill out the following information to complete your order
                </h2>
                <form onSubmit={ handleSubmit } className="form-horizontal">
                    <div className="row">
                        <div className="col-md-6">
                            <FormCustomer
                                firstName={ firstName }
                                lastName={ lastName }
                                email={ email }
                                org={ org }
                                group={ group }
                                address={ address }
                                address2={ address2 }
                                city={ city }
                                state={ state }
                                zip={ zip }
                                country={ country }
                                phone={ phone }
                                shipAccount={ shipAccount }
                                shipAccountNum={ shipAccountNum }
                                comments={ comments }
                            />
                        </div>
                        <div className="col-md-6">
                            <FormPayer
                                firstName={ payerFirstName }
                                lastName={ payerLastName }
                                email={ payerEmail }
                                org={ payerOrg }
                                group={ payerGroup }
                                address={ payerAddress }
                                address2={ payerAddress2 }
                                city={ payerCity }
                                state={ payerState }
                                zip={ payerZip }
                                country={ payerCountry }
                                phone={ payerPhone }
                                payMethod={ payMethod }
                                poNum={ poNum }
                            />
                        </div>
                    </div>
                    <hr />
                    <FormControl resetForm={ resetForm } submitting={ submitting }/>
                </form>
            </div>
        )
    }
}

export default reduxForm({
    form: 'orderForm',
    fields,
    onSubmit: submitForm,
    validate
})(OrderForm)

{'fraction_non_alphanumeric': 0.09269731989181215, 'fraction_numerical': 0.0029505778214900416, 'mean_word_length': 1.1733903286134117, 'pattern_counts': {'":': 0, '<': 35, '<?xml version=': 0, '>': 35, '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': '4312359', 'n_tokens_mistral': 1933, 'n_tokens_neox': 1826, 'n_words': 458}