<commit_before>import React from 'react';
import { TouchableOpacity, Text } from 'react-native';
import styles from './Styles/RoundedButtonStyle';

export default class RoundedButton extends React.Component {

  static propTypes = {
    navigator: React.PropTypes.object,
    text: React.PropTypes.string,
    onPress: React.PropTypes.func.isRequired,
    children: React.PropTypes.string
  };

  getText () {
    const buttonText = this.props.text || this.props.children.toString();
    return buttonText.toUpperCase();
  }

  render () {
    return (
      <TouchableOpacity style={styles.button} onPress={this.props.onPress}>
        <Text style={styles.buttonText}>{this.getText()}</Text>
      </TouchableOpacity>
    );
  }
}<commit_msg>#71 refactored to stateless component<commit_after>import React from 'react';
import { TouchableOpacity, Text } from 'react-native';
import styles from './Styles/RoundedButtonStyle';

const RoundedButton = (props) => {

  const getText = () => {
    const buttonText = props.text || props.children.toString();
    return buttonText.toUpperCase();
  };

  return (
    <TouchableOpacity style={styles.button} onPress={props.onPress}>
      <Text style={styles.buttonText}>{getText()}</Text>
    </TouchableOpacity>
  );
};

RoundedButton.PropTypes = {
  navigator: React.PropTypes.object,
  text: React.PropTypes.string,
  onPress: React.PropTypes.func.isRequired,
  children: React.PropTypes.string
};

export default RoundedButton;
{'fraction_non_alphanumeric': 0.13288135593220338, 'fraction_numerical': 0.0013559322033898306, 'mean_word_length': 4.160839160839161, 'pattern_counts': {'":': 0, '<': 11, '<?xml version=': 0, '>': 13, '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': '6622081', 'n_tokens_mistral': 449, 'n_tokens_neox': 442, 'n_words': 91}