<commit_before>BUILD_DIRS     = ragent subserv console none-authservice templates
DOCKER_DIRS	   = topic-forwarder artemis admin/address-controller admin/queue-scheduler admin/configserv keycloak keycloak-controller router router-metrics mqtt/mqtt-gateway mqtt/mqtt-lwt
FULL_BUILD 	   = true
DOCKER_REGISTRY ?= docker.io
OPENSHIFT_PROJECT ?= $(shell oc project -q)
OPENSHIFT_USER    ?= $(shell oc whoami)
OPENSHIFT_TOKEN   ?= $(shell oc whoami -t)
OPENSHIFT_MASTER  ?= $(shell oc whoami --show-server=true)

DOCKER_TARGETS = docker_build docker_tag docker_push
BUILD_TARGETS  = init build test package clean $(DOCKER_TARGETS)

all: init build test package docker_build

build_java:
	./gradlew build -i $(GRADLE_ARGS)
	./gradlew pack --rerun-tasks $(GRADLE_ARGS)

clean_java:
	./gradlew clean

clean: clean_java

docker_build: build_java

$(BUILD_TARGETS): $(BUILD_DIRS)
$(BUILD_DIRS):
	$(MAKE) FULL_BUILD=$(FULL_BUILD) -C $@ $(MAKECMDGOALS)

$(DOCKER_TARGETS): $(DOCKER_DIRS)
$(DOCKER_DIRS):
	$(MAKE) FULL_BUILD=$(FULL_BUILD) -C $@ $(MAKECMDGOALS)

deploy:
	./templates/install/deploy-openshift.sh -n $(OPENSHIFT_PROJECT) -u $(OPENSHIFT_USER) -m $(OPENSHIFT_MASTER)

systemtests:
	OPENSHIFT_NAMESPACE=$(OPENSHIFT_PROJECT) OPENSHIFT_TOKEN=$(OPENSHIFT_TOKEN) OPENSHIFT_USER=$(OPENSHIFT_USER) OPENSHIFT_MASTER_URL=$(OPENSHIFT_MASTER) OPENSHIFT_USE_TLS=true ./gradlew :systemtests:test -Psystemtests -i --rerun-tasks


.PHONY: $(BUILD_TARGETS) $(DOCKER_TARGETS) $(BUILD_DIRS) $(DOCKER_DIRS) build_java deploy systemtests clean_java
<commit_msg>Pass GRADLE_ARGS to systemtests target<commit_after>BUILD_DIRS     = ragent subserv console none-authservice templates
DOCKER_DIRS	   = topic-forwarder artemis admin/address-controller admin/queue-scheduler admin/configserv keycloak keycloak-controller router router-metrics mqtt/mqtt-gateway mqtt/mqtt-lwt
FULL_BUILD 	   = true
DOCKER_REGISTRY ?= docker.io
OPENSHIFT_PROJECT ?= $(shell oc project -q)
OPENSHIFT_USER    ?= $(shell oc whoami)
OPENSHIFT_TOKEN   ?= $(shell oc whoami -t)
OPENSHIFT_MASTER  ?= $(shell oc whoami --show-server=true)

DOCKER_TARGETS = docker_build docker_tag docker_push
BUILD_TARGETS  = init build test package clean $(DOCKER_TARGETS)

all: init build test package docker_build

build_java:
	./gradlew build -i $(GRADLE_ARGS)
	./gradlew pack --rerun-tasks $(GRADLE_ARGS)

clean_java:
	./gradlew clean

clean: clean_java

docker_build: build_java

$(BUILD_TARGETS): $(BUILD_DIRS)
$(BUILD_DIRS):
	$(MAKE) FULL_BUILD=$(FULL_BUILD) -C $@ $(MAKECMDGOALS)

$(DOCKER_TARGETS): $(DOCKER_DIRS)
$(DOCKER_DIRS):
	$(MAKE) FULL_BUILD=$(FULL_BUILD) -C $@ $(MAKECMDGOALS)

deploy:
	./templates/install/deploy-openshift.sh -n $(OPENSHIFT_PROJECT) -u $(OPENSHIFT_USER) -m $(OPENSHIFT_MASTER)

systemtests:
	OPENSHIFT_NAMESPACE=$(OPENSHIFT_PROJECT) OPENSHIFT_TOKEN=$(OPENSHIFT_TOKEN) OPENSHIFT_USER=$(OPENSHIFT_USER) OPENSHIFT_MASTER_URL=$(OPENSHIFT_MASTER) OPENSHIFT_USE_TLS=true ./gradlew :systemtests:test -Psystemtests -i --rerun-tasks $(GRADLE_ARGS)


.PHONY: $(BUILD_TARGETS) $(DOCKER_TARGETS) $(BUILD_DIRS) $(DOCKER_DIRS) build_java deploy systemtests clean_java

{'fraction_non_alphanumeric': 0.11762820512820513, 'fraction_numerical': 0.0, 'mean_word_length': 6.224537037037037, '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': '1927222', 'n_tokens_mistral': 1179, 'n_tokens_neox': 1132, 'n_words': 237}