<commit_before>/**
 * @jsx React.DOM
 */
 
var React = require('react'),
  Classable = require('./mixins/classable.js'),
  Icon = require('./icon.jsx'),
  Menu = require('./menu.jsx');

var MenuNestedItem = React.createClass({

	mixins: [Classable],

  propTypes: {
    key: React.PropTypes.number.isRequired,
    menuItems: React.PropTypes.array.isRequired,
    onClick: React.PropTypes.func.isRequired,
    selected: React.PropTypes.bool
  },

  getDefaultProps: function() {
    return { 
      Mark: sux
    };
  },

  render: function() {
    var classes = this.getClasses('mui-nested', {
      //'mui-icon': this.props.icon != null
    });

    return (
    	<div key={this.props.key} className={classes} onClick={this._onClick}>
        {this.props.children}
        <Menu menuItems={this.props.menuItems} zDepth={1} />
      </div>
    );
  },

  _onClick: function(e) {
    if (this.props.onClick) this.props.onClick(e, this.props.key);
  },

});

module.exports = MenuNestedItem;<commit_msg>Remove test code from nested menu item<commit_after>/**
 * @jsx React.DOM
 */
 
var React = require('react'),
  Classable = require('./mixins/classable.js'),
  Icon = require('./icon.jsx'),
  Menu = require('./menu.jsx');

var MenuNestedItem = React.createClass({

	mixins: [Classable],

  propTypes: {
    key: React.PropTypes.number.isRequired,
    menuItems: React.PropTypes.array.isRequired,
    onClick: React.PropTypes.func.isRequired,
    selected: React.PropTypes.bool
  },

  getDefaultProps: function() {
    return { 
    };
  },

  render: function() {
    var classes = this.getClasses('mui-nested', {
      //'mui-icon': this.props.icon != null
    });

    return (
    	<div key={this.props.key} className={classes} onClick={this._onClick}>
        {this.props.children}
        <Menu menuItems={this.props.menuItems} zDepth={1} />
      </div>
    );
  },

  _onClick: function(e) {
    if (this.props.onClick) this.props.onClick(e, this.props.key);
  },

});

module.exports = MenuNestedItem;
{'fraction_non_alphanumeric': 0.16956737941322725, 'fraction_numerical': 0.000994530084535057, 'mean_word_length': 3.032064128256513, 'pattern_counts': {'":': 0, '<': 9, '<?xml version=': 0, '>': 9, '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': '81881', 'n_tokens_mistral': 693, 'n_tokens_neox': 677, 'n_words': 117}