<commit_before>//
//  RedBlackConfig.swift
//  TreeCollections
//
//  Created by <NAME> on 2015-12-17.
//  Copyright © 2015 <NAME>. All rights reserved.
//

import Foundation

public enum KeyMatchResult {
    case Before
    case Matching
    case After
}

public protocol RedBlackConfig {
    typealias Key<commit_msg>Add TODO on removing/refactoring RedBlackConfig.<commit_after>//
//  RedBlackConfig.swift
//  TreeCollections
//
//  Created by <NAME> on 2015-12-17.
//  Copyright © 2015 <NAME>. All rights reserved.
//

import Foundation

public enum KeyMatchResult {
    case Before
    case Matching
    case After
}

// TODO: Remove this; user should simply supply a comparison block when searching.
// The idea was that you would use enums as keys when you want to search in the tree in multiple ways, but that's too cumbersome in practice.
// We may still keep a single comparable type for canonical keys (prefix + head) -- to ensure ordering remains well-defined and verifiable in the tree.
public protocol RedBlackConfig {
    typealias Key
{'fraction_non_alphanumeric': 0.07904761904761905, 'fraction_numerical': 0.022857142857142857, 'mean_word_length': 3.204, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 7, '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': '3599021', 'n_tokens_mistral': 307, 'n_tokens_neox': 281, 'n_words': 127}