<commit_before>import React from 'react';
import PropTypes from 'prop-types';
import css from './KeyValue.css';

const propTypes = {
  label: PropTypes.string,
  value: PropTypes.oneOfType([
    PropTypes.arrayOf(PropTypes.node),
    PropTypes.node,
  ]),
};

function KeyValue(props) {
  return (
    <div className={css.kvRoot}>
      <div className={css.kvLabel}>{props.label}</div>
      <div className={css.kvValue}>{props.value}</div>
    </div>
  );
}

KeyValue.propTypes = propTypes;

export default KeyValue;
<commit_msg>KeyValue label prop accepts node<commit_after>import React from 'react';
import PropTypes from 'prop-types';
import css from './KeyValue.css';

const propTypes = {
  label: PropTypes.node,
  value: PropTypes.oneOfType([
    PropTypes.arrayOf(PropTypes.node),
    PropTypes.node,
  ]),
};

function KeyValue(props) {
  return (
    <div className={css.kvRoot}>
      <div className={css.kvLabel}>{props.label}</div>
      <div className={css.kvValue}>{props.value}</div>
    </div>
  );
}

KeyValue.propTypes = propTypes;

export default KeyValue;

{'fraction_non_alphanumeric': 0.15041782729805014, 'fraction_numerical': 0.0, 'mean_word_length': 4.061032863849765, 'pattern_counts': {'":': 0, '<': 15, '<?xml version=': 0, '>': 15, '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': '779310', 'n_tokens_mistral': 348, 'n_tokens_neox': 355, 'n_words': 74}