<commit_before>#ifndef _AV_STUBS_H_               
#define _AV_STUBS_H_

#include <caml/mlvalues.h>

#include <libavformat/avformat.h>

AVFormatContext *ocaml_av_get_format_context(value *p_av);

#if AV_VERSION_INT(59, 0, 100) < LIBAVFORMAT_VERSION_INT
#define avioformat_const const
#else
#define avioformat_const
#endif

/***** AVInputFormat *****/

#define InputFormat_val(v) (*(avioformat_const AVInputFormat**)Data_abstract_val(v))
<commit_msg>Better logic.<commit_after>#ifndef _AV_STUBS_H_               
#define _AV_STUBS_H_

#include <caml/mlvalues.h>

#include <libavformat/avformat.h>

AVFormatContext *ocaml_av_get_format_context(value *p_av);

#if LIBAVFORMAT_VERSION_INT <= AV_VERSION_INT(59, 0, 100)
#define avioformat_const
#else
#define avioformat_const const
#endif

/***** AVInputFormat *****/

#define InputFormat_val(v) (*(avioformat_const AVInputFormat**)Data_abstract_val(v))

{'fraction_non_alphanumeric': 0.12235817575083426, 'fraction_numerical': 0.013348164627363738, 'mean_word_length': 6.563025210084033, 'pattern_counts': {'":': 0, '<': 9, '<?xml version=': 0, '>': 7, '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': '7505207', 'n_tokens_mistral': 359, 'n_tokens_neox': 339, 'n_words': 57}