<commit_before>CHECK_ALL = $(addprefix check-, $(BUILD_VERS))

check-all: $(CHECK_ALL) check-luajit

$(CHECK_ALL): check-lua%: build-lua%
	LUA_CPATH=build/lua$*/?.so $(LUA$*) runtests.lua

check-luajit: build-lua51
	LUA_CPATH=build/lua51/?.so $(or $(LUAJIT),luajit) runtests.lua

coverage.txt: build-lua53
	LUA_CPATH=build/lua53/?.so $(LUA53) -lluacov runtests.lua

luacheck:
	@luacheck gumbo.lua runtests.lua gumbo test examples


.PHONY: check-all $(CHECK_ALL) check-luajit luacheck<commit_msg>Try to find LuaJIT interpreter automatically for "make check-luajit"<commit_after>LUAJIT ?= $(or \
    $(shell command -v luajit51 || command -v luajit), \
    $(error Unable to find luajit command) \
)

CHECK_ALL = $(addprefix check-, $(BUILD_VERS))

check-all: $(CHECK_ALL) check-luajit

$(CHECK_ALL): check-lua%: build-lua%
	LUA_CPATH=build/lua$*/?.so $(LUA$*) runtests.lua

check-luajit: build-lua51
	LUA_CPATH=build/lua51/?.so $(LUAJIT) runtests.lua

coverage.txt: build-lua53
	LUA_CPATH=build/lua53/?.so $(LUA53) -lluacov runtests.lua

luacheck:
	@luacheck gumbo.lua runtests.lua gumbo test examples


.PHONY: check-all $(CHECK_ALL) check-luajit luacheck
{'fraction_non_alphanumeric': 0.15397923875432526, 'fraction_numerical': 0.01903114186851211, 'mean_word_length': 4.963917525773196, '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': '5057702', 'n_tokens_mistral': 495, 'n_tokens_neox': 473, 'n_words': 95}