<commit_before>import React from 'react';
import { RadioGroup, RadioButton } from '../../components/radio';

class RadioGroupTest extends React.Component {
  state = {
    stringValue: 'vvendetta',
    booleanValue: false,
  };

  handleStringChange = (value) => {
    console.log('Changed the string value!', { stringValue: value });
    this.setState({ stringValue: value });
  };

  handleBooleanChange = (value) => {
    console.log('Changed the boolean value!', { booleanValue: value });
    this.setState({ booleanValue: value });
  };

  handleFocus = () => {
    console.log('Focused V for a Vendetta');
  };

  handleBlur = () => {
    console.log('Blurred Watchmen');
  };

  render () {
    return (
      <article>
        <header>
          <h1>Radio Button</h1>
        </header>

        <div className="component-spec">
          <div className="preview">
            <h3>Preview</h3>
            <h4>String example</h4>
            <RadioGroup name="stringValue" value={this.state.stringValue} onChange={this.handleStringChange}>
              <RadioButton label="The Walking Dead" value="thewalkingdead" />
              <RadioButton label="From Hell" value="fromhell" disabled />
              <RadioButton label="V for a Vendetta" value="vvendetta" onFocus={this.handleFocus} />
              <RadioButton label="Watchmen" value="watchmen" onBlur={this.handleBlur} />
            </RadioGroup>

            <h4>Boolean example</h4>
            <RadioGroup name="booleanValue" value={this.state.booleanValue} onChange={this.handleBooleanChange}>
              <RadioButton label="True" value={true} />
              <RadioButton label="False" value={false} />
            </RadioGroup>
          </div>
        </div>
      </article>
    );
  }
}

export default RadioGroupTest;<commit_msg>Lint fixes<commit_after>import React from 'react';
import { RadioGroup, RadioButton } from '../../components/radio';

class RadioGroupTest extends React.Component {
  state = {
    stringValue: 'vvendetta',
    booleanValue: false,
  };

  handleStringChange = (value) => {
    console.log('Changed the string value!', { stringValue: value });
    this.setState({ stringValue: value });
  };

  handleBooleanChange = (value) => {
    console.log('Changed the boolean value!', { booleanValue: value });
    this.setState({ booleanValue: value });
  };

  handleFocus = () => {
    console.log('Focused V for a Vendetta');
  };

  handleBlur = () => {
    console.log('Blurred Watchmen');
  };

  render () {
    return (
      <article>
        <header>
          <h1>Radio Button</h1>
        </header>

        <div className="component-spec">
          <div className="preview">
            <h3>Preview</h3>
            <h4>String example</h4>
            <RadioGroup name="stringValue" value={this.state.stringValue} onChange={this.handleStringChange}>
              <RadioButton label="The Walking Dead" value="thewalkingdead" />
              <RadioButton label="From Hell" value="fromhell" disabled />
              <RadioButton label="V for a Vendetta" value="vvendetta" onFocus={this.handleFocus} />
              <RadioButton label="Watchmen" value="watchmen" onBlur={this.handleBlur} />
            </RadioGroup>

            <h4>Boolean example</h4>
            <RadioGroup name="booleanValue" value={this.state.booleanValue} onChange={this.handleBooleanChange}>
              <RadioButton label="True" value />
              <RadioButton label="False" value={false} />
            </RadioGroup>
          </div>
        </div>
      </article>
    );
  }
}

export default RadioGroupTest;
{'fraction_non_alphanumeric': 0.1448753462603878, 'fraction_numerical': 0.00443213296398892, 'mean_word_length': 2.5823412698412698, 'pattern_counts': {'":': 0, '<': 55, '<?xml version=': 0, '>': 63, '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': '2193775', 'n_tokens_mistral': 1029, 'n_tokens_neox': 1018, 'n_words': 216}