<commit_before>import appendQuery from 'append-query';
import React from 'react';
import PropTypes from 'prop-types';
import { connect } from 'react-redux';
import { registerBeta } from '../actions';
import AlertBox from '@department-of-veterans-affairs/formation-react/AlertBox';
import { createIsServiceAvailableSelector } from '../../../platform/user/selectors';

class BetaEnrollmentButton extends React.Component {
  static propTypes = {
    feature: PropTypes.string.isRequired,
    returnUrl: PropTypes.string.isRequired,
    buttonText: PropTypes.string,
  };

  static defaultProps = {
    buttonText: 'Turn On Beta Tools',
  };

  constructor(props) {
    // Using state instead of props for error handling, because there isn't a place to store errors
    // in the Redux user/profile store, and I chose not to clutter that up with something that is unlikely to be used.
    super(props);<commit_msg>change button label from Title Case to Sentence case (#9985)<commit_after>import appendQuery from 'append-query';
import React from 'react';
import PropTypes from 'prop-types';
import { connect } from 'react-redux';
import { registerBeta } from '../actions';
import AlertBox from '@department-of-veterans-affairs/formation-react/AlertBox';
import { createIsServiceAvailableSelector } from '../../../platform/user/selectors';

class BetaEnrollmentButton extends React.Component {
  static propTypes = {
    feature: PropTypes.string.isRequired,
    returnUrl: PropTypes.string.isRequired,
    buttonText: PropTypes.string,
  };

  static defaultProps = {
    buttonText: 'Turn on beta tools',
  };

  constructor(props) {
    // Using state instead of props for error handling, because there isn't a place to store errors
    // in the Redux user/profile store, and I chose not to clutter that up with something that is unlikely to be used.
    super(props);
{'fraction_non_alphanumeric': 0.10230316014997322, 'fraction_numerical': 0.0021424745581146223, 'mean_word_length': 4.131868131868132, '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': '533694', 'n_tokens_mistral': 509, 'n_tokens_neox': 502, 'n_words': 180}