<commit_before>// Package ring contains tools for building and using a consistent hashing ring
// with replicas, automatic partitioning (ring ranges), and keeping replicas of
// the same partitions in as distinct tiered nodes as possible (tiers might be
// devices, servers, cabinets, rooms, data centers, geographical regions, etc.)
// TODO:
//  Indexes should be uint32 and not int32; use 0 for nil node.
package ring

// Long variable names are used in this code because it is tricky to understand
// and the verbosity can really help.

// 1 << 23 is 8388608 which, with 3 replicas, would use about 100M of memory
const _MAX_PARTITION_COUNT = 8388608
<commit_msg>I need quit trying to make indexes uint32 and...<commit_after>// Package ring contains tools for building and using a consistent hashing ring
// with replicas, automatic partitioning (ring ranges), and keeping replicas of
// the same partitions in as distinct tiered nodes as possible (tiers might be
// devices, servers, cabinets, rooms, data centers, geographical regions, etc.)
package ring

// Long variable names are used in this code because it is tricky to understand
// and the verbosity can really help.

// 1 << 23 is 8388608 which, with 3 replicas, would use about 100M of memory
const _MAX_PARTITION_COUNT = 8388608

{'fraction_non_alphanumeric': 0.0633693972179289, 'fraction_numerical': 0.03786707882534776, 'mean_word_length': 4.118577075098814, 'pattern_counts': {'":': 0, '<': 7, '<?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': '2569677', 'n_tokens_mistral': 376, 'n_tokens_neox': 320, 'n_words': 189}