<commit_before>#pragma once

#include <map>
#include <string>
#include <unordered_map>

#include "base/all.h"

namespace mdb {

using base::i32;
using base::i64;
using base::NoCopy;
using base::RefCounted;
using base::Enumerator;
using base::Log;
using base::insert_into_map;
using base::format_decimal;

typedef int64_t version_t;
typedef int column_id_t;

typedef enum {
    NONE,

    ROW_BASIC,
    ROW_COARSE,
    ROW_FINE,
    ROW_VERSIONED,

    TBL_SORTED,
    TBL_UNSORTED,
    TBL_SNAPSHOT,

    TXN_UNSAFE,
    TXN_NESTED,
    TXN_2PL,
    TXN_OCC,

    TXN_ABORT,
    TXN_COMMIT,

    ORD_ANY,
    ORD_ASC,
    ORD_DESC,

    OCC_EAGER,
    OCC_LAZY,
} symbol_t;

uint32_t stringhash32(const void* data, int len);

inline uint32_t stringhash32(const std::string& str) {<commit_msg>less warning<commit_after>#pragma once

#include <map>
#include <string>
#include <unordered_map>

#include "base/all.h"

namespace mdb {

using base::i32;
using base::i64;
using base::NoCopy;
using base::RefCounted;
using base::Enumerator;
using base::Log;
using base::insert_into_map;
using base::format_decimal;

typedef int64_t version_t;
typedef int column_id_t;

typedef enum {
    NONE,

    ROW_BASIC,
    ROW_COARSE,
    ROW_FINE,
    ROW_VERSIONED,

    TBL_SORTED,
    TBL_UNSORTED,
    TBL_SNAPSHOT,

    TXN_UNSAFE,
    TXN_NESTED,
    TXN_2PL,
    TXN_OCC,

    TXN_ABORT,
    TXN_COMMIT,

    ORD_ANY,
    ORD_ASC,
    ORD_DESC,

    OCC_EAGER,
    OCC_LAZY
} symbol_t;

uint32_t stringhash32(const void* data, int len);

inline uint32_t stringhash32(const std::string& str) {
{'fraction_non_alphanumeric': 0.09785353535353536, 'fraction_numerical': 0.01893939393939394, 'mean_word_length': 3.861963190184049, 'pattern_counts': {'":': 0, '<': 9, '<?xml version=': 0, '>': 9, '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': '6221661', 'n_tokens_mistral': 713, 'n_tokens_neox': 660, 'n_words': 135}