<commit_before><?xml version="1.0" encoding="utf-8" ?>
<Project DefaultTargets="Push" ToolsVersion="14.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
	<Import Project="ModuleInject.Build\common.props" />
	<Import Project="$(ProjectBuildPath)version.props" />
	<Import Project="$(ProjectBuildPath)projects.props" />
	<Import Project="$(MSBuildExtensionsPath)\MSBuildCommunityTasks\MSBuild.Community.Tasks.Targets" />

	<Target Name="Push">
		<ItemGroup>
			<NuGetPackages Include="@(MainProjects)">
				<PackagePath>$(NuGetPackagePath)%(MainProjects.Identity).$(CompleteVersion).nupkg</PackagePath>
			</NuGetPackages>
		</ItemGroup>

		<Message Text="Pushing packages: %(NuGetPackages.PackagePath)"></Message>

		<Message Text="Updating version..." />
		<IncrementVersionNumber VersionFilePath="$(ProjectBuildPath)version.props"></IncrementVersionNumber>
	</Target>

	<UsingTask TaskName="IncrementVersionNumber" TaskFactory="CodeTaskFactory" AssemblyFile="$(MSBuildToolsPath)\Microsoft.Build.Tasks.v4.0.dll">
		<ParameterGroup>
			<VersionFilePath ParameterType="System.String" Required="true" />
		</ParameterGroup>
		<Task>
			<Using Namespace="System" />
			<Using Namespace="System.IO" />
			<Using Namespace="System.Reflection" />
			<Using Namespace="System.Text.RegularExpressions" />
			<Code Type="Fragment" Language="cs">
				<![CDATA[
Log.LogMessage(MessageImportance.Normal, "Reading log file: " + VersionFilePath);
var fileText = File.ReadAllText(VersionFilePath);
Regex regex = new Regex(@"\<PatchVersion\>(\d+)<\/PatchVersion\>");
Match match = regex.Match(fileText);
var versionNumber = Int32.Parse(match.Groups[1].Value);
var versionNumberPlus = versionNumber+1;
Log.LogMessage(MessageImportance.Normal, "Replacing PatchVersion " + versionNumber + " with " + versionNumberPlus);
var newFileText = fileText.Replace(@"<PatchVersion>" + versionNumber + "</PatchVersion>", @"<PatchVersion>" + versionNumberPlus + "</PatchVersion>");
File.WriteAllText(VersionFilePath, newFileText);
]]>
			</Code>
		</Task><commit_msg>Fixed push script.<commit_after><?xml version="1.0" encoding="utf-8" ?>
<Project DefaultTargets="Push" ToolsVersion="14.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
	<Import Project="ModuleInject.Build\common.props" />
	<Import Project="$(ProjectBuildPath)version.props" />
	<Import Project="$(ProjectBuildPath)projects.props" />
	<Import Project="$(MSBuildExtensionsPath)\MSBuildCommunityTasks\MSBuild.Community.Tasks.Targets" />

	<Target Name="Push">
		<ItemGroup>
			<NuGetPackages Include="@(MainProjects)">
				<PackagePath>$(NuGetPackagePath)%(MainProjects.Identity).$(CompleteVersion).nupkg</PackagePath>
			</NuGetPackages>
		</ItemGroup>

		<Message Text="Pushing packages: %(NuGetPackages.PackagePath)"></Message>
		<NuGetPush File="%(NuGetPackages.PackagePath)"></NuGetPush>

		<Message Text="Updating version..." />
		<IncrementVersionNumber VersionFilePath="$(ProjectBuildPath)version.props"></IncrementVersionNumber>
	</Target>

	<UsingTask TaskName="IncrementVersionNumber" TaskFactory="CodeTaskFactory" AssemblyFile="$(MSBuildToolsPath)\Microsoft.Build.Tasks.v4.0.dll">
		<ParameterGroup>
			<VersionFilePath ParameterType="System.String" Required="true" />
		</ParameterGroup>
		<Task>
			<Using Namespace="System" />
			<Using Namespace="System.IO" />
			<Using Namespace="System.Reflection" />
			<Using Namespace="System.Text.RegularExpressions" />
			<Code Type="Fragment" Language="cs">
				<![CDATA[
Log.LogMessage(MessageImportance.Normal, "Reading log file: " + VersionFilePath);
var fileText = File.ReadAllText(VersionFilePath);
Regex regex = new Regex(@"\<PatchVersion\>(\d+)<\/PatchVersion\>");
Match match = regex.Match(fileText);
var versionNumber = Int32.Parse(match.Groups[1].Value);
var versionNumberPlus = versionNumber+1;
Log.LogMessage(MessageImportance.Normal, "Replacing PatchVersion " + versionNumber + " with " + versionNumberPlus);
var newFileText = fileText.Replace(@"<PatchVersion>" + versionNumber + "</PatchVersion>", @"<PatchVersion>" + versionNumberPlus + "</PatchVersion>");
File.WriteAllText(VersionFilePath, newFileText);
]]>
			</Code>
		</Task>
{'fraction_non_alphanumeric': 0.165906362545018, 'fraction_numerical': 0.007683073229291717, 'mean_word_length': 6.743494423791821, 'pattern_counts': {'":': 0, '<': 81, '<?xml version=': 2, '>': 81, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 4}, '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': '4773559', 'n_tokens_mistral': 1369, 'n_tokens_neox': 1215, 'n_words': 191}