<commit_before>import React, { View, TextInput, StyleSheet, Image } from 'react-native';
import { colors } from '../../styles/global';

export default class SearchInput extends React.Component {

  constructor(props) {
    super(props);
    
    this.state = {
      searchTerm: props.searchTerm
    }  
  }
  
  componentWillReceiveProps(nextProps) {
    this.setState({ searchTerm: nextProps.searchTerm });
  }
    
  render() {
    return (
      <Image source={require('../../img/kroam.png')} style={styles.container}>
        <View style={styles.searchContainer}>
          <TextInput 
            style={styles.searchTextInput} 
            placeholder='Search for deals'
            onChangeText={(text) => this.setState({ searchTerm: text })}
            onSubmitEditing={() => this.props.onSearch(this.state.searchTerm)}
            returnKeyType='search'
            value={this.state.searchTerm}<commit_msg>Modified SearchInput to not perform autocorrect and capitalization<commit_after>import React, { View, TextInput, StyleSheet, Image } from 'react-native';
import { colors } from '../../styles/global';

export default class SearchInput extends React.Component {

  constructor(props) {
    super(props);
    
    this.state = {
      searchTerm: props.searchTerm
    }  
  }
  
  componentWillReceiveProps(nextProps) {
    this.setState({ searchTerm: nextProps.searchTerm });
  }
    
  render() {
    return (
      <Image source={require('../../img/kroam.png')} style={styles.container}>
        <View style={styles.searchContainer}>
          <TextInput 
            style={styles.searchTextInput} 
            placeholder='Search for deals'
            onChangeText={(text) => this.setState({ searchTerm: text })}
            onSubmitEditing={() => this.props.onSearch(this.state.searchTerm)}
            returnKeyType='search'
            value={this.state.searchTerm}
            autoCapitalize='none'
            autoCorrect={false}
{'fraction_non_alphanumeric': 0.1309462915601023, 'fraction_numerical': 0.0, 'mean_word_length': 2.7186311787072244, 'pattern_counts': {'":': 0, '<': 9, '<?xml version=': 0, '>': 11, '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': '81052', 'n_tokens_mistral': 536, 'n_tokens_neox': 534, 'n_words': 102}