<commit_before>//SPDX-License-Identifier: LGPL-2.0-or-later
/*

   Copyright (c) 2014-2022 <NAME> <<EMAIL>>

 */

#ifndef GP_WIDGET_LOG_H
#define GP_WIDGET_LOG_H

#include <stdlib.h>

struct gp_widget_log {
	gp_widget_tattr tattr;
	unsigned int min_width;
	unsigned int min_lines;
	const char **logs;
};

/**
 * @brief Appends text to the log.
 *
 * @self A log widget.
 * @param text Text to be appended.
 */
void gp_widget_log_append(gp_widget *self, const char *text);

/**
 * @brief Allocates a log widget.
 *
 * @return Newly allocated log widget.
 */
gp_widget *gp_widget_log_new(gp_widget_tattr tattr,
                             unsigned int min_width, unsigned int min_lines);

#endif /* GP_WIDGET_LOG_H */<commit_msg>widgets: log: fix warnings<commit_after>//SPDX-License-Identifier: LGPL-2.0-or-later
/*

   Copyright (c) 2014-2022 <NAME> <<EMAIL>>

 */

#ifndef GP_WIDGET_LOG_H
#define GP_WIDGET_LOG_H

#include <stdlib.h>

struct gp_widget_log {
	gp_widget_tattr tattr;
	unsigned int min_width;
	unsigned int min_lines;
	char **logs;
};

/**
 * @brief Appends text to the log.
 *
 * @self A log widget.
 * @param text Text to be appended.
 */
void gp_widget_log_append(gp_widget *self, const char *text);

/**
 * @brief Allocates a log widget.
 *
 * @return Newly allocated log widget.
 */
gp_widget *gp_widget_log_new(gp_widget_tattr tattr,
                             unsigned int min_width, unsigned int min_lines);

#endif /* GP_WIDGET_LOG_H */
{'fraction_non_alphanumeric': 0.11619958988380041, 'fraction_numerical': 0.01367053998632946, 'mean_word_length': 3.477064220183486, 'pattern_counts': {'":': 0, '<': 11, '<?xml version=': 0, '>': 11, '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': '7636026', 'n_tokens_mistral': 554, 'n_tokens_neox': 530, 'n_words': 140}