<commit_before>#ifndef BTREE_LEAF_NODE_HPP_
#define BTREE_LEAF_NODE_HPP_

#include <string>

#include "buffer_cache/types.hpp"
#include "config/args.hpp"
#include "containers/scoped_malloc.hpp"
#include "errors.hpp"
#include "btree/node.hpp"
#include "scoped_error_logging.hpp"

namespace leaf {

// TODO LOOF: Make sure all leaf node operations support empty leaf
// nodes.  Shouldn't be hard, since move_elements supports that.

// These codes can appear as the first byte of a leaf node entry
// (values 250 or smaller are just key sizes for key/value pairs).

// Means we have a deletion entry.
const int DELETE_ENTRY_CODE = 255;

// Means we have a skipped entry exactly one byte long.
const int SKIP_ENTRY_CODE_ONE = 254;<commit_msg>Removed a TODO LOOF that is obsolete.<commit_after>#ifndef BTREE_LEAF_NODE_HPP_
#define BTREE_LEAF_NODE_HPP_

#include <string>

#include "buffer_cache/types.hpp"
#include "config/args.hpp"
#include "containers/scoped_malloc.hpp"
#include "errors.hpp"
#include "btree/node.hpp"
#include "scoped_error_logging.hpp"

namespace leaf {

// These codes can appear as the first byte of a leaf node entry
// (values 250 or smaller are just key sizes for key/value pairs).

// Means we have a deletion entry.
const int DELETE_ENTRY_CODE = 255;

// Means we have a skipped entry exactly one byte long.
const int SKIP_ENTRY_CODE_ONE = 254;
{'fraction_non_alphanumeric': 0.08771929824561403, 'fraction_numerical': 0.013157894736842105, 'mean_word_length': 4.680497925311204, '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': '3914383', 'n_tokens_mistral': 469, 'n_tokens_neox': 437, 'n_words': 160}