<commit_before>default: clean all
clean:
	go clean
	rm -rf download-geofabrik_* *.zip
gox:
	gox --output="download-geofabrik_{{.OS}}_{{.Arch}}/{{.Dir}}"
	cd generator && gox --output="../download-geofabrik_{{.OS}}_{{.Arch}}/{{.Dir}}"

package: gox
	for i in download-geofabrik_* ;\
	do \
		  echo "Compressing $$i";\
          cp README.md LICENSE geofabrik.yml $$i/ && cd $$i && zip -9 $$i.zip download-geofabrik* generator* geofabrik.yml LICENSE README.md && mv $$i.zip ../ && cd ..;\
        done

all: package<commit_msg>ci: Generate new geofabrik.yml on each releases<commit_after>default: clean all
clean:
	go clean
	rm -rf download-geofabrik_* *.zip
gox:
	gox --output="download-geofabrik_{{.OS}}_{{.Arch}}/{{.Dir}}"
	cd generator && gox --output="../download-geofabrik_{{.OS}}_{{.Arch}}/{{.Dir}}"
geofabrik:
	echo "Generating geofabrik.yml"
	go run generator/generator.go
package: gox geofabrik
	for i in download-geofabrik_* ;\
	do \
		  echo "Compressing $$i";\
          cp README.md LICENSE geofabrik.yml $$i/ && cd $$i && zip -9 $$i.zip download-geofabrik* generator* geofabrik.yml LICENSE README.md && mv $$i.zip ../ && cd ..;\
        done

all: package
{'fraction_non_alphanumeric': 0.19006849315068494, 'fraction_numerical': 0.0017123287671232876, 'mean_word_length': 3.3296296296296295, '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': 10, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '7257378', 'n_tokens_mistral': 458, 'n_tokens_neox': 429, 'n_words': 109}