<commit_before>VERSION=0.12.0
PWD=$(shell pwd)

all: rpm clean

rpm:
	mkdir -p "$(PWD)/rpmbuild"
	mkdir -p "$(PWD)/rpmbuild/SOURCES/"
	cd "$(PWD)/rpmbuild/SOURCES" && git clone https://github.com/prometheus/prometheus.git
	cd "$(PWD)/rpmbuild/SOURCES/prometheus" && git checkout tags/$(VERSION)
	cp -Rv contrib "$(PWD)/rpmbuild/SOURCES/prometheus"
	cd "$(PWD)/rpmbuild/SOURCES" && mv prometheus prometheus-$(VERSION)
	cd "$(PWD)/rpmbuild/SOURCES" && tar cvfz $(VERSION).tar.gz prometheus-$(VERSION)
	rpmbuild --define '_topdir '"$(PWD)/rpmbuild" -ba --clean contrib/prometheus.spec

clean:
	rm -rf "$(PWD)/rpmbuild/SOURCES/prometheus-$(VERSION)"
	rm "$(PWD)/rpmbuild/SOURCES/$(VERSION).tar.gz"
<commit_msg>Added deploy target<commit_after>VERSION=0.12.0
PWD=$(shell pwd)

all: rpm clean

rpm:
	mkdir -p "$(PWD)/rpmbuild"
	mkdir -p "$(PWD)/rpmbuild/SOURCES/"
	cd "$(PWD)/rpmbuild/SOURCES" && git clone https://github.com/prometheus/prometheus.git
	cd "$(PWD)/rpmbuild/SOURCES/prometheus" && git checkout tags/$(VERSION)
	cp -Rv contrib "$(PWD)/rpmbuild/SOURCES/prometheus"
	cd "$(PWD)/rpmbuild/SOURCES" && mv prometheus prometheus-$(VERSION)
	cd "$(PWD)/rpmbuild/SOURCES" && tar cvfz $(VERSION).tar.gz prometheus-$(VERSION)
	rpmbuild --define '_topdir '"$(PWD)/rpmbuild" -ba --clean contrib/prometheus.spec

deploy:
	curl -v -F r=$(REPOSITORY) -F hasPom=false -F e=rpm -F g=$(GROUPID) -F a=prometheus -F v=$(VERSION) -F -p=RPM -F file=@$(WORKSPACE)/RPMS/x86_64/prometheus-$(VERSION)-1.el6.x86_64.rpm -u $(REPOSITORY_CREDENTIALS) $(REPOSITORY_URL)

clean:
	rm -rf "$(PWD)/rpmbuild/SOURCES/prometheus-$(VERSION)"
	rm "$(PWD)/rpmbuild/SOURCES/$(VERSION).tar.gz"

{'fraction_non_alphanumeric': 0.19903498190591074, 'fraction_numerical': 0.010856453558504222, 'mean_word_length': 4.882978723404255, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 2, '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': '468015', 'n_tokens_mistral': 750, 'n_tokens_neox': 656, 'n_words': 126}