<commit_before>import { Component } from 'react'
import PropTypes from 'prop-types'

export default class CozyProvider extends Component {
  static propTypes = {
    domain: PropTypes.string,
    secure: PropTypes.boolean,
    store: PropTypes.shape({
      subscribe: PropTypes.func.isRequired,
      dispatch: PropTypes.func.isRequired,
      getState: PropTypes.func.isRequired
    }),
    client: PropTypes.object.isRequired,
    children: PropTypes.element.isRequired
  }

  static childContextTypes = {
    store: PropTypes.object,
    client: PropTypes.object.isRequired
  }

  static contextTypes = {
    store: PropTypes.object
  }

  getChildContext() {
    return {
      domain: this.props.domain,
      secure: this.props.secure,
      store: this.props.store || this.context.store,
      client: this.props.client
    }
  }

  render() {
    return (this.props.children && this.props.children[0]) || null
  }
}
<commit_msg>fix: :bug: Fix custom CozyProvider proptypes issues<commit_after>import { Component } from 'react'
import PropTypes from 'prop-types'

export default class CozyProvider extends Component {
  static propTypes = {
    domain: PropTypes.string,
    secure: PropTypes.bool,
    store: PropTypes.shape({
      subscribe: PropTypes.func.isRequired,
      dispatch: PropTypes.func.isRequired,
      getState: PropTypes.func.isRequired
    }),
    client: PropTypes.object.isRequired,
    children: PropTypes.element.isRequired
  }

  static childContextTypes = {
    domain: PropTypes.string,
    secure: PropTypes.bool,
    store: PropTypes.object,
    client: PropTypes.object.isRequired
  }

  static contextTypes = {
    store: PropTypes.object
  }

  getChildContext() {
    return {
      domain: this.props.domain,
      secure: this.props.secure,
      store: this.props.store || this.context.store,
      client: this.props.client
    }
  }

  render() {
    return (this.props.children && this.props.children[0]) || null
  }
}

{'fraction_non_alphanumeric': 0.10726995424504321, 'fraction_numerical': 0.0010167768174885613, 'mean_word_length': 3.1257861635220126, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, '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': '5775221', 'n_tokens_mistral': 572, 'n_tokens_neox': 588, 'n_words': 126}