<commit_before>import React, { Component } from 'react'
import Row from 'react-bootstrap/lib/Row'
import Col from 'react-bootstrap/lib/Col'
import Button from 'react-bootstrap/lib/Button'
import Glyphicon from 'react-bootstrap/lib/Glyphicon'
import FormGroup from 'react-bootstrap/lib/FormGroup'
import InputGroup from 'react-bootstrap/lib/InputGroup'
import FormControl from 'react-bootstrap/lib/FormControl'

class FormActions extends Component {
  constructor(props) {
    super(props)
    this.state = {
      search: ''
    }
    this.handleSearch = this.handleSearch.bind(this)
    this.handleInputChange = this.handleInputChange.bind(this)
  }

  handleSearch(e) {
    if (e.keyCode === undefined || e.keyCode === 13) {
      console.log(`search: ${this.state.search}`)
    }
  }

  handleInputChange(e) {
    this.setState({
      search: e.target.value
    })
  }

  render() {
    return (
      <Row>
        <Col md={2}>
          <Button href="#/carros/novo" bsStyle="success">Novo Carro</Button>
        </Col>
        <Col mdOffset={7} md={3}>
          <FormGroup>
            <InputGroup>
              <FormControl
                type="text"
                placeholder="Pesquisar"
                value={this.state.value}
                onChange={this.handleInputChange}
                onKeyUp={this.handleSearch}
              />
              <InputGroup.Button>
                <Button onClick={this.handleSearch}><Glyphicon glyph="search" /></Button>
              </InputGroup.Button>
            </InputGroup>
          </FormGroup>
        </Col>
      </Row>
    )
  }
}

export default FormActions<commit_msg>improve responsive design<commit_after>import React, { Component } from 'react'
import Row from 'react-bootstrap/lib/Row'
import Col from 'react-bootstrap/lib/Col'
import Button from 'react-bootstrap/lib/Button'
import Glyphicon from 'react-bootstrap/lib/Glyphicon'
import FormGroup from 'react-bootstrap/lib/FormGroup'
import InputGroup from 'react-bootstrap/lib/InputGroup'
import FormControl from 'react-bootstrap/lib/FormControl'

class FormActions extends Component {
  constructor(props) {
    super(props)
    this.state = {
      search: ''
    }
    this.handleSearch = this.handleSearch.bind(this)
    this.handleInputChange = this.handleInputChange.bind(this)
  }

  handleSearch(e) {
    if (e.keyCode === undefined || e.keyCode === 13) {
      console.log(`search: ${this.state.search}`)
    }
  }

  handleInputChange(e) {
    this.setState({
      search: e.target.value
    })
  }

  render() {
    return (
      <Row>
        <Col xs={5} sm={3} md={2}>
          <Button href="#/carros/novo" bsStyle="success" block>Novo Carro</Button>
        </Col>
        <Col xs={7} smOffset={5} sm={4} mdOffset={7} md={3}>
          <FormGroup>
            <InputGroup>
              <FormControl
                type="text"
                placeholder="Pesquisar"
                value={this.state.value}
                onChange={this.handleInputChange}
                onKeyUp={this.handleSearch}
              />
              <InputGroup.Button>
                <Button onClick={this.handleSearch}><Glyphicon glyph="search" /></Button>
              </InputGroup.Button>
            </InputGroup>
          </FormGroup>
        </Col>
      </Row>
    )
  }
}

export default FormActions
{'fraction_non_alphanumeric': 0.1296795447738844, 'fraction_numerical': 0.004492362982929021, 'mean_word_length': 2.277723258096173, 'pattern_counts': {'":': 0, '<': 39, '<?xml version=': 0, '>': 39, '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': '6182383', 'n_tokens_mistral': 1011, 'n_tokens_neox': 981, 'n_words': 189}