<commit_before>#ifndef _edna_config_
#define _edna_config_
#include "edna.h"
#include "buffer.h"
#include "cmd.h"
#include "state.h"

/* settings */
#define PROMPT		"\r\033[K:"
#define PRINT_FMT	"%s", (*arg->sel.v)->str->v
#define INS_PROMPT	" \b"
#define ERROR		"?\n"

/* advanced examples */
//#define PROMPT	"%ld:", bufgetpos(buf)			/* have line numbers in prompt */
//#define INS_PROMPT	"%ld|", bufgetpos(buf)			/* have line number in ins mode */
//#define PRINT_FMT	"%ld\t%s", bufgetpos(buf),(*arg->sel.v)->str	/* like ed's 'n' */
//#define ERROR		"%s\n", err				/* like ed's 'H', without the '?' */

extern const Mode modes[];
extern const Command commands[];

#endif<commit_msg>tweak the ``advanced examples''<commit_after>#ifndef _edna_config_
#define _edna_config_
#include "edna.h"
#include "buffer.h"
#include "cmd.h"
#include "state.h"

/* settings */
#define PROMPT		"\r\033[K:"
#define PRINT_FMT	"%s", (*arg->sel.v)->str->v
#define INS_PROMPT	" \b"
#define ERROR		"?\n"

/* advanced examples */
//#define PROMPT	"%ld:", bufgetpos(buf)			/* have line numbers in prompt */
//#define INS_PROMPT	"%ld|", bufgetpos(buf)			/* have line number in ins mode */
//#define PRINT_FMT	"%ld|%s", bufgetpos(buf),\
//					(*arg->sel.v)->str->v	/* like ed's 'n' */
//#define ERROR		"%s\n", err				/* like ed's 'H', without the '?' */

extern const Mode modes[];
extern const Command commands[];

#endif
{'fraction_non_alphanumeric': 0.20800571837026446, 'fraction_numerical': 0.004288777698355968, 'mean_word_length': 3.912280701754386, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 14, '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': '4571572', 'n_tokens_mistral': 574, 'n_tokens_neox': 559, 'n_words': 147}