<commit_before>#ifndef __OBJCLASS_H
#define __OBJCLASS_H

#ifdef __cplusplus
extern "C" {
#endif

typedef void * ClsMethodHandle;


#define OBJ_READ    0x1
#define OBJ_WRITE   0x2

typedef int ClsTrigger;

/* class log */
extern int cls_log(const char *format, ...);

/* class registration api */
extern int cls_register(const char *name, const char *method,
                        int (*class_call)(struct ceph_osd_op *op, char **indata, int datalen, char **outdata, int *outdatalen),
                        ClsMethodHandle *handle);
extern int cls_unregister(ClsMethodHandle handle);

extern int cls_link(ClsMethodHandle handle, int priority, ClsTrigger trigger);
extern int cls_unlink(ClsMethodHandle handle);

#ifdef __cplusplus
}
#endif

#endif
<commit_msg>class: typedef method, use C style naming<commit_after>#ifndef __OBJCLASS_H
#define __OBJCLASS_H

#ifdef __cplusplus
extern "C" {
#endif

typedef void *cls_method_handle_t;
typedef int (*cls_method_call_t)(struct ceph_osd_op *op,
				 char **indata, int datalen,
				 char **outdata, int *outdatalen);

/* class log */
extern int cls_log(const char *format, ...);

/* class registration api */
extern int cls_register(const char *name, const char *method,
                        cls_method_call_t class_call, cls_method_handle_t handle);
extern int cls_unregister(cls_method_handle_t handle);

/* triggers */
#define OBJ_READ    0x1
#define OBJ_WRITE   0x2

typedef int cls_trigger_t;

extern int cls_link(cls_method_handle_t handle, int priority, cls_trigger_t trigger);
extern int cls_unlink(cls_method_handle_t handle);

#ifdef __cplusplus
}
#endif

#endif

{'fraction_non_alphanumeric': 0.08984615384615384, 'fraction_numerical': 0.004923076923076923, 'mean_word_length': 4.401993355481728, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, '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': '4085641', 'n_tokens_mistral': 570, 'n_tokens_neox': 544, 'n_words': 156}