<commit_before>import React, { Component } from 'react';
import { reduxForm } from 'redux-form';
import * as actions from '../../actions';

class Signup extends Component {
    render () {
        return (
            <div>Signup</div>
        );
    }
}

export default Signup;<commit_msg>add fields and labels in signup component<commit_after>import React, { Component } from 'react';
import { reduxForm } from 'redux-form';
import * as actions from '../../actions';
import { connect } from 'react-redux';

class Signup extends Component {
    render () {
        const { handleSubmit, fields: { email, password, passwordConfirm }} = this.props;

        return (
            <form>
                <fieldset className="form-group">
                    <label>Email:</label>
                    <input type="text" className="form-control" {...email}/>
                </fieldset>   
                <fieldset className="form-group">
                    <label>Password:</label>
                    <input type="text" className="form-control" {...password} type="password"/>
                </fieldset>
                <fieldset className="form-group">
                    <label>Confirm Password:</label>
                    <input type="text" className="form-control" {...passwordConfirm} type="password"/>
                </fieldset>
                <button action="submit" className="btn btn-primary">Sign up</button>
            </form>
        );
    }
}

Signup = reduxForm({
    form: 'signup',
    fields: ['email', 'password', 'passwordConfirm']
})(Signup);

export default Signup = connect(null, null)(Signup);
{'fraction_non_alphanumeric': 0.1442663378545006, 'fraction_numerical': 0.0, 'mean_word_length': 2.0914285714285716, 'pattern_counts': {'":': 0, '<': 24, '<?xml version=': 0, '>': 24, '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': '4438334', 'n_tokens_mistral': 433, 'n_tokens_neox': 417, 'n_words': 108}