<commit_before>import PropTypes from 'prop-types'
import React, { PureComponent } from 'react'

export default class Options extends PureComponent {
  static propTypes = {
    children: PropTypes.node,
    onChange: PropTypes.func.isRequired,
    possiblePasswords: PropTypes.func.isRequired
  }

  componentDidMount = this.change
  componentDidUpdate = this.change

  change () {
    this.props.onChange(this.props.possiblePasswords())
  }

  render () {<commit_msg>Add a missing isRequired<commit_after>import PropTypes from 'prop-types'
import React, { PureComponent } from 'react'

export default class Options extends PureComponent {
  static propTypes = {
    children: PropTypes.node.isRequired,
    onChange: PropTypes.func.isRequired,
    possiblePasswords: PropTypes.func.isRequired
  }

  componentDidMount = this.change
  componentDidUpdate = this.change

  change () {
    this.props.onChange(this.props.possiblePasswords())
  }

  render () {
{'fraction_non_alphanumeric': 0.09309623430962342, 'fraction_numerical': 0.0, 'mean_word_length': 4.287292817679558, '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': '6386515', 'n_tokens_mistral': 272, 'n_tokens_neox': 271, 'n_words': 63}