<commit_before>package poussecafe.attribute;

import java.util.Objects;
import java.util.function.Supplier;
import poussecafe.attribute.adapters.DataAdapter;

public class SingleAttributeBuilder<T> {

    SingleAttributeBuilder(Class<T> valueClass) {
        this.valueClass = valueClass;
    }

    private Class<T> valueClass;

    public ReadOnlyAttributeBuilder<T> read(Supplier<T> getter) {
        return new ReadOnlyAttributeBuilder<>(getter);
    }

    public <U> AdaptingAttributeBuilder<U, T> storedAs(Class<U> storedType) {
        return new AdaptingAttributeBuilder<>();
    }

    public <U, T> PrimitiveAttributeBuilder<U, T> usingDataAdapter(DataAdapter<U, T> dataAdapter) {
        return new PrimitiveAttributeBuilder<>(dataAdapter);
    }

    public <U> AdaptingAttributeWithAdapterBuilder<U, T> usingAutoAdapter(Class<U> autoAdapterClass) {
        Objects.requireNonNull(autoAdapterClass);
        AutoAdaptingDataAdapter<U, T> autoAdapter = new AutoAdaptingDataAdapter<>(valueClass, autoAdapterClass);
        return new AdaptingAttributeWithAdapterBuilder<>(autoAdapter);
    }
}<commit_msg>Fix warning.<commit_after>package poussecafe.attribute;

import java.util.Objects;
import java.util.function.Supplier;
import poussecafe.attribute.adapters.DataAdapter;

public class SingleAttributeBuilder<T> {

    SingleAttributeBuilder(Class<T> valueClass) {
        this.valueClass = valueClass;
    }

    private Class<T> valueClass;

    public ReadOnlyAttributeBuilder<T> read(Supplier<T> getter) {
        return new ReadOnlyAttributeBuilder<>(getter);
    }

    public <U> AdaptingAttributeBuilder<U, T> storedAs(Class<U> storedType) {
        return new AdaptingAttributeBuilder<>();
    }

    public <U> PrimitiveAttributeBuilder<U, T> usingDataAdapter(DataAdapter<U, T> dataAdapter) {
        return new PrimitiveAttributeBuilder<>(dataAdapter);
    }

    public <U> AdaptingAttributeWithAdapterBuilder<U, T> usingAutoAdapter(Class<U> autoAdapterClass) {
        Objects.requireNonNull(autoAdapterClass);
        AutoAdaptingDataAdapter<U, T> autoAdapter = new AutoAdaptingDataAdapter<>(valueClass, autoAdapterClass);
        return new AdaptingAttributeWithAdapterBuilder<>(autoAdapter);
    }
}
{'fraction_non_alphanumeric': 0.09784560143626571, 'fraction_numerical': 0.0, 'mean_word_length': 4.744845360824742, 'pattern_counts': {'":': 0, '<': 43, '<?xml version=': 0, '>': 43, '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': '5835549', 'n_tokens_mistral': 650, 'n_tokens_neox': 630, 'n_words': 122}