<commit_before># sudo apt-get install libpcap-dev

SRC=knock-0.7
TAR=${SRC}.tar.gz
URL=http://www.zeroflux.org/proj/knock/files/${TAR}

all: knock.bc knockd.bc

${TAR}:
	wget ${URL}

${SRC}: ${TAR}
	tar xvfz ${TAR}

${SRC}/knockd: ${SRC}
	cd ${SRC}; CC=gclang ./configure; make; 

knockd.bc: ${SRC}/knockd modules
	cd ${SRC}; get-bc -m knockd; mv knockd.bc  knockd.bc.llvm.manifest ../

knock.bc: ${SRC}/knockd
	cd ${SRC}; get-bc -m knock; mv knock.bc  knock.bc.llvm.manifest ../<commit_msg>Makefile tweaks. (so as to not annoy JV)<commit_after># sudo apt-get install libpcap-dev

SRC=knock-0.7
TAR=${SRC}.tar.gz
URL=http://www.zeroflux.org/proj/knock/files/${TAR}

all: knock.bc knockd.bc

${TAR}:
	wget ${URL}

${SRC}: ${TAR}
	tar xvfz ${TAR}

${SRC}/knockd: ${SRC}
	cd ${SRC}; CC=gclang ./configure; make; 

knockd.bc: ${SRC}/knockd modules
	get-bc -m -o knockd.bc ${SRC}/knockd

knock.bc: ${SRC}/knock modules
	get-bc -m -o knock.bc ${SRC}/knock
{'fraction_non_alphanumeric': 0.21180189673340358, 'fraction_numerical': 0.004214963119072708, 'mean_word_length': 3.75, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 2, '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': '1660128', 'n_tokens_mistral': 439, 'n_tokens_neox': 411, 'n_words': 96}