<commit_before>OS := $(shell lsb_release -si)
UNAME := $(shell uname)
BUILD_DIR ?= build
SBCL := $(shell which sbcl)
PWD = $(shell pwd)
APT-GET = $(shell which apt-get)

print-%  : ; @echo $* = $($*)

all: cldm

cldm: minisatp deps
	$(SBCL) --no-userinit --no-sysinit --load $(BUILD_DIR)/asdf.lisp \
        --eval "(asdf:initialize-source-registry '(:source-registry (:tree \"$(PWD)/\") (:tree \"$(PWD)/$(BUILD_DIR)/\") :ignore-inherited-configuration))" \
        --script src/command-line.lisp

deps:
	mkdir build
#	git clone git://git.b9.com/puri.git $(BUILD_DIR)/puri
	curl http://beta.quicklisp.org/archive/puri/2010-10-06/puri-20101006-git.tgz | tar -xz -C $(BUILD_DIR)
	curl http://beta.quicklisp.org/archive/trivial-shell/2013-03-12/trivial-shell-20130312-git.tgz | tar -xz -C $(BUILD_DIR)
	git clone git://common-lisp.net/projects/alexandria/alexandria.git $(BUILD_DIR)/alexandria
	curl http://beta.quicklisp.org/archive/esrap/2014-01-13/esrap-20140113-git.tgz | tar -xz -C $(BUILD_DIR)
	git clone https://github.com/melisgl/named-readtables.git $(BUILD_DIR)/named-readtables
	curl http://beta.quicklisp.org/archive/trivial-types/2012-04-07/trivial-types-20120407-git.tgz | tar -xz -C $(BUILD_DIR)
	curl http://beta.quicklisp.org/archive/cl-syntax/2014-05-25/cl-syntax-20140525-git.tgz | tar -xz -C $(BUILD_DIR)
	git clone https://github.com/edicl/cl-ppcre.git $(BUILD_DIR)/cl-ppcre
	git clone https://github.com/pmai/md5.git $(BUILD_DIR)/md5
	git clone https://github.com/froydnj/nibbles.git $(BUILD_DIR)/nibbles
	git clone https://github.com/froydnj/ironclad.git $(BUILD_DIR)/ironclad
	git clone https://github.com/sharplispers/split-sequence.git $(BUILD_DIR)/split-sequence
	git clone https://github.com/trivial-features/trivial-features.git $(BUILD_DIR)/trivial-features
	curl https://common-lisp.net/project/bordeaux-threads/releases/bordeaux-threads-0.7.0.tar.gz | tar -xz -C $(BUILD_DIR)
	curl https://common-lisp.net/project/babel/releases/babel_latest.tar.gz | tar -xz -C $(BUILD_DIR)
	curl http://weitz.de/files/cl-fad.tar.gz | tar -xz -C $(BUILD_DIR)
	curl http://beta.quicklisp.org/archive/osicat/2015-03-02/osicat-20150302-git.tgz | tar -xz -C $(BUILD_DIR)
	curl https://www.lrde.epita.fr/~didier/software/lisp/clon/attic/clon-1.0b23.tar.gz | tar -xz -C $(BUILD_DIR)
	curl https://common-lisp.net/project/anaphora/files/anaphora-latest.tar.gz | tar -xz -C $(BUILD_DIR)
	curl https://common-lisp.net/project/cffi/releases/cffi_latest.tar.gz | tar -xz -C $(BUILD_DIR)
	curl https://common-lisp.net/project/asdf/asdf.lisp -o $(BUILD_DIR)/asdf.lisp

minisatp: minisat
ifndef APT-GET
	git clone https://github.com/niklasso/minisat.git build/minisat
	cd build/minisat && make
	git clone https://github.com/niklasso/minisatp.git build/minisatp
	cd build/minisatp && make
endif

minisat:
ifndef APT-GET
	git clone https://github.com/niklasso/minisat.git build/minisat
	cd build/minisat && make	
endif

install: install-minisatp

install-minisatp: install-minisat
ifdef APT-GET
	apt-get install minisat+
else
	cd $(BUILD_DIR)/minisat && make install
endif

install-minisat:
ifdef APT-GET
	apt-get install minisat
else
	cd $(BUILD_DIR)/minisatp && make install
endif

ql-install:
	cd ~/quicklisp/local-projects; ln -s $(PWD)

install: install-minisatp
	cp cldm /usr/local/bin

uninstall:
	rm /usr/local/bin/cldm

ql-uninstall:
	rm ~/quicklisp/local-projects/cldm	

clean:
	rm cldm
	rm -rf build
<commit_msg>Makefile fix<commit_after>OS := $(shell lsb_release -si)
UNAME := $(shell uname)
BUILD_DIR ?= build
SBCL := $(shell which sbcl)
PWD = $(shell pwd)
APT-GET = $(shell which apt-get)

print-%  : ; @echo $* = $($*)

all: cldm

cldm: minisatp deps
	$(SBCL) --no-userinit --no-sysinit --load $(BUILD_DIR)/asdf.lisp \
        --eval "(asdf:initialize-source-registry '(:source-registry (:tree \"$(PWD)/\") (:tree \"$(PWD)/$(BUILD_DIR)/\") :ignore-inherited-configuration))" \
        --script src/command-line.lisp

deps:
	mkdir build
#	git clone git://git.b9.com/puri.git $(BUILD_DIR)/puri
	curl http://beta.quicklisp.org/archive/puri/2010-10-06/puri-20101006-git.tgz | tar -xz -C $(BUILD_DIR)
	curl http://beta.quicklisp.org/archive/trivial-shell/2013-03-12/trivial-shell-20130312-git.tgz | tar -xz -C $(BUILD_DIR)
	git clone git://common-lisp.net/projects/alexandria/alexandria.git $(BUILD_DIR)/alexandria
	curl http://beta.quicklisp.org/archive/esrap/2014-01-13/esrap-20140113-git.tgz | tar -xz -C $(BUILD_DIR)
	git clone https://github.com/melisgl/named-readtables.git $(BUILD_DIR)/named-readtables
	curl http://beta.quicklisp.org/archive/trivial-types/2012-04-07/trivial-types-20120407-git.tgz | tar -xz -C $(BUILD_DIR)
	curl http://beta.quicklisp.org/archive/cl-syntax/2014-05-25/cl-syntax-20140525-git.tgz | tar -xz -C $(BUILD_DIR)
	git clone https://github.com/edicl/cl-ppcre.git $(BUILD_DIR)/cl-ppcre
	git clone https://github.com/pmai/md5.git $(BUILD_DIR)/md5
	git clone https://github.com/froydnj/nibbles.git $(BUILD_DIR)/nibbles
	git clone https://github.com/froydnj/ironclad.git $(BUILD_DIR)/ironclad
	git clone https://github.com/sharplispers/split-sequence.git $(BUILD_DIR)/split-sequence
	git clone https://github.com/trivial-features/trivial-features.git $(BUILD_DIR)/trivial-features
	curl https://common-lisp.net/project/bordeaux-threads/releases/bordeaux-threads-0.7.0.tar.gz | tar -xz -C $(BUILD_DIR)
	curl https://common-lisp.net/project/babel/releases/babel_latest.tar.gz | tar -xz -C $(BUILD_DIR)
	curl http://weitz.de/files/cl-fad.tar.gz | tar -xz -C $(BUILD_DIR)
	curl http://beta.quicklisp.org/archive/osicat/2015-03-02/osicat-20150302-git.tgz | tar -xz -C $(BUILD_DIR)
	curl https://www.lrde.epita.fr/~didier/software/lisp/clon/attic/clon-1.0b23.tar.gz | tar -xz -C $(BUILD_DIR)
	curl https://common-lisp.net/project/anaphora/files/anaphora-latest.tar.gz | tar -xz -C $(BUILD_DIR)
	curl https://common-lisp.net/project/cffi/releases/cffi_latest.tar.gz | tar -xz -C $(BUILD_DIR)
	curl https://common-lisp.net/project/asdf/asdf.lisp -o $(BUILD_DIR)/asdf.lisp

minisatp: minisat
ifndef APT-GET
	git clone https://github.com/niklasso/minisatp.git build/minisatp
	cd build/minisatp && make
endif

minisat:
ifndef APT-GET
	git clone https://github.com/niklasso/minisat.git build/minisat
	cd build/minisat && make	
endif

install: install-minisatp

install-minisatp: install-minisat
ifdef APT-GET
	apt-get install minisat+
else
	cd $(BUILD_DIR)/minisat && make install
endif

install-minisat:
ifdef APT-GET
	apt-get install minisat
else
	cd $(BUILD_DIR)/minisatp && make install
endif

ql-install:
	cd ~/quicklisp/local-projects; ln -s $(PWD)

install: install-minisatp
	cp cldm /usr/local/bin

uninstall:
	rm /usr/local/bin/cldm

ql-uninstall:
	rm ~/quicklisp/local-projects/cldm	

clean:
	rm cldm
	rm -rf build

{'fraction_non_alphanumeric': 0.16671606401896857, 'fraction_numerical': 0.03141671606401897, 'mean_word_length': 3.9334795321637426, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 31, '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': '839679', 'n_tokens_mistral': 2923, 'n_tokens_neox': 2678, 'n_words': 468}