<commit_before>var React = require('react');
var mui = require('mui');
var Classable = mui.Mixins.Classable;
var CodeExample = require('./code-example/code-example.jsx');
var ComponentInfo = require('./component-info.jsx');

var ComponentDoc = React.createClass({

  mixins: [Classable],

  propTypes: {
    code: React.PropTypes.string.isRequired,
    desc: React.PropTypes.string,
    name: React.PropTypes.string.isRequired,
    componentInfo: React.PropTypes.array.isRequired
  },

  render: function() {
    var classes = this.getClasses("component-doc");

    var componentInfo = this.props.componentInfo.map(function(info, i) {
      return (
        <ComponentInfo
          key={i}
          name={info.name}
          infoArray={info.infoArray} />
      );
    });

    var desc = null;
<commit_msg>Fixes warning displayed in doc/example about invalid prop type.<commit_after>var React = require('react');
var mui = require('mui');
var Classable = mui.Mixins.Classable;
var CodeExample = require('./code-example/code-example.jsx');
var ComponentInfo = require('./component-info.jsx');

var ComponentDoc = React.createClass({

  mixins: [Classable],

  propTypes: {
    code: React.PropTypes.string.isRequired,
    desc: React.PropTypes.oneOfType([
        React.PropTypes.string,
        React.PropTypes.element
    ]),
    name: React.PropTypes.string.isRequired,
    componentInfo: React.PropTypes.array.isRequired
  },

  render: function() {
    var classes = this.getClasses("component-doc");

    var componentInfo = this.props.componentInfo.map(function(info, i) {
      return (
        <ComponentInfo
          key={i}
          name={info.name}
          infoArray={info.infoArray} />
      );
    });

    var desc = null;

{'fraction_non_alphanumeric': 0.13704128440366972, 'fraction_numerical': 0.0, 'mean_word_length': 3.1547619047619047, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, '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': '3387713', 'n_tokens_mistral': 533, 'n_tokens_neox': 523, 'n_words': 102}