<commit_before>import React from 'react';
import logo from '../logo.svg';
import '../css/App.css';
import { Form, FormGroup, FormControl, Button } from 'react-bootstrap';

const FormBook = (props) => {
  return (
    <Form inline onSubmit={props.onSubmit}>
      <FormGroup bsSize="small">
        <FormControl id="searchForm" type="text" placeholder="Search for books" onChange={props.onChange} style={{"width": "40em", "marginLeft": "100px"}}></FormControl>
      </FormGroup>
      {' '}
      <Button type="submit">Search </Button>
    </Form>
  )
}

// FormBook.propTypes = {
//   onSubmit: React.PropTypes.func,
//   onChange: React.PropTypes.func
// }

export default FormBook;<commit_msg>add propTypes<commit_after>import React from 'react';
import logo from '../logo.svg';
import '../css/App.css';
import { Form, FormGroup, FormControl, Button } from 'react-bootstrap';

const FormBook = (props) => {
  return (
    <Form inline onSubmit={props.onSubmit}>
      <FormGroup bsSize="small">
        <FormControl id="searchForm" type="text" placeholder="Search for books" onChange={props.onChange} style={{"width": "40em", "marginLeft": "100px"}}></FormControl>
      </FormGroup>
      {' '}
      <Button type="submit">Search </Button>
    </Form>
  )
}

FormBook.propTypes = {
  onSubmit: React.PropTypes.func,
  onChange: React.PropTypes.func
}

export default FormBook;
{'fraction_non_alphanumeric': 0.17101449275362318, 'fraction_numerical': 0.007246376811594203, 'mean_word_length': 3.897163120567376, 'pattern_counts': {'":': 4, '<': 19, '<?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': '2236841', 'n_tokens_mistral': 437, 'n_tokens_neox': 433, 'n_words': 100}