<commit_before>/*
 * Mutability Detector
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 *
 * Further licensing information for this project can be found in 
 * 		license/LICENSE.txt
 */

package org.mutabilitydetector.unittesting.matchers;

import org.mutabilitydetector.IAnalysisSession.IsImmutable;

public class MutabilityMatchers {

    public static AnalysisResultMatcher noWarningsAllowed() {
        return new NoWarningsAllowedMatcher();
    }

    public static IsImmutableMatcher areImmutable() {
        return new IsImmutableMatcher(IsImmutable.IMMUTABLE);
    }

    public static IsImmutableMatcher areNotImmutable() {
        return new IsImmutableMatcher(IsImmutable.NOT_IMMUTABLE);
    }
}
<commit_msg>Add method to match effectively immutable.<commit_after>/*
 * Mutability Detector
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 *
 * Further licensing information for this project can be found in 
 * 		license/LICENSE.txt
 */

package org.mutabilitydetector.unittesting.matchers;

import org.mutabilitydetector.IAnalysisSession.IsImmutable;

public class MutabilityMatchers {

    public static AnalysisResultMatcher noWarningsAllowed() {
        return new NoWarningsAllowedMatcher();
    }

    public static IsImmutableMatcher areImmutable() {
        return new IsImmutableMatcher(IsImmutable.IMMUTABLE);
    }
    
    public static IsImmutableMatcher areEffectivelyImmutable() {
        return new IsImmutableMatcher(IsImmutable.EFFECTIVELY_IMMUTABLE);
    }

    public static IsImmutableMatcher areNotImmutable() {
        return new IsImmutableMatcher(IsImmutable.NOT_IMMUTABLE);
    }
}

{'fraction_non_alphanumeric': 0.06829539144919489, 'fraction_numerical': 0.002220988339811216, 'mean_word_length': 4.090395480225989, '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': '6993750', 'n_tokens_mistral': 499, 'n_tokens_neox': 490, 'n_words': 138}