<commit_before>import _ from "lodash";
import React from "react";

/**
 * Store the parameter values on the returned
 * validator functions so that external tools
 * (such the UIHarness) can display the values.
 */
const PropTypes = _.clone(React.PropTypes);


PropTypes.oneOf = (enumValues) => {
  const result = React.PropTypes.oneOf(enumValues);
  result.oneOf = enumValues;
  result.isRequired.oneOf = enumValues;
  return result;<commit_msg>NUMBER_OR_STRING constant.<commit_after>import _ from "lodash";
import React from "react";

const PropTypes = _.clone(React.PropTypes);
PropTypes.NUMBER_OR_STRING = PropTypes.oneOfType([
  React.PropTypes.number,
  React.PropTypes.string
]);


/**
 * Store the parameter values on the returned
 * validator functions so that external tools
 * (such the UIHarness) can display the values.
 */

PropTypes.oneOf = (enumValues) => {
  const result = React.PropTypes.oneOf(enumValues);
  result.oneOf = enumValues;
  result.isRequired.oneOf = enumValues;
  return result;
{'fraction_non_alphanumeric': 0.1067193675889328, 'fraction_numerical': 0.0, 'mean_word_length': 4.691011235955056, 'pattern_counts': {'":': 0, '<': 3, '<?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': '7424342', 'n_tokens_mistral': 304, 'n_tokens_neox': 305, 'n_words': 86}