<commit_before>
#include <stdio.h>

#include "output.h"

/*!
 * \ingroup mptOutput
 * \brief get print state
 * 
 * Determine print flags for message of
 * specified severity and limit.
 * 
 * \param arg  type of message
 * \param min  output limit for messages
 * 
 * \return outdata print state
 */
extern int mpt_output_type(uint8_t arg, int min)
{
	if (!arg) {
		return MPT_OUTFLAG(PrintNormal);
	}
	if (arg & MPT_LOG(File)) {
		if (arg & ~MPT_LOG(File)) {
			return MPT_OUTFLAG(PrintHistory) | MPT_OUTFLAG(PrintRestore);
		}
		return MPT_OUTFLAG(PrintHistory);
	}
	if (arg < min) {
		return 0;
	}
	return MPT_OUTFLAG(PrintError);
}<commit_msg>fix: log level compare in output type resolver<commit_after>
#include <stdio.h>

#include "output.h"

/*!
 * \ingroup mptOutput
 * \brief get print state
 * 
 * Determine print flags for message of
 * specified severity and limit.
 * 
 * \param arg  type of message
 * \param max  output limit for messages
 * 
 * \return outdata print state
 */
extern int mpt_output_type(uint8_t arg, int max)
{
	if (!arg) {
		return MPT_OUTFLAG(PrintNormal);
	}
	if (arg & MPT_LOG(File)) {
		if (arg & ~MPT_LOG(File)) {
			return MPT_OUTFLAG(PrintHistory) | MPT_OUTFLAG(PrintRestore);
		}
		return MPT_OUTFLAG(PrintHistory);
	}
	if (arg >= max) {
		return 0;
	}
	return MPT_OUTFLAG(PrintError);
}
{'fraction_non_alphanumeric': 0.11879699248120301, 'fraction_numerical': 0.0030075187969924814, 'mean_word_length': 3.719858156028369, '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': '4596929', 'n_tokens_mistral': 514, 'n_tokens_neox': 482, 'n_words': 135}