<commit_before>package com.byoutline.cachedfield.internal;

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

/**
 * @author <NAME> <sebastian.kacprzak at byoutline.com>
 */
public class DefaultExecutors {
    public static Executor createDefaultStateListenerExecutor() {
        // Execute on same thread.
        return new Executor() {
            @Override
            public void execute(Runnable command) {
                command.run();
            }
        };
    }

    public static ExecutorService createDefaultValueGetterExecutor() {
        return Executors.newCachedThreadPool();
    }
}<commit_msg>Refactor: make DefaultExecutors class final, as it contains only static getters.<commit_after>package com.byoutline.cachedfield.internal;

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

/**
 * @author <NAME> <sebastian.kacprzak at byoutline.com>
 */
public final class DefaultExecutors {

    public static Executor createDefaultStateListenerExecutor() {
        // Execute on same thread.
        return new Executor() {
            @Override
            public void execute(Runnable command) {
                command.run();
            }
        };
    }

    public static ExecutorService createDefaultValueGetterExecutor() {
        return Executors.newCachedThreadPool();
    }
}
{'fraction_non_alphanumeric': 0.08908839779005524, 'fraction_numerical': 0.0, 'mean_word_length': 2.9162162162162164, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 7, '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': '5326766', 'n_tokens_mistral': 385, 'n_tokens_neox': 378, 'n_words': 89}