<commit_before>package net.emaze.dysfunctional.dispatching.composing;

import net.emaze.dysfunctional.dispatching.actions.Action;
import net.emaze.dysfunctional.dispatching.actions.BinaryAction;
import net.emaze.dysfunctional.dispatching.actions.TernaryAction;
import net.emaze.dysfunctional.dispatching.composing.PipelinedAction;
import net.emaze.dysfunctional.dispatching.composing.PipelinedBinaryAction;
import net.emaze.dysfunctional.dispatching.composing.PipelinedTernaryAction;
import net.emaze.dysfunctional.iterations.Iterations;

public abstract class Pipelines {

    public static <T> PipelinedAction<T> pipeline(Action<T> action) {
        return new PipelinedAction<T>(Iterations.iterable(action));
    }<commit_msg>enh: missing ambiguous overloads in Pipelines<commit_after>package net.emaze.dysfunctional.dispatching.composing;

import java.util.Iterator;
import net.emaze.dysfunctional.consumers.Consumers;
import net.emaze.dysfunctional.dispatching.actions.Action;
import net.emaze.dysfunctional.dispatching.actions.BinaryAction;
import net.emaze.dysfunctional.dispatching.actions.TernaryAction;
import net.emaze.dysfunctional.iterations.Iterations;

public abstract class Pipelines {

    public static class Unary {

        public static <T> PipelinedAction<T> pipeline(Iterable<Action<T>> actions) {
            return new PipelinedAction<T>(actions);
        }

        public static <T> PipelinedAction<T> pipeline(Iterator<Action<T>> actions) {
            return new PipelinedAction<T>(Consumers.all(actions));
        }
    }

    public static class Binary {

        public static <T1, T2> PipelinedBinaryAction<T1, T2> pipeline(Iterable<BinaryAction<T1, T2>> actions) {
            return new PipelinedBinaryAction<T1, T2>(actions);
        }

        public static <T1, T2> PipelinedBinaryAction<T1, T2> pipeline(Iterator<BinaryAction<T1, T2>> actions) {
            return new PipelinedBinaryAction<T1, T2>(Consumers.all(actions));
        }
    }

    public static class Ternary {

        public static <T1, T2, T3> PipelinedTernaryAction<T1, T2, T3> pipeline(Iterable<TernaryAction<T1, T2, T3>> actions) {
            return new PipelinedTernaryAction<T1, T2, T3>(actions);
        }

        public static <T1, T2, T3> PipelinedTernaryAction<T1, T2, T3> pipeline(Iterator<TernaryAction<T1, T2, T3>> actions) {
            return new PipelinedTernaryAction<T1, T2, T3>(Consumers.all(actions));
        }
    }

    public static <T> PipelinedAction<T> pipeline(Action<T> action) {
        return new PipelinedAction<T>(Iterations.iterable(action));
    }
{'fraction_non_alphanumeric': 0.10351487060641174, 'fraction_numerical': 0.01544998068752414, 'mean_word_length': 4.34020618556701, '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': '3837488', 'n_tokens_mistral': 868, 'n_tokens_neox': 820, 'n_words': 151}