<commit_before># Warning: setting these might break the tests, which currently have hardcoded links:
# You'll need to change the files below to fix this:
### test/CPPTestsSpec.js - Change the testingModule src.
### scripts/NaClConfig.js - Change the CONFIG and TOOLCHAIN properties.


TOOLCHAIN ?= pnacl
CONFIG ?= Release


export TOOLCHAIN
export CONFIG


mkfile_path = $(abspath $(lastword $(MAKEFILE_LIST)))
current_dir = $(patsubst %/,%,$(dir $(mkfile_path)))

RPCLIB_DIR = cpp
TEST_CODE_DIR = test/cpp
EETEST_CODE_DIR = test/e2e

# Used to pipe stdout. useful for gtest output.
NACL_EXE_STDOUT ?= ${current_dir}/nacl_std_out.log

# Used to easily run npm module binaries (e.g. karma)
NM_BIN_PATH := ${current_dir}/node_modules/.bin
RJS_BIN := ./node_modules/requirejs/bin/r.js
KARMA_BIN := ./node_modules/karma/bin/karma
KARMA_START := $(KARMA_BIN) start
KARMA_WATCH_ARGS := --client.args=$(TOOLCHAIN) --client.args=$(CONFIG)
KARMA_RUN_ARGS := $(KARMA_WATCH_ARGS) --single-run
KARMA_CPP_CONF := karma-cpp.conf.js
KARMA_JS_CONF := karma-js.conf.js
KARMA_EE_CONF := karma-e2e.conf.js

all: .PHONY

.PHONY: libs tests eetests demos

#install
install: $(NM_BIN_PATH) js
	$(MAKE) -C $(RPCLIB_DIR) TOOLCHAIN=all CONFIG=Release
	$(MAKE) -C $(RPCLIB_DIR) TOOLCHAIN=all CONFIG=Debug

# anything that needs an npm module will need to install packages
$(NM_BIN_PATH):
	npm install

$(KARMA_BIN) $(RJS_BIN):
	npm install

# Make each part
js:
	$(RJS_BIN) -o scripts/build/build.require.js

libs:
	$(MAKE) -C $(RPCLIB_DIR)<commit_msg>Default make now includes npm modules installation<commit_after># Warning: setting these might break the tests, which currently have hardcoded links:
# You'll need to change the files below to fix this:
### test/CPPTestsSpec.js - Change the testingModule src.
### scripts/NaClConfig.js - Change the CONFIG and TOOLCHAIN properties.


TOOLCHAIN ?= pnacl
CONFIG ?= Release


export TOOLCHAIN
export CONFIG


mkfile_path = $(abspath $(lastword $(MAKEFILE_LIST)))
current_dir = $(patsubst %/,%,$(dir $(mkfile_path)))

RPCLIB_DIR = cpp
TEST_CODE_DIR = test/cpp
EETEST_CODE_DIR = test/e2e

# Used to pipe stdout. useful for gtest output.
NACL_EXE_STDOUT ?= ${current_dir}/nacl_std_out.log

# Used to easily run npm module binaries (e.g. karma)
NM_BIN_PATH := ${current_dir}/node_modules/.bin
RJS_BIN := ./node_modules/requirejs/bin/r.js
KARMA_BIN := ./node_modules/karma/bin/karma
KARMA_START := $(KARMA_BIN) start
KARMA_WATCH_ARGS := --client.args=$(TOOLCHAIN) --client.args=$(CONFIG)
KARMA_RUN_ARGS := $(KARMA_WATCH_ARGS) --single-run
KARMA_CPP_CONF := karma-cpp.conf.js
KARMA_JS_CONF := karma-js.conf.js
KARMA_EE_CONF := karma-e2e.conf.js

all: .PHONY

.PHONY: $(NM_BIN_PATH) libs tests eetests demos

#install
install: $(NM_BIN_PATH) js
	$(MAKE) -C $(RPCLIB_DIR) TOOLCHAIN=all CONFIG=Release
	$(MAKE) -C $(RPCLIB_DIR) TOOLCHAIN=all CONFIG=Debug

# anything that needs an npm module will need to install packages
$(NM_BIN_PATH):
	npm install

$(KARMA_BIN) $(RJS_BIN):
	npm install

# Make each part
js:
	$(RJS_BIN) -o scripts/build/build.require.js

libs:
	$(MAKE) -C $(RPCLIB_DIR)
{'fraction_non_alphanumeric': 0.12789948453608246, 'fraction_numerical': 0.001288659793814433, 'mean_word_length': 5.0408560311284045, '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': '2024384', 'n_tokens_mistral': 1213, 'n_tokens_neox': 1170, 'n_words': 300}