<commit_before>import React, {Component, PropTypes} from 'react';
import {bindActionCreators} from 'redux';
import {connect} from 'react-redux';
import AuthorForm from '../dumb/AuthorForm';
import * as AuthorActions from '../../actions/AuthorActions';
import * as BookActions from '../../actions/BookActions';

class NewAuthorViewContainer extends React.Component {

    handleSubmit(data) {
        this.props.authorActions.createAuthor(data);
    }

    render() {
        const {author} = this.props;
        return (
            <AuthorForm key={null} author={author} handleSubmit={::this.handleSubmit} />
        );
    }
}
<commit_msg>fixed issue with state of form not being reset<commit_after>import React, {Component, PropTypes} from 'react';
import {bindActionCreators} from 'redux';
import {connect} from 'react-redux';
import AuthorForm from '../dumb/AuthorForm';
import * as AuthorActions from '../../actions/AuthorActions';
import * as BookActions from '../../actions/BookActions';

class NewAuthorViewContainer extends React.Component {

    handleSubmit(data) {
        this.props.authorActions.createAuthor(data);
    }

    render() {
        
        let author = {};
        
        return (
            <AuthorForm key={null} author={author} handleSubmit={::this.handleSubmit} />
        );
    }
}

{'fraction_non_alphanumeric': 0.13550340651021953, 'fraction_numerical': 0.0, 'mean_word_length': 3.210191082802548, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, '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': '3542', 'n_tokens_mistral': 356, 'n_tokens_neox': 357, 'n_words': 93}