<commit_before>/*
 * NonDelegator.java
 * Created on Nov 29, 2011
 */
package org.blaise.util;

/**
 * Implementation of {@link Delegator} that returns the same value no matter what.
 *
 * @param <Src> source type of delegator
 * @param <Value> value type of delegator
 *
 * @author petereb1
 */
public final class NonDelegator<Src,Value> implements Delegator<Src,Value> {

    /** The value */
    private final Value value;

    /**
     * Construct the delegator for the specified value.
     * @param value value to return.
     */
    public NonDelegator(Value value) {
        this.value = value;
    }

    public Value of(Src src) {
        return value;
    }

}<commit_msg>added property pattern to NonDelegator to make editing easier<commit_after>/*
 * NonDelegator.java
 * Created on Nov 29, 2011
 */
package org.blaise.util;

/**
 * Implementation of {@link Delegator} that returns the same value no matter what.
 *
 * @param <Src> source type of delegator
 * @param <Value> value type of delegator
 *
 * @author petereb1
 */
public final class NonDelegator<Src,Value> implements Delegator<Src,Value> {

    /** The value */
    private Value value;

    /**
     * Construct the delegator for the specified value.
     * @param value value to return.
     */
    public NonDelegator(Value value) {
        this.value = value;
    }

    public Value getValue() {
        return value;
    }

    public void setValue(Value value) {
        this.value = value;
    }

    public Value of(Src src) {
        return value;
    }

}
{'fraction_non_alphanumeric': 0.10116731517509728, 'fraction_numerical': 0.009079118028534372, 'mean_word_length': 2.647754137115839, 'pattern_counts': {'":': 0, '<': 11, '<?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': '3954838', 'n_tokens_mistral': 479, 'n_tokens_neox': 455, 'n_words': 158}