<commit_before>import PropTypes, { oneOfType } from 'prop-types';

export const TypeInfo = oneOfType([
  PropTypes.shape({
    name: PropTypes.string,
    value: PropTypes.any,
  }),
  PropTypes.string,
]);

export const getPropTypes = propType => propType.value || propType.elements;<commit_msg>fix check for getPropTypes<commit_after>import PropTypes, { oneOfType } from 'prop-types';

export const TypeInfo = oneOfType([
  PropTypes.shape({
    name: PropTypes.string,
    value: PropTypes.any,
  }),
  PropTypes.string,
]);

export const getPropTypes = propType => typeof propType === 'String' ? propType : propType.value || propType.elements;
{'fraction_non_alphanumeric': 0.12828438948995363, 'fraction_numerical': 0.0, 'mean_word_length': 4.734513274336283, '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': '4431640', 'n_tokens_mistral': 191, 'n_tokens_neox': 199, 'n_words': 48}