<commit_before>import React from 'react';
import { Input, Button, ButtonToolbar, Jumbotron } from 'react-bootstrap';
import auth from '../utils/auth';

class App extends React.Component {
    constructor(props) {
        super(props);
        this.handleEmailChange = this.handleEmailChange.bind(this);
        this.handlePasswordChange = this.handlePasswordChange.bind(this);
        this.handleSubmit = this.handleSubmit.bind(this);
        this.state = {
            email: '',
            password: '',
        };
    }

    handleEmailChange() {
        // This could also be done using ReactLink:
        // http://facebook.github.io/react/docs/two-way-binding-helpers.html
        this.setState({
            email: this.refs.email.getValue(),
        });
    }

    handlePasswordChange() {
        // This could also be done using ReactLink:
        // http://facebook.github.io/react/docs/two-way-binding-helpers.html
        this.setState({
            password: this.refs.password.getValue(),
        });
    }

    handleSubmit() {
        event.preventDefault();

        auth
            .login(this.state.email, this.state.password)
            .then(() => {
            })
            .catch(() => {
            });
    }

    render() {
        return (
            <div className="col-md-6 col-md-offset-3">
                <Jumbotron>
                    <h1>Login</h1>

                    <form onSubmit={this.handleSubmit}>
                        <Input type="email" label="Email Address" placeholder="Enter email" ref="email"
                               onChange={this.handleEmailChange}/>

                        <Input type="password" label="Password" placeholder="Enter password" ref="password"
                               onChange={this.handlePasswordChange}/>

                        <ButtonToolbar>
                            <Button type="submit" bsStyle="primary">Login</Button>
                            <Button type="reset">Reset</Button>
                        </ButtonToolbar>
                    </form>
                </Jumbotron>
            </div>
        );
    }
}

export default App;<commit_msg>remove reset button<commit_after>import React from 'react';
import { Input, Button, ButtonToolbar, Jumbotron } from 'react-bootstrap';
import auth from '../utils/auth';

class App extends React.Component {
    constructor(props) {
        super(props);
        this.handleEmailChange = this.handleEmailChange.bind(this);
        this.handlePasswordChange = this.handlePasswordChange.bind(this);
        this.handleSubmit = this.handleSubmit.bind(this);
        this.state = {
            email: '',
            password: '',
        };
    }

    handleEmailChange() {
        // This could also be done using ReactLink:
        // http://facebook.github.io/react/docs/two-way-binding-helpers.html
        this.setState({
            email: this.refs.email.getValue(),
        });
    }

    handlePasswordChange() {
        // This could also be done using ReactLink:
        // http://facebook.github.io/react/docs/two-way-binding-helpers.html
        this.setState({
            password: this.refs.password.getValue(),
        });
    }

    handleSubmit() {
        event.preventDefault();

        auth
            .login(this.state.email, this.state.password)
            .then(() => {
            })
            .catch(() => {
            });
    }

    render() {
        return (
            <div className="col-md-6 col-md-offset-3">
                <Jumbotron>
                    <h1>Login</h1>

                    <form onSubmit={this.handleSubmit}>
                        <Input type="email" label="Email Address" placeholder="Enter email" ref="email"
                               onChange={this.handleEmailChange}/>

                        <Input type="password" label="Password" placeholder="Enter password" ref="password"
                               onChange={this.handlePasswordChange}/>

                        <Button type="submit" bsStyle="primary" block>Login</Button>
                    </form>
                </Jumbotron>
            </div>
        );
    }
}

export default App;
{'fraction_non_alphanumeric': 0.12688894219237226, 'fraction_numerical': 0.001918925401775006, 'mean_word_length': 1.5965130759651307, 'pattern_counts': {'":': 0, '<': 31, '<?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': '2991389', 'n_tokens_mistral': 1080, 'n_tokens_neox': 1057, 'n_words': 194}