<commit_before>package throwing.function;

@FunctionalInterface
public interface ThrowingFunction<T, R, X extends Throwable> {
    public R apply(T t) throws X;
}
<commit_msg>Added a similar andThen to ThrowingFunction<commit_after>package throwing.function;

import java.util.Objects;

@FunctionalInterface
public interface ThrowingFunction<T, R, X extends Throwable> {
    public R apply(T t) throws X;
    
    default public <RR> ThrowingFunction<T, RR, X> andThen(ThrowingFunction<? super R, ? extends RR, ? extends X> after) {
        Objects.requireNonNull(after);
        return t -> after.apply(apply(t));
    }
}

{'fraction_non_alphanumeric': 0.09951845906902086, 'fraction_numerical': 0.0, 'mean_word_length': 4.473684210526316, 'pattern_counts': {'":': 0, '<': 8, '<?xml version=': 0, '>': 9, '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': '7054920', 'n_tokens_mistral': 188, 'n_tokens_neox': 185, 'n_words': 57}