<commit_before>#include "leafnode.h"
#include "ln_log.h"
#include "mastring.h"

#include <stdarg.h>

#ifdef WITH_DMALLOC
#include <dmalloc.h>
#endif

#include <stdio.h>

/*
 * 05/26/97 - <NAME> - Send a string out, keeping a copy in reserve.
 */
void
putaline(FILE * f, const char *fmt, ...)
{
    char lineout[1025];
    va_list args;

    va_start(args, fmt);
    vsnprintf(lineout, sizeof(lineout), fmt, args);
    if (debug & DEBUG_IO)
	ln_log(LNLOG_SDEBUG, LNLOG_CALL, ">%s", lineout);
    (void)mastrncpy(last_command, lineout, sizeof(lineout));
    fprintf(f, "%s\r\n", lineout);
    fflush(f);
    va_end(args);
}
<commit_msg>Look at debugmode, not at debug. Leafnode code that changes debug levels should be dropped.<commit_after>#include "leafnode.h"
#include "ln_log.h"
#include "mastring.h"

#include <stdarg.h>

#ifdef WITH_DMALLOC
#include <dmalloc.h>
#endif

#include <stdio.h>

/*
 * 05/26/97 - <NAME> - Send a string out, keeping a copy in reserve.
 */
void
putaline(FILE * f, const char *fmt, ...)
{
    char lineout[1025];
    va_list args;

    va_start(args, fmt);
    vsnprintf(lineout, sizeof(lineout), fmt, args);
    if (debugmode & DEBUG_IO)
	ln_log(LNLOG_SDEBUG, LNLOG_CALL, ">%s", lineout);
    (void)mastrncpy(last_command, lineout, sizeof(lineout));
    fprintf(f, "%s\r\n", lineout);
    fflush(f);
    va_end(args);
}

{'fraction_non_alphanumeric': 0.16074074074074074, 'fraction_numerical': 0.014814814814814815, 'mean_word_length': 3.9127272727272726, 'pattern_counts': {'":': 0, '<': 11, '<?xml version=': 0, '>': 13, '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': '5339290', 'n_tokens_mistral': 553, 'n_tokens_neox': 535, 'n_words': 128}