<commit_before>#include <iostream>
#include "CDAP.pb.h"

using namespace std;


int main()
{
    return 0;
}<commit_msg>cdap: added internal CDAPMessage struct<commit_after>#include <iostream>
#include <string>

#include "rinalite/rinalite-common.h"
#include "CDAP.pb.h"

using namespace std;


/* Internal representation of a CDAP message. */
struct CDAPMessage {
    int                 abs_syntax;
    gpb::authTypes_t    auth_mech;
    struct {
        string auth_name;
        string auth_password;
        string auth_other;
    }                   auth_value;
    struct rina_name    local_appl;
    struct rina_name    remote_appl;
    string              filter;
    gpb::flagValues_t   flags;
    int                 invoke_id;
    string              obj_class;
    long                obj_inst;
    string              obj_name;
    gpb::opCode_t       op_code;
    int                 result;
    string              result_reason;
    int                 scope;
    long                version;

    enum obj_value_t {
        NONE,
        I32,
        I64,
        BYTES,
        FLOAT,
        DOUBLE,
        BOOL,
        STRING,
    };

    bool is(obj_value_t tt) const { return obj_value.ty == tt; }

private:
    /* Representation of the object value. */
    struct {
        obj_value_t         ty;
        union {
            int32_t         i32; /* intval and sintval */
            int64_t         i64; /* int64val and sint64val */
            void            *bytes;
            float           fp_single;
            double          fp_double;
            bool            boolean;
        } u;
        string              str; /* strval */
    }                   obj_value;
};

int main()
{
    gpb::CDAPMessage gm;
    CDAPMessage m;

    (void)gm;
    (void)m;

    return 0;
}
{'fraction_non_alphanumeric': 0.07790055248618785, 'fraction_numerical': 0.009944751381215469, 'mean_word_length': 1.3277634961439588, 'pattern_counts': {'":': 0, '<': 6, '<?xml version=': 0, '>': 6, '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': '6916150', 'n_tokens_mistral': 568, 'n_tokens_neox': 539, 'n_words': 134}