<commit_before>import React from 'react';
import {shallow, mount} from 'enzyme';
import RadioGroup from './RadioGroup';

const radioGroupDriverFactory = component => ({
  component: () => component,
  selectByValue: value => component.find(`input[type='radio'][value=${value}]`).simulate('change', value),
  getSelectedValue: () => component.props().value,
  exists: () => component.find('input').length > 1,
  radioAt: index => component.find('input').at(index),
  labelAt: index => component.childAt(index).find('label'),
  allRadios: () => component.children().find('input')
});

const componentFactory = options => {
  const createShallow = (props = {}) => {
    return shallow(
      <RadioGroup {...props}>
        {options.map((props, index) => <RadioGroup.Radio key={index} {...props}/>)}
      </RadioGroup>
    );<commit_msg>fixed find method<commit_after>import React from 'react';
import {shallow, mount} from 'enzyme';
import RadioGroup from './RadioGroup';

const radioGroupDriverFactory = component => ({
  component: () => component,
  selectByValue: value => component.find(`input[value=${value.toString()}]`).simulate('change', value),
  getSelectedValue: () => component.props().value,
  exists: () => component.find('input').length > 1,
  radioAt: index => component.find('input').at(index),
  labelAt: index => component.childAt(index).find('label'),
  allRadios: () => component.children().find('input')
});

const componentFactory = options => {
  const createShallow = (props = {}) => {
    return shallow(
      <RadioGroup {...props}>
        {options.map((props, index) => <RadioGroup.Radio key={index} {...props}/>)}
      </RadioGroup>
    );
{'fraction_non_alphanumeric': 0.19628964691801318, 'fraction_numerical': 0.0011968880909634949, 'mean_word_length': 4.648648648648648, 'pattern_counts': {'":': 0, '<': 9, '<?xml version=': 0, '>': 33, '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': '4105730', 'n_tokens_mistral': 486, 'n_tokens_neox': 484, 'n_words': 104}