<commit_before>package de.lmu.ifi.dbs.algorithm.classifier;

import static de.lmu.ifi.dbs.algorithm.DistanceBasedAlgorithm.DEFAULT_DISTANCE_FUNCTION;
import static de.lmu.ifi.dbs.algorithm.DistanceBasedAlgorithm.DISTANCE_FUNCTION_P;

import de.lmu.ifi.dbs.data.DatabaseObject;
import de.lmu.ifi.dbs.distance.Distance;
import de.lmu.ifi.dbs.distance.DistanceFunction;
import de.lmu.ifi.dbs.distance.EuklideanDistanceFunction;
import de.lmu.ifi.dbs.utilities.Util;
import de.lmu.ifi.dbs.utilities.optionhandling.AttributeSettings;
import de.lmu.ifi.dbs.utilities.optionhandling.OptionHandler;

import java.util.List;

/**
 * An abstract classifier already based on DistanceBasedAlgorithm
 * making use of settings for time and verbose and DistanceFunction.
 * 
 * @author <NAME> (<a href="mailto:<EMAIL>"><EMAIL></a>)
 */
public abstract class DistanceBasedClassifier<O extends DatabaseObject, D extends Distance<D>> extends AbstractClassifier<O>
{
    /**
     * The default distance function.
     */
    public static final String DEFAULT_DISTANCE_FUNCTION = EuklideanDistanceFunction.class.getName();

    /**<commit_msg>organized imports<commit_after>package de.lmu.ifi.dbs.algorithm.classifier;


import de.lmu.ifi.dbs.data.DatabaseObject;
import de.lmu.ifi.dbs.distance.Distance;
import de.lmu.ifi.dbs.distance.DistanceFunction;
import de.lmu.ifi.dbs.distance.EuklideanDistanceFunction;
import de.lmu.ifi.dbs.utilities.Util;
import de.lmu.ifi.dbs.utilities.optionhandling.AttributeSettings;
import de.lmu.ifi.dbs.utilities.optionhandling.OptionHandler;

import java.util.List;


/**
 * An abstract classifier already based on DistanceBasedAlgorithm
 * making use of settings for time and verbose and DistanceFunction.
 * 
 * @author <NAME> (<a href="mailto:<EMAIL>"><EMAIL></a>)
 */
public abstract class DistanceBasedClassifier<O extends DatabaseObject, D extends Distance<D>> extends AbstractClassifier<O>
{
    /**
     * The default distance function.
     */
    public static final String DEFAULT_DISTANCE_FUNCTION = EuklideanDistanceFunction.class.getName();

    /**
{'fraction_non_alphanumeric': 0.11063011063011063, 'fraction_numerical': 0.0, 'mean_word_length': 5.172106824925816, 'pattern_counts': {'":': 0, '<': 19, '<?xml version=': 0, '>': 19, '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': '7660954', 'n_tokens_mistral': 668, 'n_tokens_neox': 638, 'n_words': 127}