<commit_before>package com.es.lib.common.validation.bik;

import com.es.lib.common.validation.BadLengthException;
import com.es.lib.common.validation.BadValueException;

public class BikValidatorUtil {

    public static void validate(String value) throws BadValueException, BadLengthException {
        if (value == null || value.length() != 9) {
            throw new BadLengthException();
        }
        if (!value.matches("\\d{9}")) {
            throw new BadValueException();
        }
        int val = Integer.parseInt(value.substring(0, 2));
        if (val != 4) {
            throw new BadValueException();
        }
        val = Integer.parseInt(value.substring(6));
        if (val <= 50) {
            throw new BadValueException();
        }
    }
}<commit_msg>Add bik validator util<commit_after>package com.es.lib.common.validation.bik;

import com.es.lib.common.validation.BadLengthException;
import com.es.lib.common.validation.BadValueException;

public class BikValidatorUtil {

    public static void validate(String value) throws BadValueException, BadLengthException {
        if (value == null || value.length() != 9) {
            throw new BadLengthException();
        }
        if (!value.matches("\\d{9}")) {
            throw new BadValueException();
        }
        int val = Integer.parseInt(value.substring(0, 2));
        if (val != 4) {
            throw new BadValueException();
        }
        val = Integer.parseInt(value.substring(6));
        if (val < 50) {
            throw new BadValueException();
        }
    }
}
{'fraction_non_alphanumeric': 0.12181122448979592, 'fraction_numerical': 0.01020408163265306, 'mean_word_length': 2.4108695652173915, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 3, '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': '5937029', 'n_tokens_mistral': 442, 'n_tokens_neox': 432, 'n_words': 99}