<commit_before>package com.github.julman99.futuristic;

import java.util.concurrent.Callable;
import java.util.concurrent.Executor;
import java.util.concurrent.Executors;

/**
 * @autor: julio
 */
public class Futures {

    private static final Executor EXECUTOR = Executors.newCachedThreadPool();

    public static <T> FutureWithTrigger<T> withTrigger(){
        return new FutureWithTrigger<T>();
    };

    public static <T> Future<T> withValue(T value){
        return new FutureWithValue<>(value);
    }

    public static <T> Future<T> withException(Exception exception){
        return new FutureWithException<>(exception);
    }

    public static <T> Future<T> withCallable(Callable<T> callable){
        return withCallable(EXECUTOR, callable);<commit_msg>The constructor from Futures is private<commit_after>package com.github.julman99.futuristic;

import java.util.concurrent.Callable;
import java.util.concurrent.Executor;
import java.util.concurrent.Executors;

/**
 * @autor: julio
 */
public final class Futures {

    private static final Executor EXECUTOR = Executors.newCachedThreadPool();

    private Futures(){

    }

    public static <T> FutureWithTrigger<T> withTrigger(){
        return new FutureWithTrigger<T>();
    };

    public static <T> Future<T> withValue(T value){
        return new FutureWithValue<>(value);
    }

    public static <T> Future<T> withException(Exception exception){
        return new FutureWithException<>(exception);
    }

    public static <T> Future<T> withCallable(Callable<T> callable){
        return withCallable(EXECUTOR, callable);
{'fraction_non_alphanumeric': 0.1099312929419113, 'fraction_numerical': 0.0024984384759525295, 'mean_word_length': 4.037735849056604, 'pattern_counts': {'":': 0, '<': 27, '<?xml version=': 0, '>': 27, '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': '7388930', 'n_tokens_mistral': 471, 'n_tokens_neox': 462, 'n_words': 115}