<commit_before>
#ifndef __LOAD_HPP__
#define __LOAD_HPP__

#include <stdio.h>
#include <stdlib.h>
#include <string.h>

/* Defines a load in terms of ratio of deletes, updates, inserts, and
 * reads. */
struct load_t {
public:
    load_t()
        : deletes(1), updates(4),
          inserts(8), reads(64),
          appends(0), prepends(0)
        {}

    load_t(int d, int u, int i, int r, int a, int p)
        : deletes(d), updates(u),
          inserts(i), reads(r),
          appends(a), prepends(p)
        {}

    enum load_op_t {
        delete_op, update_op, insert_op, read_op, append_op, prepend_op, verify_op,
    };

    // Generates an operation to perform using the ratios as
    // probabilities.
    load_op_t toss(float read_factor) {
        // Scale everything by read factor (note, we don't divide<commit_msg>Initialize verify ratio in stress client.<commit_after>
#ifndef __LOAD_HPP__
#define __LOAD_HPP__

#include <stdio.h>
#include <stdlib.h>
#include <string.h>

/* Defines a load in terms of ratio of deletes, updates, inserts, and
 * reads. */
struct load_t {
public:
    load_t()
        : deletes(1), updates(4),
          inserts(8), reads(64),
          appends(0), prepends(0),
          verifies(0)
        {}

    load_t(int d, int u, int i, int r, int a, int p, int v)
        : deletes(d), updates(u),
          inserts(i), reads(r),
          appends(a), prepends(p),
          verifies(v)
        {}

    enum load_op_t {
        delete_op, update_op, insert_op, read_op, append_op, prepend_op, verify_op,
    };

    // Generates an operation to perform using the ratios as
    // probabilities.
    load_op_t toss(float read_factor) {
        // Scale everything by read factor (note, we don't divide
{'fraction_non_alphanumeric': 0.11947156806433085, 'fraction_numerical': 0.00861573808156232, 'mean_word_length': 2.5334685598377282, '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': '2106251', 'n_tokens_mistral': 613, 'n_tokens_neox': 583, 'n_words': 174}