<commit_before># charemap - play with substitution ciphers
# See LICENSE file for copyright and license details.

PROJECT  = charemap
VERSION  = 0.5
CFLAGS   = -std=c99 -pedantic -Wall -Wextra -march=native -DVERSION=\"${VERSION}\"
CPPFLAGS = $(shell pkg-config glib-2.0 --cflags)
LDLIBS   = $(shell pkg-config glib-2.0 --libs)
CC       = gcc
OBJ      = charemap.o decrypt.o utils.o
SRC	 = charemap.c decrypt.c utils.c charemap.h decrypt.h utils.h

${PROJECT}: options ${OBJ}
	$(CC) ${CFLAGS} ${CPPFLAGS} -o $(PROJECT) -lm $(OBJ) ${LDLIBS}

options:
	@echo charemap build options:
	@echo "CFLAGS   = ${CFLAGS}"
	@echo "CC       = ${CC}"
	@echo

clean:
	@echo cleaning
	@rm -f charemap charemap-${VERSION}.tar.gz *.txt *.o *~

dist: clean
	@echo creating dist tarball
	mkdir -p charemap-${VERSION}
	@cp -R README LICENSE Makefile languages samples ciphers ${SRC} charemap-${VERSION}
	@tar -cf charemap-${VERSION}.tar charemap-${VERSION}
	@gzip charemap-${VERSION}.tar
	rm -rf charemap-${VERSION}

.PHONY: options clean<commit_msg>Little improvement to makefile... there's no need to include .svn dirs when building the package.<commit_after># charemap - play with substitution ciphers
# See LICENSE file for copyright and license details.

PROJECT  = charemap
VERSION  = 0.5
CFLAGS   = -std=c99 -pedantic -Wall -Wextra -march=native -DVERSION=\"${VERSION}\"
CPPFLAGS = $(shell pkg-config glib-2.0 --cflags)
LDLIBS   = $(shell pkg-config glib-2.0 --libs)
CC       = gcc
OBJ      = charemap.o decrypt.o utils.o
SRC	 = charemap.c decrypt.c utils.c charemap.h decrypt.h utils.h

${PROJECT}: options ${OBJ}
	$(CC) ${CFLAGS} ${CPPFLAGS} -o $(PROJECT) -lm $(OBJ) ${LDLIBS}

options:
	@echo charemap build options:
	@echo "CFLAGS   = ${CFLAGS}"
	@echo "CC       = ${CC}"
	@echo

clean:
	@echo cleaning
	@rm -f charemap charemap-${VERSION}.tar.gz *.txt *.o *~

dist: clean
	@echo creating dist tarball
	mkdir -p charemap-${VERSION}
	@cp -R README LICENSE Makefile languages samples ciphers ${SRC} charemap-${VERSION}
	@tar --exclude=".svn" -cf charemap-${VERSION}.tar charemap-${VERSION}
	@gzip charemap-${VERSION}.tar
	rm -rf charemap-${VERSION}

.PHONY: options clean
{'fraction_non_alphanumeric': 0.15192218619731357, 'fraction_numerical': 0.007410838351088467, 'mean_word_length': 3.675324675324675, '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': '2152193', 'n_tokens_mistral': 829, 'n_tokens_neox': 806, 'n_words': 236}