<commit_before>package pl.grzeslowski.jsupla.protocol.common.randomizers.sdc;

import io.github.benas.randombeans.api.Randomizer;
import pl.grzeslowski.jsupla.protocol.api.structs.sdc.SuplaVersionError;
import pl.grzeslowski.jsupla.protocol.common.RandomBean;

public class SuplaVersionErrorRandomizer implements Randomizer<SuplaVersionError> {
    private final RandomBean randomBean;

    public SuplaVersionErrorRandomizer(final RandomBean randomBean) {
        this.randomBean = randomBean;
    }

    @Override
    public SuplaVersionError getRandomValue() {
        return new SuplaVersionError(
                                            randomBean.nextUnsignedByte(),
                                            randomBean.nextUnsignedByte()

        );
    }
}<commit_msg>Version min needs to be smaller than version<commit_after>package pl.grzeslowski.jsupla.protocol.common.randomizers.sdc;

import io.github.benas.randombeans.api.Randomizer;
import pl.grzeslowski.jsupla.protocol.api.structs.sdc.SuplaVersionError;
import pl.grzeslowski.jsupla.protocol.common.RandomBean;

public class SuplaVersionErrorRandomizer implements Randomizer<SuplaVersionError> {
    private final RandomBean randomBean;

    public SuplaVersionErrorRandomizer(final RandomBean randomBean) {
        this.randomBean = randomBean;
    }

    @Override
    public SuplaVersionError getRandomValue() {
        final short serverVersion = randomBean.nextUnsignedByte();
        final short serverVersionMin = randomBean.nextUnsignedByte(serverVersion);
        return new SuplaVersionError(
                                            serverVersionMin,
                                            serverVersion

        );
    }
}
{'fraction_non_alphanumeric': 0.06876456876456877, 'fraction_numerical': 0.0, 'mean_word_length': 2.8497757847533634, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 8, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '2410996', 'n_tokens_mistral': 468, 'n_tokens_neox': 460, 'n_words': 79}