<commit_before><Project ToolsVersion="4.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
	<UsingTask TaskName="GitDescribeToVersion" TaskFactory="CodeTaskFactory" AssemblyFile="$(MSBuildToolsPath)\Microsoft.Build.Tasks.v4.0.dll">
		<ParameterGroup>
			<Describe ParameterType="System.String" Required="true" />
			<Version ParameterType="System.String" Output="true" />
		</ParameterGroup>
		<Task>
			<Using Namespace="System.Reflection" />
			<Using Namespace="System.Text.RegularExpressions" />
			<Code Type="Fragment" Language="cs">
				<![CDATA[
					var m = Regex.Match(Describe, @"^([a-zA-Z]*)(?'Major'\d+)\.(?'Minor'\d+)(-(?'Revision'\d+))?");
					
					if (m.Success)
					{
						var major = m.Groups["Major"].Value;
						var minor = m.Groups["Minor"].Value;
						
						var gr = m.Groups["Revision"];
						var revision = gr.Success ? gr.Value : "0";
						
						Version = major + "." + minor + "." + revision + ".0";
					}
				]]>
			</Code>
		</Task>
	</UsingTask>

	<PropertyGroup>
		<ShouldGenerate Condition="$(IsReleaseBuild) == 'true'">true</ShouldGenerate>
		<GeneratedAssemblyInfo>obj\$(Configuration)\__versioninfo.cs</GeneratedAssemblyInfo>
		<GitDescribe>obj\$(Configuration)\__gitinfo.cs</GitDescribe>
		<GitTagMatch Condition=" '$(GitTagMatch)' == '' ">*</GitTagMatch>
	</PropertyGroup>

	<PropertyGroup Condition="$(ShouldGenerate) == 'true'">
		<AssemblyOriginatorKeyFile></AssemblyOriginatorKeyFile>
	</PropertyGroup>

	<Target Name="CreateAssemblyInfoFromGit" DependsOnTargets="CreateRandomFileNames" Condition="$(ShouldGenerate) == 'true'">
		<MakeDir Directories="obj\$(Configuration)" ContinueOnError="true" />
		<Exec Command="git describe --tags --match $(GitTagMatch) > $(GitDescribe)" />
		<ReadLinesFromFile File="$(GitDescribe)">
			<Output TaskParameter="Lines" PropertyName="_Describe"/>
		</ReadLinesFromFile>

		<GitDescribeToVersion Describe="$(_Describe)">
			<Output TaskParameter="Version" PropertyName="_AssemblyVersion"/>
		</GitDescribeToVersion><commit_msg>Fix release build.<commit_after><Project ToolsVersion="4.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
	<UsingTask TaskName="GitDescribeToVersion" TaskFactory="CodeTaskFactory" AssemblyFile="$(MSBuildToolsPath)\Microsoft.Build.Tasks.v4.0.dll">
		<ParameterGroup>
			<Describe ParameterType="System.String" Required="true" />
			<Version ParameterType="System.String" Output="true" />
		</ParameterGroup>
		<Task>
			<Using Namespace="System.Reflection" />
			<Using Namespace="System.Text.RegularExpressions" />
			<Code Type="Fragment" Language="cs">
				<![CDATA[
					var m = Regex.Match(Describe, @"^([a-zA-Z]*)(?'Major'\d+)\.(?'Minor'\d+)(-(?'Revision'\d+))?");
					
					if (m.Success)
					{
						var major = m.Groups["Major"].Value;
						var minor = m.Groups["Minor"].Value;
						
						var gr = m.Groups["Revision"];
						var revision = gr.Success ? gr.Value : "0";
						
						Version = major + "." + minor + "." + revision + ".0";
					}
				]]>
			</Code>
		</Task>
	</UsingTask>

	<PropertyGroup>
		<ShouldGenerate Condition="$(IsReleaseBuild) == 'true'">true</ShouldGenerate>
		<GeneratedAssemblyInfo>obj\$(Configuration)\__versioninfo.cs</GeneratedAssemblyInfo>
		<GitDescribe>obj\$(Configuration)\__gitinfo.cs</GitDescribe>
		<GitTagMatch Condition=" '$(GitTagMatch)' == '' ">*</GitTagMatch>
	</PropertyGroup>

	<PropertyGroup Condition="$(ShouldGenerate) == 'true'">
		<AssemblyOriginatorKeyFile></AssemblyOriginatorKeyFile>
	</PropertyGroup>

	<Target Name="CreateAssemblyInfoFromGit" Condition="$(ShouldGenerate) == 'true'">
		<MakeDir Directories="obj\$(Configuration)" ContinueOnError="true" />
		<Exec Command="git describe --tags --match $(GitTagMatch) > $(GitDescribe)" />
		<ReadLinesFromFile File="$(GitDescribe)">
			<Output TaskParameter="Lines" PropertyName="_Describe"/>
		</ReadLinesFromFile>

		<GitDescribeToVersion Describe="$(_Describe)">
			<Output TaskParameter="Version" PropertyName="_AssemblyVersion"/>
		</GitDescribeToVersion>
{'fraction_non_alphanumeric': 0.18298081652729956, 'fraction_numerical': 0.004918839153959666, 'mean_word_length': 4.972099853157122, 'pattern_counts': {'":': 0, '<': 77, '<?xml version=': 0, '>': 79, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 2}, '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': '3710864', 'n_tokens_mistral': 1483, 'n_tokens_neox': 1216, 'n_words': 192}