<commit_before>/*
 * checkconf - Read and repeat configuration file to output.
 *
 * Copyright (c) 2001-2006, NLnet Labs. All rights reserved.
 *
 * See LICENSE for the license.
 *
 */
#include <config.h>
#include <stdio.h>
#include <unistd.h>
#include <string.h>
#include <limits.h>
#include "options.h"
#include "util.h"
#include "dname.h"

#define ZONE_GET_ACL(NAME, VAR) 		\
	if (strcasecmp(#NAME, (VAR)) == 0) { 	\
		quote_acl((zone->NAME)); 		\
		fputs("", stdout); 		\
		return; 			\
	}

#define ZONE_GET_STR(NAME, VAR) 		\
	if (strcasecmp(#NAME, (VAR)) == 0) { 	\
		quote(zone->NAME); 		\
		fputs("", stdout); 		\
		return; 			\
	}

#define ZONE_GET_BINARY(NAME, VAR) 			\
	if (strcasecmp(#NAME, (VAR)) == 0) { 		\
		printf("%s\n", zone->NAME?"yes":"no"); 	\
	}

#define SERV_GET_BINARY(NAME, VAR) 			\
	if (strcasecmp(#NAME, (VAR)) == 0) { 		\
		printf("%s\n", opt->NAME?"yes":"no"); 	\
	}

static char buf[BUFSIZ];

static char *
underscore(const char *s) {
	char *j = (char*)s;
	size_t i = 0;

	while(j) {
		if (*j == '-') {
			buf[i++] = '_';
		} else {<commit_msg>less ugly<commit_after>/*
 * checkconf - Read and repeat configuration file to output.
 *
 * Copyright (c) 2001-2006, NLnet Labs. All rights reserved.
 *
 * See LICENSE for the license.
 *
 */
#include <config.h>
#include <stdio.h>
#include <unistd.h>
#include <string.h>
#include <limits.h>
#include "options.h"
#include "util.h"
#include "dname.h"

#define ZONE_GET_ACL(NAME, VAR) 		\
	if (strcasecmp(#NAME, (VAR)) == 0) { 	\
		quote_acl((zone->NAME)); 		\
		fputs("", stdout); 		\
		return; 			\
	}

#define ZONE_GET_STR(NAME, VAR) 		\
	if (strcasecmp(#NAME, (VAR)) == 0) { 	\
		quote(zone->NAME); 		\
		fputs("", stdout); 		\
		return; 			\
	}

#define ZONE_GET_BINARY(NAME, VAR) 			\
	if (strcasecmp(#NAME, (VAR)) == 0) { 		\
		printf("%s\n", zone->NAME?"yes":"no"); 	\
	}

#define SERV_GET_BINARY(NAME, VAR) 			\
	if (strcasecmp(#NAME, (VAR)) == 0) { 		\
		printf("%s\n", opt->NAME?"yes":"no"); 	\
	}

static char buf[BUFSIZ];

static char *
underscore(const char *s) {
	const char *j = s;
	size_t i = 0;

	while(*j) {
		if (*j == '-') {
			buf[i++] = '_';
		} else {
{'fraction_non_alphanumeric': 0.21302325581395348, 'fraction_numerical': 0.012093023255813953, 'mean_word_length': 3.0661625708884688, 'pattern_counts': {'":': 4, '<': 13, '<?xml version=': 0, '>': 21, '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': '3573518', 'n_tokens_mistral': 1030, 'n_tokens_neox': 939, 'n_words': 196}