<commit_before>import React, { PropTypes } from 'react';
import { styleClassNames } from './prop-types';

const ComponentCommon = () => {
    return (
        <h1>This component just holds props and default props.</h1>
    );
}

ComponentCommon.propTypes = {
    ...styleClassNames,
    errorMessages: PropTypes.array,
    help: PropTypes.string,
    label: PropTypes.string,
    layout: PropTypes.oneOf(['horizontal', 'vertical', 'elementOnly']),
    showErrors: PropTypes.bool,
    onChange: PropTypes.func,
    onSetValue: PropTypes.func
}

ComponentCommon.defaultProps = {
    onSetValue: () => {},
    onChange: () => {}
}

export default ComponentCommon;<commit_msg>added proptypes needs refractoring later<commit_after>import React, { PropTypes } from 'react';
import { styleClassNames } from './prop-types';

const ComponentCommon = () => {
  return <h1>This component just holds props and default props.</h1>;
};

ComponentCommon.propTypes = {
  ...styleClassNames,
  componentRef: PropTypes.any,
  errorMessages: PropTypes.array,
  getErrorMessage: PropTypes.any,
  getErrorMessages: PropTypes.any,
  getValue: PropTypes.any,
  hasValue: PropTypes.any,
  help: PropTypes.string,
  innerRef: PropTypes.any,
  isFormDisabled: PropTypes.any,
  isFormSubmitted: PropTypes.any,
  isPristine: PropTypes.any,
  isRequired: PropTypes.any,
  isValid: PropTypes.any,
  isValidValue: PropTypes.any,
  label: PropTypes.string,
  layout: PropTypes.oneOf(['horizontal', 'vertical', 'elementOnly']),
  resetValue: PropTypes.any,
  setValidations: PropTypes.any,
  setValue: PropTypes.any,
  showError: PropTypes.any,
  showErrors: PropTypes.bool,
  showRequired: PropTypes.any,

  // // Formsy props we don't use
  validationError: PropTypes.any,
  validationErrors: PropTypes.any,
  validations: PropTypes.any,

  // // HOC refs
  onChange: PropTypes.func,
  onSetValue: PropTypes.func
};

ComponentCommon.defaultProps = {
  onSetValue: () => {},
  onChange: () => {}
};

export default ComponentCommon;
{'fraction_non_alphanumeric': 0.128064032016008, 'fraction_numerical': 0.002001000500250125, 'mean_word_length': 4.2631578947368425, 'pattern_counts': {'":': 0, '<': 7, '<?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': '5506504', 'n_tokens_mistral': 593, 'n_tokens_neox': 625, 'n_words': 138}