<commit_before>const React = require('react');

const { Menu } = require('mx-react-components');

const Markdown = require('components/Markdown');

const MenuDocs = React.createClass({
  getInitialState () {
    return {
      showItems: false
    };
  },

  _handleClick () {
    this.setState({
      showItems: !this.state.showItems
    });
  },

  render () {
    return (
      <div>
        <h1>
          Menu
          <label>A Hambuger menu that displays items</label>
        </h1>

        <h3>Demo</h3>
        <Menu
          isOpen={this.state.showItems}
          items={[
            {
              icon: 'duplicate',
              label: 'Mark as Duplicate',
              onClick: () => {}
            },
            {
              icon: 'no',
              label: 'Mark as Closed',
              onClick: () => {}
            }
          ]}
          onClick={this._handleClick}
        /><commit_msg>More doc and example use<commit_after>const React = require('react');

const { Menu } = require('mx-react-components');

const Markdown = require('components/Markdown');

const MenuDocs = React.createClass({
  getInitialState () {
    return {
      showItems: false
    };
  },

  _handleClick () {
    this.setState({
      showItems: !this.state.showItems
    });
  },

  render () {
    return (
      <div>
        <h1>
          Menu
          <label>A Hambuger menu that displays items</label>
        </h1>

        <h3>Demo</h3>
        <Menu
          isOpen={this.state.showItems}
          items={[
            {
              icon: 'duplicate',
              label: 'Item1',
              onClick: () => {}
            },
            {
              icon: 'no',
              label: 'Item2',
              onClick: () => {}
            },
            {
              icon: 'accounts',
              label: 'Item3',
              onClick: () => {}
            }
          ]}
          onClick={this._handleClick}
        />
{'fraction_non_alphanumeric': 0.13898824731732243, 'fraction_numerical': 0.005620848237097598, 'mean_word_length': 1.3393070489844683, 'pattern_counts': {'":': 0, '<': 19, '<?xml version=': 0, '>': 24, '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': '7559530', 'n_tokens_mistral': 564, 'n_tokens_neox': 562, 'n_words': 107}