<commit_before>import React, { PropTypes } from 'react';
import DataChannelCard from '../DataChannelCard';

const withDataChannelCard = (BaseComponent, displayName) => {
  const WrapperComponent = ({ childrenProps, ...otherProps }) =>
    <DataChannelCard {...otherProps}>
      <BaseComponent {...childrenProps} />
    </DataChannelCard>;

  WrapperComponent.displayName = displayName || `withDataChannelCard(${BaseComponent.displayName})`;
  WrapperComponent.propTypes = {
    childrenProps: PropTypes.shape(BaseComponent.propTypes),
  };

  WrapperComponent.defaultProps = {
    childrenProps: BaseComponent.defaultProps,
  };<commit_msg>fix(HOC): give default value (#43)<commit_after>import React, { PropTypes } from 'react';
import DataChannelCard from '../DataChannelCard';

const withDataChannelCard = (BaseComponent, displayName = '') => {
  const WrapperComponent = ({ childrenProps, ...otherProps }) =>
    <DataChannelCard {...otherProps}>
      <BaseComponent {...childrenProps} />
    </DataChannelCard>;

  WrapperComponent.displayName = displayName || `withDataChannelCard(${BaseComponent.displayName})`;
  WrapperComponent.propTypes = {
    childrenProps: PropTypes.shape(BaseComponent.propTypes),
  };

  WrapperComponent.defaultProps = {
    childrenProps: BaseComponent.defaultProps,
  };
{'fraction_non_alphanumeric': 0.1353211009174312, 'fraction_numerical': 0.0015290519877675841, 'mean_word_length': 4.9771689497716896, 'pattern_counts': {'":': 0, '<': 9, '<?xml version=': 0, '>': 13, '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': '524650', 'n_tokens_mistral': 358, 'n_tokens_neox': 348, 'n_words': 66}