<commit_before>.SILENT: env test clean qa
.PHONY: env test clean qa

ENV=$(shell pwd)/env
LUA_IMPL=
LUA_VERSION=5.1.5
PLATFORM=macosx
LUA_ROCKS_VERSION=2.2.2
LIBMEMCACHED_DIR=/opt/local


env:
	rm -rf $(ENV) ; mkdir -p $(ENV) ; \
	unset LUA_PATH ; unset LUA_CPATH ; \
	if [ "$(LUA_IMPL)" = "luajit" ] ; then \
		wget -c http://luajit.org/download/LuaJIT-$(LUA_VERSION).tar.gz \
			-O - | tar xzf - ; \
	  	cd LuaJIT-$(LUA_VERSION) ; \
		export MACOSX_DEPLOYMENT_TARGET=10.10 ; \
	    make -s install PREFIX=$(ENV) INSTALL_INC=$(ENV)/include ; \
		ln -sf luajit-$(LUA_VERSION) $(ENV)/bin/lua ; \
		cd .. ; rm -rf luajit-$(LUA_VERSION) ; \
	else \
		wget -c http://www.lua.org/ftp/lua-$(LUA_VERSION).tar.gz \
			-O - | tar -xzf - ; \
		cd lua-$(LUA_VERSION) ; \
		make -s $(PLATFORM) install INSTALL_TOP=$(ENV) ; \
		cd .. ; rm -rf lua-$(LUA_VERSION) ; \
	fi ; \
	wget -c http://luarocks.org/releases/luarocks-$(LUA_ROCKS_VERSION).tar.gz \
		-O - | tar -xzf - ; \
	cd luarocks-$(LUA_ROCKS_VERSION) ; \
	./configure --prefix=$(ENV) --with-lua=$(ENV) --sysconfdir=$(ENV) \
		--force-config && \
	make -s build install && \
	cd .. ; rm -rf luarocks-$(LUA_ROCKS_VERSION) ; \
	for rock in busted luacov luacheck; do \
		$(ENV)/bin/luarocks --deps-mode=one install $$rock ; \
	done

debian:
	apt-get install build-essential unzip libncurses5-dev libreadline6-dev \
		libssl-dev libmemcached-dev<commit_msg>replaces spaces with tabs in Makefile<commit_after>.SILENT: env test clean qa
.PHONY: env test clean qa

ENV=$(shell pwd)/env
LUA_IMPL=
LUA_VERSION=5.1.5
PLATFORM=macosx
LUA_ROCKS_VERSION=2.2.2
LIBMEMCACHED_DIR=/opt/local


env:
	rm -rf $(ENV) ; mkdir -p $(ENV) ; \
	unset LUA_PATH ; unset LUA_CPATH ; \
	if [ "$(LUA_IMPL)" = "luajit" ] ; then \
		wget -c http://luajit.org/download/LuaJIT-$(LUA_VERSION).tar.gz \
			-O - | tar xzf - ; \
		cd LuaJIT-$(LUA_VERSION) ; \
		export MACOSX_DEPLOYMENT_TARGET=10.10 ; \
		make -s install PREFIX=$(ENV) INSTALL_INC=$(ENV)/include ; \
		ln -sf luajit-$(LUA_VERSION) $(ENV)/bin/lua ; \
		cd .. ; rm -rf luajit-$(LUA_VERSION) ; \
	else \
		wget -c http://www.lua.org/ftp/lua-$(LUA_VERSION).tar.gz \
			-O - | tar -xzf - ; \
		cd lua-$(LUA_VERSION) ; \
		make -s $(PLATFORM) install INSTALL_TOP=$(ENV) ; \
		cd .. ; rm -rf lua-$(LUA_VERSION) ; \
	fi ; \
	wget -c http://luarocks.org/releases/luarocks-$(LUA_ROCKS_VERSION).tar.gz \
		-O - | tar -xzf - ; \
	cd luarocks-$(LUA_ROCKS_VERSION) ; \
	./configure --prefix=$(ENV) --with-lua=$(ENV) --sysconfdir=$(ENV) \
		--force-config && \
	make -s build install && \
	cd .. ; rm -rf luarocks-$(LUA_ROCKS_VERSION) ; \
	for rock in busted luacov luacheck; do \
		$(ENV)/bin/luarocks --deps-mode=one install $$rock ; \
	done

debian:
	apt-get install build-essential unzip libncurses5-dev libreadline6-dev \
		libssl-dev libmemcached-dev
{'fraction_non_alphanumeric': 0.18259325044404973, 'fraction_numerical': 0.00852575488454707, 'mean_word_length': 2.884137931034483, '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': 2, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '5333070', 'n_tokens_mistral': 1297, 'n_tokens_neox': 1226, 'n_words': 236}