<commit_before>/** @file    mexutils.h
 ** @brief   MEX utilities
 ** @author  <NAME>
 **/

/* AUTORIGHTS
Copyright (C) 2007-09 <NAME> and <NAME>

This file is part of VLFeat, available in the terms of the GNU
General Public License version 2.
*/

#ifndef MEXUTILS_H
#define MEXUTILS_H

#include"mex.h"
#include<vl/generic.h>
#include<ctype.h>
#include<stdio.h>
#include<stdarg.h>

#ifdef VL_COMPILER_MSC
#define snprintf _snprintf
#define vsnprintf _vsnprintf
#endif

#if ! defined (MX_API_VER) | (MX_API_VER < 0x07030000)
typedef vl_uint32 mwSize ;
typedef vl_int32 mwIndex ;
#endif

/* these attributes supporess undefined symbols warning with GCC */
#ifdef VL_COMPILER_GNUC
EXTERN_C void __attribute__((noreturn))
mexErrMsgIdAndTxt
(const char * identifier, const char * err_msg, ...) ;

void __attribute__((noreturn))
mxuError
(char const * errorId, char const * errorMessage, ...) ;
#endif
/** @file mexutils.h

 This header file provides helper functions for writing MATLAB MEX
 files.<commit_msg>mexutils.h: adds IN() and OUT() macros to easily access input and output parameters of the MEX file<commit_after>/** @file    mexutils.h
 ** @brief   MEX utilities
 ** @author  <NAME>
 **/

/* AUTORIGHTS
Copyright (C) 2007-09 <NAME> and <NAME>

This file is part of VLFeat, available in the terms of the GNU
General Public License version 2.
*/

#ifndef MEXUTILS_H
#define MEXUTILS_H

#include"mex.h"
#include<vl/generic.h>
#include<ctype.h>
#include<stdio.h>
#include<stdarg.h>

#ifdef VL_COMPILER_MSC
#define snprintf _snprintf
#define vsnprintf _vsnprintf
#endif

#if ! defined (MX_API_VER) | (MX_API_VER < 0x07030000)
typedef vl_uint32 mwSize ;
typedef vl_int32 mwIndex ;
#endif

/* these attributes supporess undefined symbols warning with GCC */
#ifdef VL_COMPILER_GNUC
EXTERN_C void __attribute__((noreturn))
mexErrMsgIdAndTxt
(const char * identifier, const char * err_msg, ...) ;

void __attribute__((noreturn))
mxuError
(char const * errorId, char const * errorMessage, ...) ;
#endif

/** @brief Access MEX input argument */
#define IN(x) (in[IN_ ## x])

/** @brief Acces MEX output argument */
#define OUT(x) (out[OUT_ ## x])

/** @file mexutils.h

 This header file provides helper functions for writing MATLAB MEX
 files.
{'fraction_non_alphanumeric': 0.11438784629133154, 'fraction_numerical': 0.017873100983020553, 'mean_word_length': 4.755784061696658, 'pattern_counts': {'":': 0, '<': 19, '<?xml version=': 0, '>': 17, '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': '3580429', 'n_tokens_mistral': 853, 'n_tokens_neox': 793, 'n_words': 245}