<commit_before>import React, {Component, PropTypes} from 'react';
import {reduxForm} from 'redux-form';
import { registerCompanyAction } from '../actions/index';
import {Link} from 'react-router';
import validator from 'validator';
import Header from './header';
import * as actionCreators from '../actions/index';

class RegisterCompanyForm extends Component{
	static contextTypes ={
	    router : PropTypes.object
	};

	onSubmit(props){
		this.props.registerCompanyAction(props)
		 .then(() => {
			 // blog post has been created, navigate the user to the index
			 // We navigate by calling this.context.router.push with the
			 // new path to navigate to.
			 this.context.router.push('/');
		 });
	}

	render(){
		const {fields:{companyName, ein, role
			, streetAddress, city, state, zipcode
			, fullName, email, password, <PASSWORD>Password, phoneNumber
			}, handleSubmit} = this.props;

		return (
			<div>
				<Header />
	      <form onSubmit={handleSubmit(this.onSubmit.bind(this))}>
					<h3>Add a NEW Company </h3>
					<br/>
					<br/>
	        <h3>Compay Details</h3>

					<div className={`row`}>
		        <div className={`form-group col-xs-8 col-md-8 ${companyName.touched && companyName.invalid ? 'has-danger' : ''}`}>
		          <label> Company Name </label>
		          <input type="text" className="form-control" placeholder="Enter a valid Company Name" {...companyName}/>
							<div className="text-help">
            		{companyName.touched ? companyName.error : ''}
          		</div>
		        </div>

		        <div className={`form-group col-xs-4 col-md-4 ${ein.touched && ein.invalid ? 'has-danger' : ''}`}>
		          <label>EIN of the Company</label>
		          <input type="text" className="form-control" placeholder="Enter a valid Company EIN" {...ein}/>
							<div className="text-help">
            		{ein.touched ? ein.error : ''}<commit_msg>removing the header from the register company<commit_after>import React, {Component, PropTypes} from 'react';
import {reduxForm} from 'redux-form';
import { registerCompanyAction } from '../actions/index';
import {Link} from 'react-router';
import validator from 'validator';
import Header from './header';
import * as actionCreators from '../actions/index';

class RegisterCompanyForm extends Component{
	static contextTypes ={
	    router : PropTypes.object
	};

	onSubmit(props){
		this.props.registerCompanyAction(props)
		 .then(() => {
			 // blog post has been created, navigate the user to the index
			 // We navigate by calling this.context.router.push with the
			 // new path to navigate to.
			 this.context.router.push('/');
		 });
	}

	render(){
		const {fields:{companyName, ein, role
			, streetAddress, city, state, zipcode
			, fullName, email, password, <PASSWORD>Password, phoneNumber
			}, handleSubmit} = this.props;

		return (
			<div>
	      <form onSubmit={handleSubmit(this.onSubmit.bind(this))}>
					<h3>Add a NEW Company </h3>
					<br/>
					<br/>
	        <h3>Compay Details</h3>

					<div className={`row`}>
		        <div className={`form-group col-xs-8 col-md-8 ${companyName.touched && companyName.invalid ? 'has-danger' : ''}`}>
		          <label> Company Name </label>
		          <input type="text" className="form-control" placeholder="Enter a valid Company Name" {...companyName}/>
							<div className="text-help">
            		{companyName.touched ? companyName.error : ''}
          		</div>
		        </div>

		        <div className={`form-group col-xs-4 col-md-4 ${ein.touched && ein.invalid ? 'has-danger' : ''}`}>
		          <label>EIN of the Company</label>
		          <input type="text" className="form-control" placeholder="Enter a valid Company EIN" {...ein}/>
							<div className="text-help">
            		{ein.touched ? ein.error : ''}
{'fraction_non_alphanumeric': 0.15199577055247157, 'fraction_numerical': 0.0042294475284166, 'mean_word_length': 2.925311203319502, 'pattern_counts': {'":': 0, '<': 48, '<?xml version=': 0, '>': 50, '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': '4650211', 'n_tokens_mistral': 1282, 'n_tokens_neox': 1122, 'n_words': 301}