<commit_before>package org.uma.jmetal.algorithm.totrythemeasures;

import org.uma.jmetal.algorithm.Algorithm;
import org.uma.jmetal.operator.CrossoverOperator;
import org.uma.jmetal.operator.MutationOperator;
import org.uma.jmetal.operator.SelectionOperator;
import org.uma.jmetal.operator.impl.crossover.SBXCrossover;
import org.uma.jmetal.operator.impl.mutation.PolynomialMutation;
import org.uma.jmetal.operator.impl.selection.BinaryTournamentSelection;
import org.uma.jmetal.problem.Problem;
import org.uma.jmetal.util.JMetalException;
import org.uma.jmetal.util.evaluator.SolutionListEvaluator;
import org.uma.jmetal.util.evaluator.impl.SequentialSolutionListEvaluator;
import org.uma.jmetal.util.solutionattribute.AlgorithmBuilder;

/**
 * Created by ajnebro on 16/11/14.
 */
public class NSGAIIMBuilder implements AlgorithmBuilder {
  public enum NSGAIIVariant {NSGAII, SteadyStateNSGAII}

  /**
   * NSGAIIBuilder class
   */
  private final Problem problem;
  private int maxIterations;
  private int populationSize;
  private CrossoverOperator crossoverOperator;
  private MutationOperator mutationOperator;
  private SelectionOperator selectionOperator;
  private SolutionListEvaluator evaluator;

  /**
   * NSGAIIBuilder constructor
   */
  public NSGAIIMBuilder(Problem problem, NSGAIIVariant variant) {
    this.problem = problem;
    maxIterations = 250;
    populationSize = 100;
    crossoverOperator = new SBXCrossover(0.9, 20.0);
    mutationOperator = new PolynomialMutation(1.0 / problem.getNumberOfVariables(), 20.0);
    selectionOperator = new BinaryTournamentSelection();
    evaluator = new SequentialSolutionListEvaluator();
  }<commit_msg>Minor changes<commit_after>package org.uma.jmetal.algorithm.totrythemeasures;

import org.uma.jmetal.algorithm.Algorithm;
import org.uma.jmetal.operator.CrossoverOperator;
import org.uma.jmetal.operator.MutationOperator;
import org.uma.jmetal.operator.SelectionOperator;
import org.uma.jmetal.operator.impl.crossover.SBXCrossover;
import org.uma.jmetal.operator.impl.mutation.PolynomialMutation;
import org.uma.jmetal.operator.impl.selection.BinaryTournamentSelection;
import org.uma.jmetal.problem.Problem;
import org.uma.jmetal.util.JMetalException;
import org.uma.jmetal.util.evaluator.SolutionListEvaluator;
import org.uma.jmetal.util.evaluator.impl.SequentialSolutionListEvaluator;
import org.uma.jmetal.util.AlgorithmBuilder;

/**
 * Created by ajnebro on 16/11/14.
 */
public class NSGAIIMBuilder implements AlgorithmBuilder {
  public enum NSGAIIVariant {NSGAII, SteadyStateNSGAII}

  /**
   * NSGAIIBuilder class
   */
  private final Problem problem;
  private int maxIterations;
  private int populationSize;
  private CrossoverOperator crossoverOperator;
  private MutationOperator mutationOperator;
  private SelectionOperator selectionOperator;
  private SolutionListEvaluator evaluator;

  /**
   * NSGAIIBuilder constructor
   */
  public NSGAIIMBuilder(Problem problem, NSGAIIVariant variant) {
    this.problem = problem;
    maxIterations = 250;
    populationSize = 100;
    crossoverOperator = new SBXCrossover(0.9, 20.0);
    mutationOperator = new PolynomialMutation(1.0 / problem.getNumberOfVariables(), 20.0);
    selectionOperator = new BinaryTournamentSelection();
    evaluator = new SequentialSolutionListEvaluator();
  }
{'fraction_non_alphanumeric': 0.08890898131404461, 'fraction_numerical': 0.013261000602772756, 'mean_word_length': 5.370441458733206, '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': '3025715', 'n_tokens_mistral': 1093, 'n_tokens_neox': 998, 'n_words': 187}