<commit_before>import React from 'react';
import PropTypes from 'prop-types';

class Toggleable extends React.PureComponent {
  static propTypes = {
    toggledvalue: PropTypes.node.isRequired,
    value: PropTypes.node.isRequired,
    style: PropTypes.object,
  };

  constructor() {
    super();
    this.state = {
      toggled: true,
    };

    this.handleClick = this.handleClick.bind(this);
  }

  handleClick() {
    this.setState({
      toggled: !this.state.toggled,
    });
  }

  render() {
    const { toggledvalue, value, style, ...others } = this.props;
    return (
      <div onClick={this.handleClick} style={{cursor: 'pointer', ...style }} {...others}>
        {(this.state.toggled) ? toggledvalue : value}
      </div>);
  }
}

export default Toggleable;<commit_msg>changed toggleable to be toggled off by default<commit_after>import React from 'react';
import PropTypes from 'prop-types';

class Toggleable extends React.PureComponent {
  static propTypes = {
    toggledvalue: PropTypes.node.isRequired,
    value: PropTypes.node.isRequired,
    style: PropTypes.object,
  };

  constructor() {
    super();
    this.state = {
      toggled: false,
    };

    this.handleClick = this.handleClick.bind(this);
  }

  handleClick() {
    this.setState({
      toggled: !this.state.toggled,
    });
  }

  render() {
    const { toggledvalue, value, style, ...others } = this.props;
    return (
      <div onClick={this.handleClick} style={{cursor: 'pointer', ...style }} {...others}>
        {(this.state.toggled) ? toggledvalue : value}
      </div>);
  }
}

export default Toggleable;
{'fraction_non_alphanumeric': 0.14561294337274425, 'fraction_numerical': 0.0, 'mean_word_length': 2.9411764705882355, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 7, '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': '6163904', 'n_tokens_mistral': 512, 'n_tokens_neox': 523, 'n_words': 110}