<commit_before>import React from 'react';

const CreateFormHeader = () => {
    const discard = () => {
        window.history.back();
    };

    return (
        <header className="challenge-create__header">
            <h1 className="challenge-create__title">Create Challenge</h1>

            <button className="challenge-create__discard" type="button" onClick={ discard }>
                Discard
            </button>

            <button className="challenge-create__post" type="submit">
                Post
            </button>

        </header>
    );
};

<commit_msg>Create header refactoring of classes<commit_after>import React from 'react';

const CreateFormHeader = () => {
    const discard = () => {
        window.history.back();
    };

    return (
        <header className="challenge-create-header">
            <h1 className="challenge-create-header__title">Create Challenge</h1>

            <button className="challenge-create-header__discard" type="button" onClick={ discard }>
                Discard
            </button>

            <button className="challenge-create-header__post" type="submit">
                Post
            </button>
        </header>
    );
};


{'fraction_non_alphanumeric': 0.1281198003327787, 'fraction_numerical': 0.0033277870216306157, 'mean_word_length': 2.116580310880829, 'pattern_counts': {'":': 0, '<': 19, '<?xml version=': 0, '>': 23, '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': '5010419', 'n_tokens_mistral': 334, 'n_tokens_neox': 301, 'n_words': 60}