<commit_before>#include <stdio.h>
#include <math.h>
#include <assert.h>

#include "numbbo.h"

#include "numbbo_problem.c"

static void f_ellipsoid_evaluate(numbbo_problem_t *self, double *x, double *y) {
    size_t i;
    static const double condition = 1.0e6;    
    assert(self->number_of_objectives == 1);
    assert(self->number_of_variables);
    y[0] = x[i] * x[i];
    for (i = 1; i < self->number_of_variables; ++i) {
            y[0] += pow(condition, (double)(i) / (double)(self->number_of_variables - 1)) * x[i] * x[i];
}<commit_msg>Reformat code for readability and add missing brace.<commit_after>#include <stdio.h>
#include <math.h>
#include <assert.h>

#include "numbbo.h"

#include "numbbo_problem.c"

static void f_ellipsoid_evaluate(numbbo_problem_t *self, double *x, double *y) {
    size_t i = 0;
    static const double condition = 1.0e6;    
    assert(self->number_of_objectives == 1);
    assert(self->number_of_variables > 0);
    y[0] = x[i] * x[i];
    for (i = 1; i < self->number_of_variables; ++i) {
        const double exponent = i * 1.0 / (self->number_of_variables - 1)
        y[0] += pow(condition, exponent) * x[i] * x[i];
    }
}
{'fraction_non_alphanumeric': 0.1618150684931507, 'fraction_numerical': 0.017123287671232876, 'mean_word_length': 3.6023622047244093, 'pattern_counts': {'":': 0, '<': 11, '<?xml version=': 0, '>': 18, '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': '5171163', 'n_tokens_mistral': 472, 'n_tokens_neox': 451, 'n_words': 102}