<commit_before>TOP_DIR = ../..
DEPLOY_RUNTIME ?= /kb/runtime
TARGET ?= /kb/deployment
include $(TOP_DIR)/tools/Makefile.common

AWE_HOST       = localhost
AWE_API_PORT   = 7107
AWE_SERVER_API = $(AWE_HOST):$(AWE_PORT)

TPAGE_ARGS = --define kb_top=$(TARGET) --define kb_runtime=$(DEPLOY_RUNTIME) --define awe_host=$($AWE_HOST) --define awe_api_port=$AWE_API_PORT -define awe_server_api=$(AWE_SERVER_API)


default:


test: test-client test-scripts test-service
	@echo "running client and script tests"

test-client:
	@echo "test-client not implemented"

test-scripts:
	@echo "test-scripts not implemented"

test-service:
	@echo "test-service not implemented"


deploy: deploy-client deploy-service

# depricated target
deploy-all: deploy-client deploy-service

deploy-client: deploy-scripts deploy-docs

deploy-service: deploy-cfg
	echo "nothing to do for deploy-service target"

# how to standardize and automate CLI documentation.
deploy-docs:
	@echo "deploy docs not implemented"


include $(TOP_DIR)/tools/Makefile.common.rules<commit_msg>added processing of script templates in templates directory<commit_after>TOP_DIR = ../..
DEPLOY_RUNTIME ?= /kb/runtime
TARGET ?= /kb/deployment
include $(TOP_DIR)/tools/Makefile.common

AWE_HOST       = localhost
AWE_API_PORT   = 7080
AWE_SERVER_API = $(AWE_HOST):$(AWE_PORT)

TPAGE_ARGS = --define kb_top=$(TARGET) --define kb_runtime=$(DEPLOY_RUNTIME) --define awe_host=$($AWE_HOST) --define awe_api_port=$AWE_API_PORT -define awe_server_api=$(AWE_SERVER_API)


default: build-scripts
	@echo "running default make"

test: test-client test-scripts test-service
	@echo "running client and script tests"

test-client:
	@echo "test-client not implemented"

test-scripts:
	@echo "test-scripts not implemented"

test-service:
	@echo "test-service not implemented"


deploy: deploy-client deploy-service

# depricated target
deploy-all: deploy-client deploy-service

deploy-client: deploy-scripts deploy-docs

deploy-service: deploy-cfg
	echo "nothing to do for deploy-service target"

# how to standardize and automate CLI documentation.
deploy-docs:
	@echo "deploy docs not implemented"

build-scripts: TEMPLATES = $(wildcard templates/*.tt)
build-scripts:
	for src in $(TEMPLATES) ; do       \
		basefile=`basename $$src`; \
		base=`basename $$src .tt`; \
		$(TPAGE) $(TPAGE_ARGS) $$src > scripts/awe-$$base ; \
	done ;

include $(TOP_DIR)/tools/Makefile.common.rules
{'fraction_non_alphanumeric': 0.12084717607973422, 'fraction_numerical': 0.0033222591362126247, 'mean_word_length': 4.847087378640777, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 4, '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': '2024334', 'n_tokens_mistral': 853, 'n_tokens_neox': 795, 'n_words': 201}