<commit_before>'use strict';

let important = node => node.important;
let unimportant = node => !node.important;
let hasInherit = node => ~node.value.indexOf('inherit');

export default (...props) => {
    if (props.some(hasInherit)) {
        return false;
    }
    return props.every(important) || props.every(unimportant);
};
<commit_msg>Fix a crash on missing node.value.<commit_after>'use strict';

let important = node => node.important;
let unimportant = node => !node.important;
let hasInherit = node => node.value && ~node.value.indexOf('inherit');

export default (...props) => {
    if (props.some(hasInherit)) {
        return false;
    }
    return props.every(important) || props.every(unimportant);
};

{'fraction_non_alphanumeric': 0.1599443671766342, 'fraction_numerical': 0.0, 'mean_word_length': 3.8979591836734695, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 11, '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': '5895027', 'n_tokens_mistral': 220, 'n_tokens_neox': 219, 'n_words': 54}