<commit_before>include default.mk

.generated: .fixprotoc

.fixprotoc:
ifdef ALPINE
	# The protoc bundled in the grpc.tools nuget package doesn't work on Alpine,
	# so we overwrite it with the one bundled inside the Docker image.
	# In order to prevent nuget from overwriting it again, we first build
	# once, allowing the build to fail, then doing the copy.
	-dotnet build -bl -c Release
	mkdir -p /root/.nuget/packages/grpc.tools/1.20.1/tools/linux_x64
	cp /usr/bin/protoc /root/.nuget/packages/grpc.tools/1.20.1/tools/linux_x64/protoc
endif
	touch $@

clean-dotnet:
	rm -f Cucumber.Messages/Messages.cs .fixprotoc<commit_msg>make restore separate to be able to override protoc binary afterwards<commit_after>include default.mk

.generated: .fixprotoc

.fixprotoc:
ifdef ALPINE
	# The protoc bundled in the grpc.tools nuget package doesn't work on Alpine,
	# so we overwrite it with the one bundled inside the Docker image.
	# In order to prevent nuget from overwriting it again, we first build
	# once, allowing the build to fail, then doing the copy.
	-dotnet restore
	mkdir -p /root/.nuget/packages/grpc.tools/1.20.1/tools/linux_x64
	cp /usr/bin/protoc /root/.nuget/packages/grpc.tools/1.20.1/tools/linux_x64/protoc
	-dotnet build -bl -c Release
endif
	touch $@

clean-dotnet:
	rm -f Cucumber.Messages/Messages.cs .fixprotoc
{'fraction_non_alphanumeric': 0.09104589917231001, 'fraction_numerical': 0.01805869074492099, 'mean_word_length': 3.8363636363636364, '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': '6794241', 'n_tokens_mistral': 470, 'n_tokens_neox': 449, 'n_words': 153}