<commit_before>LIB_DIR = lib
NODE_STATIC_DIR = ${LIB_DIR}/node-static
SOCKET_IO_DIR = ${LIB_DIR}/socket.io
UNDERSCORE_DIR = ${LIB_DIR}/underscore
BOMBERMAN_CLIENT_DIR = ${LIB_DIR}/bomberman-client
OGE_DIR = ${LIB_DIR}/oge

all: update

update: 
	$(call clone_or_pull, ${NODE_STATIC_DIR}, https://github.com/cloudhead/node-static.git)
	$(call clone_or_pull, ${SOCKET_IO_DIR}, https://github.com/LearnBoost/Socket.IO-node.git)
	$(call clone_or_pull, ${BOMBERMAN_CLIENT_DIR}, https://github.com/eirikb/bomberman-client.git)
	$(call clone_or_pull, ${UNDERSCORE_DIR}, https://github.com/documentcloud/underscore.git)
	$(call clone_or_pull, ${OGE_DIR}, https://github.com/eirikb/oge.git)

hack:
	cd ${BOMBERMAN_CLIENT_DIR};make update
	cd public; \
		ln -s ../${BOMBERMAN_CLIENT_DIR}/public/* ./; \
		ln -s ../${BOMBERMAN_CLIENT_DIR}/lib/qunit/qunit/qunit.* ./; \
		ln -s ../${OGE_DIR}/dist/oge.js ./; \
		ln -s ../${UNDERSCORE_DIR}/underscore.js ./;\
		ln -s ../${BOMBERMAN_CLIENT_DIR}/src/* ./;

define clone_or_pull
-@@if test ! -d $(strip ${1})/.git; then \
	echo "Cloning $(strip ${1})..."; \
	git clone $(strip ${verbose}) --depth=1 $(strip ${2}) $(strip ${1}); \
	else \
	echo "Pulling $(strip ${1})..."; \
	git --git-dir=$(strip ${1})/.git pull $(strip ${verbose}) origin master; \
	fi

endef

.PHONY: all update hack
<commit_msg>Removed stuff I don't use / need<commit_after>LIB_DIR = lib
NODE_STATIC_DIR = ${LIB_DIR}/node-static
SOCKET_IO_DIR = ${LIB_DIR}/socket.io
UNDERSCORE_DIR = ${LIB_DIR}/underscore
BOMBERMAN_CLIENT_DIR = ${LIB_DIR}/bomberman-client

all: update

update: 
	$(call clone_or_pull, ${NODE_STATIC_DIR}, https://github.com/cloudhead/node-static.git)
	$(call clone_or_pull, ${SOCKET_IO_DIR}, https://github.com/LearnBoost/Socket.IO-node.git)
	$(call clone_or_pull, ${BOMBERMAN_CLIENT_DIR}, https://github.com/eirikb/bomberman-client.git)
	$(call clone_or_pull, ${UNDERSCORE_DIR}, https://github.com/documentcloud/underscore.git)

hack:
	cd public; \
		ln -s ../${BOMBERMAN_CLIENT_DIR}/public/* ./; \
		ln -s ../${BOMBERMAN_CLIENT_DIR}/dist/bomberman.all.min.js ./;

define clone_or_pull
-@@if test ! -d $(strip ${1})/.git; then \
	echo "Cloning $(strip ${1})..."; \
	git clone $(strip ${verbose}) --depth=1 $(strip ${2}) $(strip ${1}); \
	else \
	echo "Pulling $(strip ${1})..."; \
	git --git-dir=$(strip ${1})/.git pull $(strip ${verbose}) origin master; \
	fi

endef

.PHONY: all update hack

{'fraction_non_alphanumeric': 0.20372670807453416, 'fraction_numerical': 0.005797101449275362, 'mean_word_length': 4.173447537473233, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 9, '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': '5224483', 'n_tokens_mistral': 984, 'n_tokens_neox': 970, 'n_words': 179}