<commit_before>class Demo extends React.Component {
    render() {
        $.ajax({
            url: "/index.html",
            success: function(data){alert(data);}
        });
        return (
            <div>
                <h1>Hello World</h1>
                <p>What's up</p>
            </div>
        );
    }
}

ReactDOM.render(
    <Demo />,
    document.getElementById('root')
);<commit_msg>post requests<commit_after>class Demo extends React.Component {
    render() {
        $.ajax({
            url: "/user/new",
            data: JSON.stringify({
                name: "neil"
            }),
            contentType: "application/json",
            processData: false,
            method: "POST",
            success: function(data){console.log(data);}
        });
        return (
            <div>
                <h1>Hello World</h1>
                <p>What's up</p>
            </div>
        );
    }
}

ReactDOM.render(
    <Demo />,
    document.getElementById('root')
);
{'fraction_non_alphanumeric': 0.1487437185929648, 'fraction_numerical': 0.004020100502512563, 'mean_word_length': 1.3380281690140845, 'pattern_counts': {'":': 0, '<': 17, '<?xml version=': 0, '>': 17, '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': '2820745', 'n_tokens_mistral': 294, 'n_tokens_neox': 286, 'n_words': 51}