<commit_before>#include <stdio.h>
#include <stdlib.h>

#include <gphoto2.h>

#include "interface.h"

extern int glob_stdout;
extern int glob_quiet;

void
status_func (Camera *camera, const char *status, void *data)
{
	if (glob_quiet)
		return;

	if (*status) {
		printf ("Status: %s\r", status);
		fflush(stdout);
	}
}
<commit_msg>Not very clever fix that tries to clear the status message by printing a whole lot of blanks...<commit_after>#include <stdio.h>
#include <stdlib.h>

#include <gphoto2.h>

#include "interface.h"

extern int glob_stdout;
extern int glob_quiet;

void
status_func (Camera *camera, const char *status, void *data)
{
	if (glob_quiet)
		return;

	if (*status) {
		printf ("Status: %s\r", status);
		fflush(stdout);
	} else {

		/*
		 * This is not very clever - if you know any better,
		 * step forward.
		 */
		printf ("                                               \r");
	}
}

{'fraction_non_alphanumeric': 0.13274336283185842, 'fraction_numerical': 0.0022123893805309734, 'mean_word_length': 3.0765765765765765, 'pattern_counts': {'":': 0, '<': 9, '<?xml version=': 0, '>': 9, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 2, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '6181891', 'n_tokens_mistral': 339, 'n_tokens_neox': 309, 'n_words': 98}