<commit_before>RUSTC ?= rustc
RUSTDOC ?= rustdoc
.PHONY: all build doc libs libjit libjit_macro libjs libjs_syntax update-doc clean
all: libs build doc
libjs:
	mkdir -p target
	cd target && $(RUSTC) ../src/libjs/lib.rs -L .
libjs_syntax:
	mkdir -p target
	cd target && $(RUSTC) ../src/libjs_syntax/lib.rs -L .
libjit_macro:
	mkdir -p target
	cd target && $(RUSTC) ../src/libjit_macro/lib.rs -L .
libjit:
	mkdir -p target
	cd target && $(RUSTC) ../src/libjit/lib.rs -L .
libs: libjit libjit_macro libjs_syntax libjs
build:
	mkdir -p target
	cd target && $(RUSTC) ../src/front/front.rs -L .
install:
	sudo cp -f target/js.rs /usr/local/bin/
	sudo cp -f target/libjs*.so /usr/local/lib
	sudo cp -f target/libjit*.so /usr/local/lib
	-sudo ln -s /usr/local/bin/js.rs /usr/bin/js.rs
doc:
	$(RUSTDOC) src/libjit/lib.rs -o doc -L target
	$(RUSTDOC) src/libjs/lib.rs -o doc -L target
	$(RUSTDOC) src/libjs_syntax/lib.rs -o doc -L target
update-doc: doc
	rm -rf /tmp/doc
	mv doc /tmp/doc
	git checkout gh-pages
	rm -rf ./*
	mv /tmp/doc/* .
	-git add -A .
	-git commit -a -m "Auto-update docs"
	-git push origin gh-pages
	git checkout master
clean:
	rm -rf target/*
<commit_msg>Generate docs for LibJIT macros and frontend<commit_after>RUSTC ?= rustc
RUSTDOC ?= rustdoc
.PHONY: all build doc libs libjit libjit_macro libjs libjs_syntax update-doc clean
all: libs build doc
libjs:
	mkdir -p target
	cd target && $(RUSTC) ../src/libjs/lib.rs -L .
libjs_syntax:
	mkdir -p target
	cd target && $(RUSTC) ../src/libjs_syntax/lib.rs -L .
libjit_macro:
	mkdir -p target
	cd target && $(RUSTC) ../src/libjit_macro/lib.rs -L .
libjit:
	mkdir -p target
	cd target && $(RUSTC) ../src/libjit/lib.rs -L .
libs: libjit libjit_macro libjs_syntax libjs
build:
	mkdir -p target
	cd target && $(RUSTC) ../src/front/front.rs -L .
install:
	sudo cp -f target/js.rs /usr/local/bin/
	sudo cp -f target/libjs*.so /usr/local/lib
	sudo cp -f target/libjit*.so /usr/local/lib
	-sudo ln -s /usr/local/bin/js.rs /usr/bin/js.rs
doc:
	$(RUSTDOC) src/libjit/lib.rs -o doc -L target
	$(RUSTDOC) src/libjit_macro/lib.rs -o doc -L target
	$(RUSTDOC) src/libjs/lib.rs -o doc -L target
	$(RUSTDOC) src/libjs_syntax/lib.rs -o doc -L target
	$(RUSTDOC) src/front/front.rs -o doc -L target
update-doc: doc
	rm -rf /tmp/doc
	mv doc /tmp/doc
	git checkout gh-pages
	rm -rf ./*
	mv /tmp/doc/* .
	-git add -A .
	-git commit -a -m "Auto-update docs"
	-git push origin gh-pages
	git checkout master
clean:
	rm -rf target/*

{'fraction_non_alphanumeric': 0.15004055150040552, 'fraction_numerical': 0.0, 'mean_word_length': 2.8728414442700156, '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': '428679', 'n_tokens_mistral': 1111, 'n_tokens_neox': 1037, 'n_words': 306}