<commit_before>package io.jcp.pipeline;

import io.jcp.service.QueryManagerService;

import java.util.Collection;
import java.util.List;
import java.util.Optional;
import java.util.function.Function;
import java.util.stream.Stream;

public interface Pipeline<T, H> {

    Pipeline<T, H> run(T query);

    Pipeline<T, H> run(Collection<T> query);

    <F, K> Pipeline<F, K>
    run(Function<? super T, ? extends F> mapper, Class<K> type);

    Pipeline<T, H> using(QueryManagerService<T, H> service);

    Stream<H> stream();

    Optional<H> product();

    List<H> products();

    Optional<Pipeline<T, H>> getParent();

    Optional<Collection<T>> getQueries();

    Optional<QueryManagerService<T, H>> getService();

}<commit_msg>- pipeline: close()<commit_after>package io.jcp.pipeline;

import io.jcp.service.QueryManagerService;

import java.util.Collection;
import java.util.List;
import java.util.Optional;
import java.util.function.Function;
import java.util.stream.Stream;

public interface Pipeline<T, H> extends AutoCloseable {

    Pipeline<T, H> run(T query);

    Pipeline<T, H> run(Collection<T> query);

    <F, K> Pipeline<F, K>
    run(Function<? super T, ? extends F> mapper, Class<K> type);

    Pipeline<T, H> using(QueryManagerService<T, H> service);

    Stream<H> stream();

    Optional<H> product();

    List<H> products();

    Optional<Pipeline<T, H>> getParent();

    Optional<Collection<T>> getQueries();

    Optional<QueryManagerService<T, H>> getService();

    default void close() throws Exception {
    }
}
{'fraction_non_alphanumeric': 0.14747736093143596, 'fraction_numerical': 0.0, 'mean_word_length': 4.352941176470588, 'pattern_counts': {'":': 0, '<': 41, '<?xml version=': 0, '>': 41, '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': '5778745', 'n_tokens_mistral': 525, 'n_tokens_neox': 497, 'n_words': 123}