<commit_before>import React from 'react'
import { Checkbox, FormField, Input } from 'bonde-styleguide'
import { translate } from 'services/i18n'

class PasswordField extends React.Component {

  state = { showPassword: false }

  render () {
    const { showPassword } = this.state
    const { t, ...props } = this.props

    return (
      <React.Fragment>
        <FormField
          type={!showPassword ? 'password' : 'text'}
          placeholder='******'
          inputComponent={Input}
          {...props}
        />
        {props.input.value && props.input.value.length > 0 && (
          <Checkbox
            checked={showPassword}
            onChange={() => this.setState({ showPassword: !showPassword })}
          >
            {t('links.showPassword')}
          </Checkbox>
        )}<commit_msg>chore(admin-canary): change pattern to placeholder on PasswordField<commit_after>import React from 'react'
import { Checkbox, FormField, Input } from 'bonde-styleguide'
import { translate } from 'services/i18n'

class PasswordField extends React.Component {

  state = { showPassword: false }

  render () {
    const { showPassword } = this.state
    const { t, ...props } = this.props

    return (
      <React.Fragment>
        <FormField
          type={!showPassword ? 'password' : 'text'}
          placeholder='&#9679;&#9679;&#9679;&#9679;&#9679;'
          inputComponent={Input}
          {...props}
        />
        {props.input.value && props.input.value.length > 0 && (
          <Checkbox
            checked={showPassword}
            onChange={() => this.setState({ showPassword: !showPassword })}
          >
            {t('links.showPassword')}
          </Checkbox>
        )}
{'fraction_non_alphanumeric': 0.14185639229422067, 'fraction_numerical': 0.015178050204319907, 'mean_word_length': 2.2339622641509433, 'pattern_counts': {'":': 0, '<': 11, '<?xml version=': 0, '>': 15, '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': '5939109', 'n_tokens_mistral': 501, 'n_tokens_neox': 481, 'n_words': 104}