<commit_before>/**
 * KeyboardButton
 * https://github.com/markuswind/react-native-select-input
 */

import PropTypes from 'prop-types';
import React, { Component } from 'react';

import {
  Dimensions,
  Text,
  TouchableOpacity
} from 'react-native';

var BUTTON_WIDTH = Dimensions.get('window').width * 0.25;

class KeyboardButton extends Component {
  render() {
    let props = this.props;

    return (
      <TouchableOpacity onPress={props.onPress}>
        <Text style={{ width: BUTTON_WIDTH, color: props.color, textAlign: props.textAlign}}>
          {props.text}
        </Text>
      </TouchableOpacity>
    );
  }
}

KeyboardButton.propTypes =  {
  color:     PropTypes.string.isRequired,
  onPress:   PropTypes.func.isRequired,
  text:      PropTypes.string.isRequired,
  textAlign: PropTypes.string.isRequired,
};

export default KeyboardButton;<commit_msg>small code styling fixes<commit_after>/**
 * KeyboardButton
 * https://github.com/markuswind/react-native-select-input
 */

import PropTypes from 'prop-types';
import React, { Component } from 'react';

import {
  Dimensions,
  Text,
  TouchableOpacity
} from 'react-native';

const BUTTON_WIDTH = Dimensions.get('window').width * 0.25;

class KeyboardButton extends Component {
  render() {
    let props = this.props;

    return (
      <TouchableOpacity onPress={props.onPress}>
        <Text style={{
            width: BUTTON_WIDTH,
            color: props.color,
            textAlign: props.textAlign
          }}
        >
          {props.text}
        </Text>
      </TouchableOpacity>
    );
  }
}

KeyboardButton.propTypes =  {
  color:     PropTypes.string.isRequired,
  onPress:   PropTypes.func.isRequired,
  text:      PropTypes.string.isRequired,
  textAlign: PropTypes.string.isRequired,
};

export default KeyboardButton;
{'fraction_non_alphanumeric': 0.12121212121212122, 'fraction_numerical': 0.003305785123966942, 'mean_word_length': 3.0355555555555553, 'pattern_counts': {'":': 0, '<': 11, '<?xml version=': 0, '>': 11, 'https://': 2, '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': '3180202', 'n_tokens_mistral': 564, 'n_tokens_neox': 568, 'n_words': 114}