<commit_before>#ifndef DB_CONNECT_H_
#define DB_CONNECT_H_


#include <stdbool.h>


enum client_flags {
    DB_CLIENT_RTR = 1,
    // assign DB_CLIENT_NEXT = 2 * DB_CLIENT_PREV

    DB_CLIENT_NONE = 0,
    DB_CLIENT_ALL = DB_CLIENT_RTR /* | DB_CLIENT_OTHER | ... */
};<commit_msg>add enum for client types and generate flags using it<commit_after>#ifndef DB_CONNECT_H_
#define DB_CONNECT_H_


#include <stdbool.h>


// NOTE: don't use this outside of mysql-c-api, use enum client_flags instead
enum client_types {
    DB_CLIENT_TYPE_RTR = 0,
    // DB_CLIENT_NEXT = 1 + DB_CLIENT_PREV

    DB_CLIENT_TYPES_LENGTH = 1
};

enum client_flags {
    DB_CLIENT_RTR = (1 << DB_CLIENT_TYPE_RTR),

    DB_CLIENT_NONE = 0,
    DB_CLIENT_ALL = DB_CLIENT_RTR /* | DB_CLIENT_OTHER | ... */
};
{'fraction_non_alphanumeric': 0.09884467265725289, 'fraction_numerical': 0.010269576379974325, 'mean_word_length': 3.6706586826347305, 'pattern_counts': {'":': 0, '<': 7, '<?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': '5601498', 'n_tokens_mistral': 308, 'n_tokens_neox': 312, 'n_words': 64}