<commit_before>import React from 'react';
import { PropTypes as T } from 'prop-types';

export default function CardDetails({ list, id }) {
  return (
    <dl data-cy={`${id}-card-detail`} className="card__meta-details">
      {list.map((d, i) => (
        <React.Fragment key={i}>
          <dt data-cy={`${id}-card-detail-label`}>{d.label}</dt>
          <dd>{d.value}</dd>
        </React.Fragment>
      ))}
    </dl>
  );
}

CardDetails.propTypes = {
  id: T.string,
  list: T.arrayOf(
    T.shape({
      label: T.string.isRequired,
      value: T.oneOfType([T.string, T.node]).isRequired,
    })
  ).isRequired,
};<commit_msg>Filter nul lvalues<commit_after>import React from 'react';
import { PropTypes as T } from 'prop-types';

export default function CardDetails({ list, id }) {
  return (
    <dl data-cy={`${id}-card-detail`} className="card__meta-details">
      {list.filter(d => d).map((d, i) => (
        <React.Fragment key={i}>
          <dt data-cy={`${id}-card-detail-label`}>{d.label}</dt>
          <dd>{d.value}</dd>
        </React.Fragment>
      ))}
    </dl>
  );
}

CardDetails.propTypes = {
  id: T.string,
  list: T.arrayOf(
    T.shape({
      label: T.string.isRequired,
      value: T.oneOfType([T.string, T.node]).isRequired,
    })
  ).isRequired,
};
{'fraction_non_alphanumeric': 0.19984447900466562, 'fraction_numerical': 0.0, 'mean_word_length': 2.6982758620689653, 'pattern_counts': {'":': 0, '<': 19, '<?xml version=': 0, '>': 22, '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': '129190', 'n_tokens_mistral': 461, 'n_tokens_neox': 466, 'n_words': 85}