<commit_before>.if !defined(TOPDIR)
.error "TOPDIR must be defined."
.endif

.if defined(NETWORK_TEST)
.if !defined(SKIP_NETWORK_TESTS)
TEST=${NETWORK_TEST}
.endif
.endif

.if defined(TEST)
.if !defined(SKIP_TESTS)
PROG_CXX=${TEST}
SRCS+=${TEST}.cc

.if !target(regress)
regress: ${PROG_CXX}
	${.OBJDIR}/${PROG_CXX}
.endif
.endif
.endif

.if !target(regress)
regress: ${PROG_CXX}
.endif

.PHONY: regress

CFLAGS+=-I${TOPDIR}
.if defined(NDEBUG)
CFLAGS+=-DNDEBUG=1
.else
CFLAGS+=-g
.endif

OSNAME!=uname -s

#CFLAGS+=--std gnu++0x
#CFLAGS+=-pedantic
CFLAGS+=-Wno-deprecated
CFLAGS+=-W -Wall<commit_msg>Disable -g on SunOS systems since at least my OpenSolaris setup can't link with it.<commit_after>.if !defined(TOPDIR)
.error "TOPDIR must be defined."
.endif

.if defined(NETWORK_TEST)
.if !defined(SKIP_NETWORK_TESTS)
TEST=${NETWORK_TEST}
.endif
.endif

.if defined(TEST)
.if !defined(SKIP_TESTS)
PROG_CXX=${TEST}
SRCS+=${TEST}.cc

.if !target(regress)
regress: ${PROG_CXX}
	${.OBJDIR}/${PROG_CXX}
.endif
.endif
.endif

.if !target(regress)
regress: ${PROG_CXX}
.endif

.PHONY: regress

OSNAME!=uname -s

CFLAGS+=-I${TOPDIR}
.if defined(NDEBUG)
CFLAGS+=-DNDEBUG=1
.else
.if ${OSNAME} != "SunOS"
CFLAGS+=-g
.endif
.endif

#CFLAGS+=--std gnu++0x
#CFLAGS+=-pedantic
CFLAGS+=-Wno-deprecated
CFLAGS+=-W -Wall
{'fraction_non_alphanumeric': 0.18098159509202455, 'fraction_numerical': 0.003067484662576687, 'mean_word_length': 5.214285714285714, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, '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': '4964357', 'n_tokens_mistral': 577, 'n_tokens_neox': 567, 'n_words': 119}