<commit_before>#######################################################
# Wake Up Platform                                    #
# (c) Telefonica Digital, 2013 - All rights reserved  #
# License: GNU Affero V3 (see LICENSE file)           #
# <NAME> <<EMAIL>>             #
#######################################################

GIT  ?= git
NODE ?= node
NPM ?= npm
GJSLINT ?= gjslint
FIXJSSTYLE ?= fixjsstyle

.PHONY = about dev all version.info
.PHONY = clean clean_local
.PHONY = build build_local
.PHONY = install tests

all: dev install

about:
	@echo "Telefonica R&D WakeUp platform, (c) 2014"
	@echo " use make dev to build development environment"
	@echo " use make all to build development environment and final builds"

dev: clean check_style build tests

version.info:
	@echo "Getting version information from GIT ..."
	@$(GIT) describe --all --always > src/version.info
	@echo " - Version = " `cat src/version.info`

clean: clean_local clean_tests
	@echo "Cleaning ..."
	@find . -name "*log" -exec rm -f {} \;

clean_local:
	@echo "Cleaning local server instance ..."
	@rm -f src/version.info
	@rm -rf src/node_modules
	@rm -rf src/shared_libs
	@rm -f src/routers/shared*
	@rm -rf output
	@find . -name "*log" -exec rm -f {} \;

clean_tests:
	@echo "Cleaning tests auxiliar files ..."
	@rm -rf tests/node_modules

build: version.info build_local<commit_msg>Only clean *.log files (with log extension and not in the file/folder name)<commit_after>#######################################################
# Wake Up Platform                                    #
# (c) Telefonica Digital, 2013 - All rights reserved  #
# License: GNU Affero V3 (see LICENSE file)           #
# <NAME> <<EMAIL>>             #
#######################################################

GIT  ?= git
NODE ?= node
NPM ?= npm
GJSLINT ?= gjslint
FIXJSSTYLE ?= fixjsstyle

.PHONY = about dev all version.info
.PHONY = clean clean_local
.PHONY = build build_local
.PHONY = install tests

all: dev install

about:
	@echo "Telefonica R&D WakeUp platform, (c) 2014"
	@echo " use make dev to build development environment"
	@echo " use make all to build development environment and final builds"

dev: clean check_style build tests

version.info:
	@echo "Getting version information from GIT ..."
	@$(GIT) describe --all --always > src/version.info
	@echo " - Version = " `cat src/version.info`

clean: clean_local clean_tests
	@echo "Cleaning ..."
	@find . -name "*.log" -exec rm -f {} \;

clean_local:
	@echo "Cleaning local server instance ..."
	@rm -f src/version.info
	@rm -rf src/node_modules
	@rm -rf src/shared_libs
	@rm -f src/routers/shared*
	@rm -rf output

clean_tests:
	@echo "Cleaning tests auxiliar files ..."
	@rm -rf tests/node_modules

build: version.info build_local
{'fraction_non_alphanumeric': 0.1891989851395433, 'fraction_numerical': 0.006524102935846321, 'mean_word_length': 3.3328100470957613, 'pattern_counts': {'":': 0, '<': 9, '<?xml version=': 0, '>': 11, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, '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': '1382323', 'n_tokens_mistral': 911, 'n_tokens_neox': 864, 'n_words': 295}