<commit_before>import React from 'react';
import { TextField, RaisedButton } from 'material-ui';

export default class PlaceCreator extends React.Component {
  static propTypes = {
    onCreate: React.PropTypes.func.isRequired
  }

  constructor(props) {
    super(props);
    this.state = { name: '', description: '' };
  }

  _resetFormData = () => {
    this.setState({ name: '', description: '' });
  }

  _handleNameChange = (event) => {
    this.setState({ name: event.target.value });
  }

  _handleDescriptionChange = (event) => {
    this.setState({ description: event.target.value });
  }

  _handleOnCreate = () => {
    const { name, description } = this.state;
    this.props.onCreate({
      name, description
    });
    this._resetFormData();
  }

  render() {
    return (
      <div>
        <TextField
          hintText="Place Name"
          onChange={this._handleNameChange}/>
        <TextField
          hintText="Description"
          onChange={this._handleDescriptionChange}
          multiline="true"
          fullWidth="true"
          rows="6"
          />
        <RaisedButton
          label="Create"
          onClick={this._handleOnCreate}
          />
      </div>
    );
  }
}<commit_msg>adjusted padding and description size in PlaceCreator<commit_after>import React from 'react';
import { TextField, RaisedButton, Paper } from 'material-ui';

export default class PlaceCreator extends React.Component {
  static propTypes = {
    onCreate: React.PropTypes.func.isRequired
  }

  constructor(props) {
    super(props);
    this.state = { name: '', description: '' };
  }

  _resetFormData = () => {
    this.setState({ name: '', description: '' });
  }

  _handleNameChange = (event) => {
    this.setState({ name: event.target.value });
  }

  _handleDescriptionChange = (event) => {
    this.setState({ description: event.target.value });
  }

  _handleOnCreate = () => {
    const { name, description } = this.state;
    this.props.onCreate({
      name, description
    });
    this._resetFormData();
  }

  render() {
    return (
      <Paper style={{padding : "12px"}}>
        <TextField
          hintText="Place Name"
          onChange={this._handleNameChange}/>
        <TextField
          hintText="Description"
          onChange={this._handleDescriptionChange}
          multiline="true"
          fullWidth="true"
          rows="3"
          />
        <RaisedButton
          label="Create"
          onClick={this._handleOnCreate}
          />
      </Paper>
    );
  }
}
{'fraction_non_alphanumeric': 0.13794466403162056, 'fraction_numerical': 0.0015810276679841897, 'mean_word_length': 2.3791722296395195, 'pattern_counts': {'":': 0, '<': 13, '<?xml version=': 0, '>': 21, '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': '4309621', 'n_tokens_mistral': 744, 'n_tokens_neox': 733, 'n_words': 137}