<commit_before>package nl.eernie.jmoribus.parser;

import nl.eernie.jmoribus.matcher.MethodMatcher;
import nl.eernie.jmoribus.matcher.ParameterConverter;
import nl.eernie.jmoribus.model.Table;

import java.lang.reflect.InvocationTargetException;
import java.lang.reflect.Method;
import java.lang.reflect.ParameterizedType;
import java.lang.reflect.Type;
import java.util.ArrayList;
import java.util.List;

final class ReflectionParser {

    private ReflectionParser() {
    }

    public static Object parse(Table table, Type type, MethodMatcher methodMatcher) {

        try {
            if (type instanceof ParameterizedType) {
                Type rawClass = rawClass(type);
                if (List.class.isAssignableFrom((Class<?>) rawClass)) {
                    Class<?> argumentType = (Class<?>) argumentType(type);
                    List<Object> list = new ArrayList<>();
                    for (List<String> row : table.getRows()) {<commit_msg>Revert make reflectionParser package protected<commit_after>package nl.eernie.jmoribus.parser;

import nl.eernie.jmoribus.matcher.MethodMatcher;
import nl.eernie.jmoribus.matcher.ParameterConverter;
import nl.eernie.jmoribus.model.Table;

import java.lang.reflect.InvocationTargetException;
import java.lang.reflect.Method;
import java.lang.reflect.ParameterizedType;
import java.lang.reflect.Type;
import java.util.ArrayList;
import java.util.List;

public final class ReflectionParser {

    private ReflectionParser() {
    }

    public static Object parse(Table table, Type type, MethodMatcher methodMatcher) {

        try {
            if (type instanceof ParameterizedType) {
                Type rawClass = rawClass(type);
                if (List.class.isAssignableFrom((Class<?>) rawClass)) {
                    Class<?> argumentType = (Class<?>) argumentType(type);
                    List<Object> list = new ArrayList<>();
                    for (List<String> row : table.getRows()) {
{'fraction_non_alphanumeric': 0.10510204081632653, 'fraction_numerical': 0.0, 'mean_word_length': 3.1723404255319148, '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': '3631775', 'n_tokens_mistral': 559, 'n_tokens_neox': 544, 'n_words': 119}