<commit_before>import { linkEvent } from 'inferno';
import Component from 'inferno-component';

class PlayerDetails extends Component {
    constructor (props) {
        super(props);

        this.state = {
            level: 1,
            gear: 0,
            playerName: ''
        }
    }

    _levelUpHandler (instance) {
        instance.setState((prevState) => {
            if (prevState.level > 9) {
                return null;
            }
            return {
                level: prevState.level + 1
            };
        });
    }

    _levelDownHandler (instance) {
        instance.setState((prevState) => {<commit_msg>test commit<commit_after>import { linkEvent } from 'inferno';
import Component from 'inferno-component';

class PlayerDetails extends Component {
    constructor (props) {
        super(props);

        this.state = {
            level: 1,
            gear: 0,
            playerName: null
        }
    }

    _levelUpHandler (instance) {
        instance.setState((prevState) => {
            if (prevState.level > 9) {
                return null;
            }
            return {
                level: prevState.level + 1
            };
        });
    }

    _levelDownHandler (instance) {
        instance.setState((prevState) => {
{'fraction_non_alphanumeric': 0.1046875, 'fraction_numerical': 0.00625, 'mean_word_length': 1.5316205533596838, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 9, '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': '2862457', 'n_tokens_mistral': 354, 'n_tokens_neox': 337, 'n_words': 74}