<commit_before>package app.hongs.util.verify;

import app.hongs.util.Synt;
import java.util.Arrays;
import java.util.Collection;
import java.util.Map;

/**
 * 多值约束
 * @author Hongs
 */
public class Repeated extends Rule {
    @Override
    public Object verify(Object value) throws Wrong {
        if (value == null) {
            return new Object[0];
        }
        // 字符串则检查是否要拆分
        if (value instanceof String/**/) {
            String s = Synt.declare(params.get("split"), "");<commit_msg>对可重复值的字段校验, 增加字符串拆分规则<commit_after>package app.hongs.util.verify;

import app.hongs.util.Synt;
import java.util.Arrays;
import java.util.Collection;
import java.util.Map;

/**
 * 多值约束
 * @author Hongs
 */
public class Repeated extends Rule {
    @Override
    public Object verify(Object value) throws Wrong {
        if (value == null) {
            return new Object[0];
        }
        if (value instanceof String/**/) {
            String s = Synt.declare(params.get("split"), "");
{'fraction_non_alphanumeric': 0.12841253791708795, 'fraction_numerical': 0.0020222446916076846, 'mean_word_length': 2.6666666666666665, 'pattern_counts': {'":': 0, '<': 3, '<?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': '6814396', 'n_tokens_mistral': 332, 'n_tokens_neox': 347, 'n_words': 78}