<commit_before>package mho.wheels.ordering;

import mho.wheels.iterables.IterableUtils;
import mho.wheels.structures.Pair;
import org.jetbrains.annotations.NotNull;
import org.jetbrains.annotations.Nullable;

import java.util.Comparator;
import java.util.Optional;

import static mho.wheels.iterables.IterableUtils.*;

/**
 * An enumeration consisting of the elements {@code LT} (less than), {@code EQ} (equal to), and {@code GT} (greater
 * than). Ordering-related utilities are also provided.
 */
public enum Ordering {
    LT, // <
    EQ, // ==
    GT; // >

    /**
     * Converts an integer to an ordering, based on comparing the integer to zero. This is useful because C-style
     * ordering-related methods often use negative integers to mean "less than", zero to mean "equal to", and positive<commit_msg>remove unused import<commit_after>package mho.wheels.ordering;

import mho.wheels.structures.Pair;
import org.jetbrains.annotations.NotNull;
import org.jetbrains.annotations.Nullable;

import java.util.Comparator;
import java.util.Optional;

import static mho.wheels.iterables.IterableUtils.*;

/**
 * An enumeration consisting of the elements {@code LT} (less than), {@code EQ} (equal to), and {@code GT} (greater
 * than). Ordering-related utilities are also provided.
 */
public enum Ordering {
    LT, // <
    EQ, // ==
    GT; // >

    /**
     * Converts an integer to an ordering, based on comparing the integer to zero. This is useful because C-style
     * ordering-related methods often use negative integers to mean "less than", zero to mean "equal to", and positive
{'fraction_non_alphanumeric': 0.11041405269761606, 'fraction_numerical': 0.0, 'mean_word_length': 3.8333333333333335, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, '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': '7383886', 'n_tokens_mistral': 472, 'n_tokens_neox': 447, 'n_words': 163}