<commit_before>module.exports = (React, { model }) => {
  const { TouchableWithoutFeedback, View } = React;

  const MenuTrigger = React.createClass({
    displayName: 'MenuTrigger',
    propTypes: {
      disabled: React.PropTypes.bool
    },
    getDefaultProps() {
      return {disabled: false}
    },
    contextTypes: {
      menuController: model.IMenuController,
      getClosestMenuName: React.PropTypes.func.isRequired
    },
    onPress() {
      const { menuController, getClosestMenuName } = this.context;
      menuController.toggle(getClosestMenuName());
    },
    render() {
      const { disabled, ...rest } = this.props;
      const Container = disabled ? View : TouchableWithoutFeedback;
      return (
        <Container onPress={this.onPress} {...rest}>
          <View style={this.props.style}>
            { this.props.children }
          </View>
        </Container>
      );<commit_msg>uses TouchableWithoutFeedback when menu is disabled as well, to keep layout consistent<commit_after>module.exports = (React, { model }) => {
  const { TouchableWithoutFeedback, View } = React;

  const MenuTrigger = React.createClass({
    displayName: 'MenuTrigger',
    propTypes: {
      disabled: React.PropTypes.bool
    },
    getDefaultProps() {
      return {disabled: false}
    },
    contextTypes: {
      menuController: model.IMenuController,
      getClosestMenuName: React.PropTypes.func.isRequired
    },
    onPress() {
      if (!this.props.disabled) {
        const { menuController, getClosestMenuName } = this.context;
        menuController.toggle(getClosestMenuName());
      }
    },
    render() {
      return (
        <TouchableWithoutFeedback onPress={this.onPress} {...this.props}>
          <View style={this.props.style}>
            { this.props.children }
          </View>
        </TouchableWithoutFeedback>
      );
{'fraction_non_alphanumeric': 0.12225201072386059, 'fraction_numerical': 0.0, 'mean_word_length': 2.616279069767442, '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': '4483571', 'n_tokens_mistral': 534, 'n_tokens_neox': 533, 'n_words': 102}