<commit_before>export default function getList(data, orm, inputValue) {
    let retVal = [];
    if (Array.isArray(orm.groups)) {
        orm.groups.forEach(({ key, show }) => {
            if (!(typeof show === 'function' && !show(inputValue))) {
                const list = data[key];
                retVal = retVal.concat(list);
            }
        });
    } else {
        Object.keys(data)
            .forEach((key) => {
                const list = data[key];
                retVal = retVal.concat(list);
            });
    }
    return retVal;
}
<commit_msg>:bug: Fix bug that personFinder used unfiltered list<commit_after>import { isFunction } from '../../utils/is';

export default function getList(data, orm, inputValue) {
    let retVal = [];
    if (Array.isArray(orm.groups)) {
        orm.groups.forEach(({ key, show }) => {
            if (!(isFunction(show) && !show(inputValue) && (!isFunction(orm.filter) || orm.filter(inputValue)))) {
                const list = data[key];
                retVal = retVal.concat(list);
            }
        });
    } else {
        Object.keys(data)
            .forEach((key) => {
                if (!isFunction(orm.filter) || orm.filter(inputValue)) {
                    const list = data[key];
                    retVal = retVal.concat(list);
                }
            });
    }
    return retVal;
}

{'fraction_non_alphanumeric': 0.15222141296431171, 'fraction_numerical': 0.0, 'mean_word_length': 1.6783625730994152, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 7, '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': '6030105', 'n_tokens_mistral': 400, 'n_tokens_neox': 390, 'n_words': 80}