<commit_before><?xml version="1.0" encoding="utf-8"?>
<Project ToolsVersion="14.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003" DefaultTargets="Build">
  <Import Project="$([MSBuild]::GetDirectoryNameOfFileAbove($(MSBuildThisFileDirectory), dir.props))\dir.props" />
  <PropertyGroup>
    <ProjectGuid>{0D1E2954-A5C7-4B8C-932A-31EB4A96A737}</ProjectGuid>
    <DefineConstants>$(DefineConstants);XMLSERIALIZERGENERATORTESTS</DefineConstants>
  </PropertyGroup>
  <PropertyGroup>
    <SkipTestsOnPlatform Condition="'$(TargetGroup)' == 'uap' OR '$(TargetsUnix)' == 'true'">true</SkipTestsOnPlatform>
  </PropertyGroup>
  <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='netstandard-Debug|AnyCPU'" />
  <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='netstandard-Release|AnyCPU'" />
  <PropertyGroup Condition="'$(Configuration)|$(Platform)' == 'uap-Debug|AnyCPU'" />
  <PropertyGroup Condition="'$(Configuration)|$(Platform)' == 'uap-Release|AnyCPU'" />
  <PropertyGroup Condition="'$(Configuration)|$(Platform)' == 'netcoreapp-Unix-Debug|AnyCPU'" />
  <PropertyGroup Condition="'$(Configuration)|$(Platform)' == 'netcoreapp-Unix-Release|AnyCPU'" />
  <ItemGroup Condition=" '$(SkipTestsOnPlatform)' != 'true' ">
    <Compile Include=".\SGenTests.cs" />
    <Compile Include="$(TestSourceFolder)..\..\System.Runtime.Serialization.Xml\tests\Utils.cs" />
    <Compile Include="$(TestSourceFolder)..\..\System.Runtime.Serialization.Xml\tests\SerializationTypes.cs" />
    <Compile Include="$(TestSourceFolder)..\..\System.Private.Xml\tests\XmlSerializer\XmlSerializerTests.cs" />
  </ItemGroup>
  <ItemGroup>
    <Compile Include=".\AlwaysPassTest.cs" />
    <!-- We're running the Generator on the test shared framework, which uses a fake shared framework version.
         Reuse the same runtimeconfig that the tests use -->
    <Content Include="$(XunitRuntimeConfig)">
      <!-- Rename it to match the Generator application name -->
      <Link>dotnet-Microsoft.XmlSerializer.Generator.runtimeconfig.json</Link>
      <CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
    </Content>
  </ItemGroup>
  <ItemGroup>
    <ReferenceFromRuntime Include="dotnet-Microsoft.XmlSerializer.Generator">
      <!-- Copy this to our test output directory and run from there.
           This is required so that we can stage the application with a custom runtimeconfig that lets it run on the test shared framework. -->
      <Private>true</Private>
    </ReferenceFromRuntime>
  </ItemGroup>
  <Target Name="GenerateSerializationAssembly" AfterTargets="Build" Condition=" '$(SkipTestsOnPlatform)' != 'true' " >
    <PropertyGroup>
      <SerializerName>$(AssemblyName).XmlSerializers</SerializerName>
    </PropertyGroup>
    <Message Text="Running Serialization Tool" Importance="normal" />
    <Exec ContinueOnError="true" Command="$(TestHostRootPath)\dotnet $(OutputPath)dotnet-Microsoft.XmlSerializer.Generator.dll $(OutputPath)Microsoft.XmlSerializer.Generator.Tests.dll /force /casesensitive"  />
    <Warning Condition="Exists('$(OutputPath)$(SerializerName).cs') != 'true'" Text="Fail to generate $(OutputPath)$(SerializerName).cs"/>
    <Csc Condition="Exists('$(OutputPath)$(SerializerName).cs') == 'true'" ContinueOnError="true" 
         OutputAssembly="$(OutputPath)$(SerializerName).dll" 
         References="@(ReferencePath);@(IntermediateAssembly)" 
         EmitDebugInformation="$(DebugSymbols)"  
         Sources="$(OutputPath)$(SerializerName).cs" 
         TargetType="Library" 
         ToolExe="$(CscToolExe)" 
         ToolPath="$(CscToolPath)" 
         DisabledWarnings="$(NoWarn), 219" 
         UseSharedCompilation="true" />
    <Warning Condition="Exists('$(OutputPath)$(SerializerName).dll') != 'true'" Text="Fail to generate $(OutputPath)$(SerializerName).dll"/>
  </Target>
  <Import Project="$([MSBuild]::GetDirectoryNameOfFileAbove($(MSBuildThisFileDirectory), dir.targets))\dir.targets" />
</Project><commit_msg>Binplace the serializer assembly to the TestPath<commit_after><?xml version="1.0" encoding="utf-8"?>
<Project ToolsVersion="14.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003" DefaultTargets="Build">
  <Import Project="$([MSBuild]::GetDirectoryNameOfFileAbove($(MSBuildThisFileDirectory), dir.props))\dir.props" />
  <PropertyGroup>
    <ProjectGuid>{0D1E2954-A5C7-4B8C-932A-31EB4A96A737}</ProjectGuid>
    <DefineConstants>$(DefineConstants);XMLSERIALIZERGENERATORTESTS</DefineConstants>
  </PropertyGroup>
  <PropertyGroup>
    <SkipTestsOnPlatform Condition="'$(TargetGroup)' == 'uap' OR '$(TargetsUnix)' == 'true'">true</SkipTestsOnPlatform>
  </PropertyGroup>
  <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='netstandard-Debug|AnyCPU'" />
  <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='netstandard-Release|AnyCPU'" />
  <PropertyGroup Condition="'$(Configuration)|$(Platform)' == 'uap-Debug|AnyCPU'" />
  <PropertyGroup Condition="'$(Configuration)|$(Platform)' == 'uap-Release|AnyCPU'" />
  <PropertyGroup Condition="'$(Configuration)|$(Platform)' == 'netcoreapp-Unix-Debug|AnyCPU'" />
  <PropertyGroup Condition="'$(Configuration)|$(Platform)' == 'netcoreapp-Unix-Release|AnyCPU'" />
  <ItemGroup Condition=" '$(SkipTestsOnPlatform)' != 'true' ">
    <Compile Include=".\SGenTests.cs" />
    <Compile Include="$(TestSourceFolder)..\..\System.Runtime.Serialization.Xml\tests\Utils.cs" />
    <Compile Include="$(TestSourceFolder)..\..\System.Runtime.Serialization.Xml\tests\SerializationTypes.cs" />
    <Compile Include="$(TestSourceFolder)..\..\System.Private.Xml\tests\XmlSerializer\XmlSerializerTests.cs" />
  </ItemGroup>
  <ItemGroup>
    <Compile Include=".\AlwaysPassTest.cs" />
    <!-- We're running the Generator on the test shared framework, which uses a fake shared framework version.
         Reuse the same runtimeconfig that the tests use -->
    <Content Include="$(XunitRuntimeConfig)">
      <!-- Rename it to match the Generator application name -->
      <Link>dotnet-Microsoft.XmlSerializer.Generator.runtimeconfig.json</Link>
      <CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
    </Content>
  </ItemGroup>
  <ItemGroup>
    <ReferenceFromRuntime Include="dotnet-Microsoft.XmlSerializer.Generator">
      <!-- Copy this to our test output directory and run from there.
           This is required so that we can stage the application with a custom runtimeconfig that lets it run on the test shared framework. -->
      <Private>true</Private>
    </ReferenceFromRuntime>
  </ItemGroup>
  <!-- This target runs before binplacing as it needs to provide a test assembly to binplace, and depends on CopyFilesToOutputDirectory
       so that the Generator app dll and runtimeconfig will be copied to the OutputPath -->
  <Target Name="GenerateSerializationAssembly" DependsOnTargets="CopyFilesToOutputDirectory" BeforeTargets="GetBinPlaceItems" Condition=" '$(SkipTestsOnPlatform)' != 'true' " >
    <PropertyGroup>
      <SerializerName>$(AssemblyName).XmlSerializers</SerializerName>
    </PropertyGroup>
    <Message Text="Running Serialization Tool" Importance="normal" />
    <Exec ContinueOnError="true" Command="$(TestHostRootPath)\dotnet $(OutputPath)dotnet-Microsoft.XmlSerializer.Generator.dll $(OutputPath)Microsoft.XmlSerializer.Generator.Tests.dll /force /casesensitive"  />
    <Warning Condition="Exists('$(OutputPath)$(SerializerName).cs') != 'true'" Text="Fail to generate $(OutputPath)$(SerializerName).cs"/>
    <Csc Condition="Exists('$(OutputPath)$(SerializerName).cs') == 'true'" ContinueOnError="true" 
         OutputAssembly="$(OutputPath)$(SerializerName).dll" 
         References="@(ReferencePath);@(IntermediateAssembly)" 
         EmitDebugInformation="$(DebugSymbols)"  
         Sources="$(OutputPath)$(SerializerName).cs" 
         TargetType="Library" 
         ToolExe="$(CscToolExe)" 
         ToolPath="$(CscToolPath)" 
         DisabledWarnings="$(NoWarn), 219" 
         UseSharedCompilation="true" />
    <Warning Condition="Exists('$(OutputPath)$(SerializerName).dll') != 'true'" Text="Fail to generate $(OutputPath)$(SerializerName).dll"/>

    <ItemGroup>
      <!-- Include the Serializer in ReferenceCopyLocalPaths so that it will be binplaced -->
      <ReferenceCopyLocalPaths Include="$(OutputPath)$(SerializerName).dll" />
    </ItemGroup>
  </Target>
  <Import Project="$([MSBuild]::GetDirectoryNameOfFileAbove($(MSBuildThisFileDirectory), dir.targets))\dir.targets" />
</Project>
{'fraction_non_alphanumeric': 0.16058394160583941, 'fraction_numerical': 0.008005651047798447, 'mean_word_length': 5.182678311499272, 'pattern_counts': {'":': 0, '<': 120, '<?xml version=': 2, '>': 120, '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': '1094115', 'n_tokens_mistral': 2486, 'n_tokens_neox': 2246, 'n_words': 426}