<commit_before>package cls.fitness;

import java.util.List;

/*
 * See <NAME>'s doctoral thesis for details.
 *
 * Available at the time of this writing at:
 *
 * http://cs.gmu.edu/~eclab/kdj_thesis.html
 */
public class DeJongF1 implements Function
{
    public double f(List<Double> inputs)
    {
        if (inputs.size() != 3)
            throw new IllegalArgumentException(
                    "Expecting 3 input variables.");

        double result = 0;

        for (Double i : inputs)
            result += (i * i);<commit_msg>Changed De Jong F1 to be n-dimensional.<commit_after>package cls.fitness;

import java.util.List;

/*
 * See <NAME>ong's doctoral thesis for details.
 *
 * Available at the time of this writing at:
 *
 * http://cs.gmu.edu/~eclab/kdj_thesis.html
 */
public class DeJongF1 implements Function
{
    public double f(List<Double> inputs)
    {
        if (inputs.size() < 1)
            throw new IllegalArgumentException(
                    "Expecting at least one input variable.");

        double result = 0;

        for (Double i : inputs)
            result += (i * i);
{'fraction_non_alphanumeric': 0.11101083032490974, 'fraction_numerical': 0.007220216606498195, 'mean_word_length': 2.31044776119403, 'pattern_counts': {'":': 0, '<': 8, '<?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': '1658949', 'n_tokens_mistral': 344, 'n_tokens_neox': 326, 'n_words': 103}