<commit_before>package com.nitorcreations;

import org.reflections.Reflections;
import org.reflections.scanners.SubTypesScanner;

import java.net.URLClassLoader;
import java.util.ArrayList;
import java.util.List;

public class DomainClassFinder {

    public static List<Class<?>> findClasses(final List<String> packages, final URLClassLoader classLoader) {
        List<Class<?>> allClasses = new ArrayList<>();
        for (String packageName : packages) {
            Reflections reflections = new Reflections(packageName, new SubTypesScanner(false), classLoader);
            allClasses.addAll(reflections.getSubTypesOf(Object.class));
        }
        return allClasses;
    }
}
<commit_msg>added private constructor for utility class<commit_after>package com.nitorcreations;

import org.reflections.Reflections;
import org.reflections.scanners.SubTypesScanner;

import java.net.URLClassLoader;
import java.util.ArrayList;
import java.util.List;

public class DomainClassFinder {

    public static List<Class<?>> findClasses(final List<String> packages, final URLClassLoader classLoader) {
        List<Class<?>> allClasses = new ArrayList<>();
        for (String packageName : packages) {
            Reflections reflections = new Reflections(packageName, new SubTypesScanner(false), classLoader);
            allClasses.addAll(reflections.getSubTypesOf(Object.class));
        }
        return allClasses;
    }

    private DomainClassFinder() {
        // private constructor for utility class
    }
}

{'fraction_non_alphanumeric': 0.09379128137384413, 'fraction_numerical': 0.0, 'mean_word_length': 4.0, 'pattern_counts': {'":': 0, '<': 15, '<?xml version=': 0, '>': 15, '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': '828150', 'n_tokens_mistral': 407, 'n_tokens_neox': 401, 'n_words': 96}