<commit_before>package uk.ac.ebi.quickgo.client.model.ontology;

import uk.ac.ebi.quickgo.ontology.common.document.OntologyFields;
import uk.ac.ebi.quickgo.rest.controller.request.ArrayPattern;
import uk.ac.ebi.quickgo.rest.controller.request.ArrayPattern.Flag;
import uk.ac.ebi.quickgo.rest.search.query.QuickGOQuery;
import uk.ac.ebi.quickgo.rest.search.request.FilterRequest;

import io.swagger.annotations.ApiModelProperty;
import java.util.*;
import java.util.stream.Stream;
import javax.validation.constraints.*;

import static javax.validation.constraints.Pattern.Flag.CASE_INSENSITIVE;
import static uk.ac.ebi.quickgo.ontology.common.document.OntologyFields.ONTOLOGY_TYPE;
import static uk.ac.ebi.quickgo.rest.search.DefaultSearchQueryTemplate.DEFAULT_PAGE_NUMBER;

/**
 * A data structure used to store the input parameters a client can submit to the Ontology search enpoint
 *
 * Once the comma separated values have been set, then turn then into an object (SimpleFilter) that
 * encapsulates the list and solr field name to use for that argument.
 */
public class OntologyRequest {
    static final int MIN_PAGE_NUMBER = 1;

    static final int DEFAULT_ENTRIES_PER_PAGE = 25;
    static final int MIN_ENTRIES_PER_PAGE = 0;
    static final int MAX_ENTRIES_PER_PAGE = 100;

    private static final String[] TARGET_FIELDS = new String[]{OntologyFields.ASPECT, ONTOLOGY_TYPE};
<commit_msg>Fix typo in Javadoc.<commit_after>package uk.ac.ebi.quickgo.client.model.ontology;

import uk.ac.ebi.quickgo.ontology.common.document.OntologyFields;
import uk.ac.ebi.quickgo.rest.controller.request.ArrayPattern;
import uk.ac.ebi.quickgo.rest.controller.request.ArrayPattern.Flag;
import uk.ac.ebi.quickgo.rest.search.query.QuickGOQuery;
import uk.ac.ebi.quickgo.rest.search.request.FilterRequest;

import io.swagger.annotations.ApiModelProperty;
import java.util.*;
import java.util.stream.Stream;
import javax.validation.constraints.*;

import static javax.validation.constraints.Pattern.Flag.CASE_INSENSITIVE;
import static uk.ac.ebi.quickgo.ontology.common.document.OntologyFields.ONTOLOGY_TYPE;
import static uk.ac.ebi.quickgo.rest.search.DefaultSearchQueryTemplate.DEFAULT_PAGE_NUMBER;

/**
 * A data structure used to store the input parameters a client can submit to the Ontology search endpoint
 *
 * Once the comma separated values have been set, then turn then into an object (SimpleFilter) that
 * encapsulates the list and solr field name to use for that argument.
 */
public class OntologyRequest {
    static final int MIN_PAGE_NUMBER = 1;

    static final int DEFAULT_ENTRIES_PER_PAGE = 25;
    static final int MIN_ENTRIES_PER_PAGE = 0;
    static final int MAX_ENTRIES_PER_PAGE = 100;

    private static final String[] TARGET_FIELDS = new String[]{OntologyFields.ASPECT, ONTOLOGY_TYPE};

{'fraction_non_alphanumeric': 0.08802565930149679, 'fraction_numerical': 0.004989308624376337, 'mean_word_length': 5.142231947483588, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, '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': '1699294', 'n_tokens_mistral': 891, 'n_tokens_neox': 865, 'n_words': 215}