<commit_before>all: pull ${SOURCES}

.PHONY: pull containers compilers-rump-base-common compilers-rump-base-hw compilers-rump-base-xen compilers-rump-go-hw compilers-rump-go-xen compilers boot-creator image-creator vsphere-client utils

#pull containers
pull:
	echo "Pullling containers from docker hub"
	docker pull projectunik/vsphere-client
	docker pull projectunik/image-creator
	docker pull projectunik/boot-creator
	docker pull projectunik/compilers-rump-go-xen
	docker pull projectunik/compilers-osv-java
	docker pull projectunik/compilers-rump-go-hw
	docker pull projectunik/compilers-rump-base-xen
	docker pull projectunik/compilers-rump-base-hw
	docker pull projectunik/compilers-rump-base-common
#------

#build containers from source
containers: compilers utils
	echo "Built containers from source"

#compilers
compilers: compilers-rump-go-hw compilers-rump-go-xen

compilers-rump-base-common:
	cd containers/compilers/rump/base && docker build -t projectunik/$@ -f Dockerfile.common .

compilers-rump-base-hw: compilers-rump-base-common
	cd containers/compilers/rump/base && docker build -t projectunik/$@ -f Dockerfile.hw .

compilers-rump-base-xen: compilers-rump-base-common
	cd containers/compilers/rump/base && docker build -t projectunik/$@ -f Dockerfile.xen .

compilers-rump-go-hw: compilers-rump-base-hw
	cd containers/compilers/rump/go && docker build -t projectunik/$@ -f Dockerfile.hw .

compilers-rump-go-xen: compilers-rump-base-xen
	cd containers/compilers/rump/go && docker build -t projectunik/$@ -f Dockerfile.xen .

compilers-osv-java:
    cd containers/osv/java-compiler && GOOS=linux go build -o java-compiler.o && docker build -t projectunik/$@ .

#utils
utils: boot-creator image-creator vsphere-client

boot-creator:
	cd containers/utils/boot-creator && GOOS=linux go build && docker build -t projectunik/$@ -f Dockerfile . && rm boot-creator

image-creator:
	cd containers/utils/image-creator && GOOS=linux go build && docker build -t projectunik/$@ -f Dockerfile . && rm image-creator

vsphere-client:
	cd containers/utils/vsphere-client && mvn package && docker build -t projectunik/$@ -f Dockerfile . && rm -rf target

#------

#binary & install<commit_msg>osv makefile<commit_after>all: pull ${SOURCES}

.PHONY: pull containers compilers-rump-base-common compilers-rump-base-hw compilers-rump-base-xen compilers-rump-go-hw compilers-rump-go-xen compilers-osv-java compilers boot-creator image-creator vsphere-client utils

#pull containers
pull:
	echo "Pullling containers from docker hub"
	docker pull projectunik/vsphere-client
	docker pull projectunik/image-creator
	docker pull projectunik/boot-creator
	docker pull projectunik/compilers-rump-go-xen
	docker pull projectunik/compilers-osv-java
	docker pull projectunik/compilers-rump-go-hw
	docker pull projectunik/compilers-rump-base-xen
	docker pull projectunik/compilers-rump-base-hw
	docker pull projectunik/compilers-rump-base-common
#------

#build containers from source
containers: compilers utils
	echo "Built containers from source"

#compilers
compilers: compilers-rump-go-hw compilers-rump-go-xen compilers-osv-java

compilers-rump-base-common:
	cd containers/compilers/rump/base && docker build -t projectunik/$@ -f Dockerfile.common .

compilers-rump-base-hw: compilers-rump-base-common
	cd containers/compilers/rump/base && docker build -t projectunik/$@ -f Dockerfile.hw .

compilers-rump-base-xen: compilers-rump-base-common
	cd containers/compilers/rump/base && docker build -t projectunik/$@ -f Dockerfile.xen .

compilers-rump-go-hw: compilers-rump-base-hw
	cd containers/compilers/rump/go && docker build -t projectunik/$@ -f Dockerfile.hw .

compilers-rump-go-xen: compilers-rump-base-xen
	cd containers/compilers/rump/go && docker build -t projectunik/$@ -f Dockerfile.xen .

compilers-osv-java:
	cd containers/compilers/osv/java-compiler && GOOS=linux go build && docker build -t projectunik/$@ .

#utils
utils: boot-creator image-creator vsphere-client

boot-creator:
	cd containers/utils/boot-creator && GOOS=linux go build && docker build -t projectunik/$@ -f Dockerfile . && rm boot-creator

image-creator:
	cd containers/utils/image-creator && GOOS=linux go build && docker build -t projectunik/$@ -f Dockerfile . && rm image-creator

vsphere-client:
	cd containers/utils/vsphere-client && mvn package && docker build -t projectunik/$@ -f Dockerfile . && rm -rf target

#------

#binary & install
{'fraction_non_alphanumeric': 0.11807283420040715, 'fraction_numerical': 0.0, 'mean_word_length': 4.2831541218638, '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': '6353706', 'n_tokens_mistral': 1582, 'n_tokens_neox': 1525, 'n_words': 356}