<commit_before>import React, { Component } from 'react'
import { TextInput, View, StyleSheet, TouchableOpacity, Text } from 'react-native'
import CrossTextInput from 'react-native-cross-button'
export default class CrossButtonExample extends Component {

  constructor(props) {
    super(props)
    this.state = {
      email: '',
      name: '',
      emailLoading: false,
      nameLoading: false,
    }
    this.onEmailInputCleared = this.onEmailInputCleared.bind(this)
    this.onNameInputCleared = this.onNameInputCleared.bind(this)
  }

  onEmailInputCleared() {
   this.setState({ email: ''});
 }
 onNameInputCleared() {
  this.setState({ name: ''});
 }
 fetchingEmail() {
   this.setState({ emailLoading: !this.state.emailLoading});
 }

 fetchingName() {
   this.setState({ nameLoading: !this.state.nameLoading});
 }
  render() {

    return (

      <View style = {styles.container}>
        <CrossTextInput underlineColorAndroid="transparent"  hideProgress={false} isLoading= {this.state.emailLoading} value = {this.state.email} style={styles.textInput} autoCorrect={false} autoCapitalize="none" keyboardType="email-address" placeholder={'EMAIL'} placeholderTextColor="#adadad" onChangeText={(text) => this.setState({ email: text })}
         containerStyle= {{backgroundColor: 'green'}} onInputCleared={this.onEmailInputCleared} />
       <CrossTextInput underlineColorAndroid="transparent" hideProgress={false} isLoading= {this.state.nameLoading} value = {this.state.name} style={styles.textInput} autoCorrect={false} autoCapitalize="none" keyboardType="email-address" placeholder={'NAME'} placeholderTextColor="#adadad" onChangeText={(text) => this.setState({ name: text })}
        containerStyle= {{backgroundColor: 'red'}} onInputCleared={this.onNameInputCleared} />
      <TouchableOpacity onPress={() => this.fetchingEmail()}  underlayColor={'#00000000'}>
          <Text style={styles.buttonTextStyle}>Stop Loading Emails</Text>
        </TouchableOpacity>
        <TouchableOpacity onPress={() => this.fetchingName()}  underlayColor={'#00000000'}>
          <Text style={styles.buttonTextStyle}>Stop Loading Emails</Text>
        </TouchableOpacity>
      </View>

    )

  }

}

const styles = StyleSheet.create({

  container: {
    flex: 1,
    alignItems: 'center',
  },

  textInput: {
     height: 40,
     fontFamily: 'System',
     fontSize: 12,
     padding:10,
     flex: 1
  },

  buttonStyle: {
    height: 50,
    width: 124,
    flex: 1,
    flexDirection: 'row',
    backgroundColor: 'rgba(0,0,0,0)',
    borderColor: 'red',
    borderWidth: 1,
    alignSelf: 'stretch',
    justifyContent: 'center'
  },

  buttonTextStyle: {
    fontSize: 12,
    color: 'green',
    alignSelf: 'center',
    fontFamily: 'System',
    fontWeight: 'bold'
  },

});<commit_msg>Example Fixes<commit_after>import React, { Component } from 'react'
import { TextInput, View, StyleSheet, TouchableOpacity, Text } from 'react-native'
import CrossTextInput from 'react-native-cross-button'
export default class CrossButtonExample extends Component {

  constructor(props) {
    super(props)
    this.state = {
      email: '',
      name: '',
      emailLoading: false,
      nameLoading: false,
    }
    this.onEmailInputCleared = this.onEmailInputCleared.bind(this)
    this.onNameInputCleared = this.onNameInputCleared.bind(this)
  }

  onEmailInputCleared() {
   this.setState({ email: ''});
 }
 onNameInputCleared() {
  this.setState({ name: ''});
 }
 fetchingEmail() {
   this.setState({ emailLoading: !this.state.emailLoading});
 }

 fetchingName() {
   this.setState({ nameLoading: !this.state.nameLoading});
 }
  render() {
    let emailButtonText = this.state.emailLoading? (<Text style={styles.buttonTextStyle}>Stop Loading Emails</Text>) : (<Text style={styles.buttonTextStyle}>Start Loading Emails</Text>)
    let nameButtonText = this.state.nameLoading? (<Text style={styles.buttonTextStyle}>Stop Loading Names</Text>) : (<Text style={styles.buttonTextStyle}>Start Loading Names</Text>)
    return (

      <View style = {styles.container}>
        <CrossTextInput underlineColorAndroid="transparent"  hideProgress={false} isLoading= {this.state.emailLoading} value = {this.state.email} style={styles.textInput} autoCorrect={false} autoCapitalize="none" keyboardType="email-address" placeholder={'EMAIL'} placeholderTextColor="#adadad" onChangeText={(text) => this.setState({ email: text })}
         containerStyle= {{backgroundColor: 'green'}} onInputCleared={this.onEmailInputCleared} />
       <CrossTextInput underlineColorAndroid="transparent" hideProgress={false} isLoading= {this.state.nameLoading} value = {this.state.name} style={styles.textInput} autoCorrect={false} autoCapitalize="none" keyboardType="email-address" placeholder={'NAME'} placeholderTextColor="#adadad" onChangeText={(text) => this.setState({ name: text })}
        containerStyle= {{backgroundColor: 'red'}} onInputCleared={this.onNameInputCleared} />
      <TouchableOpacity style= {styles.buttonStyle} onPress={() => this.fetchingEmail()}  underlayColor={'#00000000'}>
          {emailButtonText}
        </TouchableOpacity>
        <TouchableOpacity style= {styles.buttonStyle} onPress={() => this.fetchingName()}  underlayColor={'#00000000'}>
          {nameButtonText}
        </TouchableOpacity>
      </View>

    )

  }

}

const styles = StyleSheet.create({

  container: {
    flex: 1,
    alignItems: 'center',
  },

  textInput: {
     height: 40,
     fontFamily: 'System',
     fontSize: 12,
     padding:10,
     flex: 1
  },

  buttonStyle: {
    height: 50,
    width: 300,
    flexDirection: 'row',
    backgroundColor: 'red',
    borderColor: 'red',
    borderWidth: 1,
    alignSelf: 'center',
    justifyContent: 'center',
    margin: 10,
  },

  buttonTextStyle: {
    fontSize: 15,
    color: 'green',
    alignSelf: 'center',
    fontFamily: 'System',
    fontWeight: 'bold'
  },

});
{'fraction_non_alphanumeric': 0.1461187214611872, 'fraction_numerical': 0.012007441231185523, 'mean_word_length': 4.111495246326707, 'pattern_counts': {'":': 0, '<': 31, '<?xml version=': 0, '>': 39, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 4, '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': '7027545', 'n_tokens_mistral': 1881, 'n_tokens_neox': 1798, 'n_words': 349}