<commit_before>import React, { Component } from 'react';
import { Form, Text, Checkbox, Select } from 'react-formalize';

const mock = {
    title: 'Hello World'
};

export default class App extends Component {

    handleSubmit(data) {
        alert(JSON.stringify(data));
    }

    render() {
        return (
            <div>
                <h1>Simple example</h1>
                <Form data={mock} onSubmit={this.handleSubmit}>
                    <div>
                        <label>Title</label>
                        <Text name="title"/>
                    </div>
                    <div>
                        <label>Description</label>
                        <Text name="description"/>
                    </div>
                    <div>
                        <label>Publish</label>
                        <Checkbox name="publish"/> publish this post
                    </div>
                    <div>
                        <label>Category</label>
                        <Select name="category">
                            <option value="news">News</option>
                            <option value="foo">Foo</option>
                        </Select><commit_msg>Updated examples<commit_after>import React, { Component } from 'react';
import { Form, Text, Checkbox, Select, RadioGroup } from 'react-formalize';

const mock = {
    title: 'Hello World'
};

export default class App extends Component {

    handleSubmit(data) {
        alert(JSON.stringify(data));
    }

    render() {
        return (
            <div>
                <h1>Simple example</h1>
                <Form data={mock} onSubmit={this.handleSubmit}>
                    <div>
                        <label>Title</label>
                        <Text name="title"/>
                    </div>
                    <div>
                        <label>Description</label>
                        <Text name="description"/>
                    </div>
                    <div>
                        <label>Category</label>
                        <Select name="category">
                            <option value="news">News</option>
                            <option value="sport">Sport</option>
                        </Select>
                    </div>
                    <div>
                        <label>Publish</label>
                        <Checkbox name="publish"/> publish this post
                    </div>
                    <div>
                        <label>Public</label>
                        <RadioGroup name="public">
                            {Radio => (
                                <div>
                                    <Radio value="true"/> public
                                    <Radio value="false"/> private
                                </div>
                            )}
                        </RadioGroup>
{'fraction_non_alphanumeric': 0.10852173913043478, 'fraction_numerical': 0.001391304347826087, 'mean_word_length': 0.9289067739771966, 'pattern_counts': {'":': 0, '<': 69, '<?xml version=': 0, '>': 70, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 2, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '7227994', 'n_tokens_mistral': 664, 'n_tokens_neox': 609, 'n_words': 136}