<commit_before>
package org.apache.avro.logical_types.converters;

import java.io.IOException;
import java.nio.ByteBuffer;
import java.util.Collection;
import java.util.Map;
import org.apache.avro.Conversion;
import org.apache.avro.LogicalType;
import org.apache.avro.Schema;
import org.apache.avro.generic.GenericEnumSymbol;
import org.apache.avro.generic.GenericFixed;
import org.apache.avro.generic.IndexedRecord;
import org.apache.avro.io.Decoder;
import org.apache.avro.io.Encoder;
import org.apache.avro.util.Optional;

/**
 * An converter adapter, for conversion shitching based on logical type.
 * @author <NAME>
 */
public class MultiConverter<T> extends Conversion<T> {

  interface Chooser {
    int chose(LogicalType type);
  }

  private final Conversion<T>[] conversions;

  private final Chooser chooser;

  @SafeVarargs
  public MultiConverter(Chooser chooser, Conversion<T>... conversions) {<commit_msg>[fix] typo<commit_after>
package org.apache.avro.logical_types.converters;

import java.io.IOException;
import java.nio.ByteBuffer;
import java.util.Collection;
import java.util.Map;
import org.apache.avro.Conversion;
import org.apache.avro.LogicalType;
import org.apache.avro.Schema;
import org.apache.avro.generic.GenericEnumSymbol;
import org.apache.avro.generic.GenericFixed;
import org.apache.avro.generic.IndexedRecord;
import org.apache.avro.io.Decoder;
import org.apache.avro.io.Encoder;
import org.apache.avro.util.Optional;

/**
 * An converter adapter, for conversion switching based on logical type.
 * @author <NAME>
 */
public class MultiConverter<T> extends Conversion<T> {

  interface Chooser {
    int chose(LogicalType type);
  }

  private final Conversion<T>[] conversions;

  private final Chooser chooser;

  @SafeVarargs
  public MultiConverter(Chooser chooser, Conversion<T>... conversions) {
{'fraction_non_alphanumeric': 0.10996189439303211, 'fraction_numerical': 0.0, 'mean_word_length': 5.167785234899329, 'pattern_counts': {'":': 0, '<': 13, '<?xml version=': 0, '>': 13, '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': '1120882', 'n_tokens_mistral': 595, 'n_tokens_neox': 576, 'n_words': 131}