<commit_before><Project DefaultTargets="LinkNative" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
  <Import Project="$([MSBuild]::GetDirectoryNameOfFileAbove($(MSBuildThisFileDirectory), dir.props))\dir.props" />

  <PropertyGroup>
    <OutputType Condition="'$(OutputType)' == ''">Exe</OutputType>
    <OutputPath>$(MSBuildProjectDirectory)\bin\$(Configuration)\$(Platform)\</OutputPath>
    <IntermediateOutputPath>$(MSBuildProjectDirectory)\obj\$(Configuration)\$(Platform)\</IntermediateOutputPath>
    <DebugType Condition="'$(DebugType)' == ''">portable</DebugType>
  </PropertyGroup>

  <PropertyGroup>
    <CopyNuGetImplementations>false</CopyNuGetImplementations>
    <GenerateAssemblyInfo>false</GenerateAssemblyInfo>
    <AllowUnsafeBlocks>true</AllowUnsafeBlocks>
    <TargetFrameworkIdentifier>.NETCoreApp</TargetFrameworkIdentifier>
    <TargetFramework>netcoreapp2.0</TargetFramework>
  </PropertyGroup>

  <ItemGroup>
    <PackageReference Include="Microsoft.NETCore.App">
      <Version>$(MicrosoftNETCoreAppPackageVersion)</Version>
    </PackageReference>
  </ItemGroup>

  <!-- Reuse restored assets from the repro project -->
  <PropertyGroup>
    <RestoreOutputPath>$(IntermediateOutputRootPath)\repro</RestoreOutputPath>
  </PropertyGroup>

  <!--
    When building a library as a reference, the returned build outputs include both the 
    IL assembly produced by CSC and the native obj produced by Ilc. Separate the native
    object file here so it isn't passed to CSC, and instead redirect it to be picked up
    by the LinkNative target.
  -->
  <Target Name="RemoveObjFiles" AfterTargets="ResolveProjectReferences" Condition="'$(IlcMultiModule)' == 'true'">
    <ItemGroup>
        <ObjFiles Include="@(_ResolvedProjectReferencePaths)" Condition="'%(Extension)' == '.obj' or '%(Extension)' == '.bc'" />
        <LinkerArg Include="@(_ResolvedProjectReferencePaths)" Condition="'%(Extension)' == '.obj'" />
        <IlcReference Include="@(_ResolvedProjectReferencePaths)" Condition="'%(Extension)' == '.dll'" />
        <_ResolvedProjectReferencePaths Remove="@(ObjFiles)" />
    </ItemGroup>
  </Target>
  
  <Import Project="$([MSBuild]::GetDirectoryNameOfFileAbove($(MSBuildThisFileDirectory), dir.targets))\dir.targets" />

  <Import Project="$(IlcPath)\build\Microsoft.NETCore.Native.targets" />

  <ItemGroup>
    <CustomLinkerArg Include="$(AdditionalLinkerFlags)" />
  </ItemGroup>

  <ItemGroup>
    <IlcArg Include="--targetarch=$(Platform)" />
  </ItemGroup>

</Project><commit_msg>Enable generation of stack trace data for simple tests (#5002)<commit_after><Project DefaultTargets="LinkNative" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
  <Import Project="$([MSBuild]::GetDirectoryNameOfFileAbove($(MSBuildThisFileDirectory), dir.props))\dir.props" />

  <PropertyGroup>
    <OutputType Condition="'$(OutputType)' == ''">Exe</OutputType>
    <OutputPath>$(MSBuildProjectDirectory)\bin\$(Configuration)\$(Platform)\</OutputPath>
    <IntermediateOutputPath>$(MSBuildProjectDirectory)\obj\$(Configuration)\$(Platform)\</IntermediateOutputPath>
    <DebugType Condition="'$(DebugType)' == ''">portable</DebugType>
  </PropertyGroup>

  <PropertyGroup>
    <CopyNuGetImplementations>false</CopyNuGetImplementations>
    <GenerateAssemblyInfo>false</GenerateAssemblyInfo>
    <AllowUnsafeBlocks>true</AllowUnsafeBlocks>
    <TargetFrameworkIdentifier>.NETCoreApp</TargetFrameworkIdentifier>
    <TargetFramework>netcoreapp2.0</TargetFramework>
  </PropertyGroup>

  <ItemGroup>
    <PackageReference Include="Microsoft.NETCore.App">
      <Version>$(MicrosoftNETCoreAppPackageVersion)</Version>
    </PackageReference>
  </ItemGroup>

  <!-- Reuse restored assets from the repro project -->
  <PropertyGroup>
    <RestoreOutputPath>$(IntermediateOutputRootPath)\repro</RestoreOutputPath>
  </PropertyGroup>

  <!--
    When building a library as a reference, the returned build outputs include both the 
    IL assembly produced by CSC and the native obj produced by Ilc. Separate the native
    object file here so it isn't passed to CSC, and instead redirect it to be picked up
    by the LinkNative target.
  -->
  <Target Name="RemoveObjFiles" AfterTargets="ResolveProjectReferences" Condition="'$(IlcMultiModule)' == 'true'">
    <ItemGroup>
        <ObjFiles Include="@(_ResolvedProjectReferencePaths)" Condition="'%(Extension)' == '.obj' or '%(Extension)' == '.bc'" />
        <LinkerArg Include="@(_ResolvedProjectReferencePaths)" Condition="'%(Extension)' == '.obj'" />
        <IlcReference Include="@(_ResolvedProjectReferencePaths)" Condition="'%(Extension)' == '.dll'" />
        <_ResolvedProjectReferencePaths Remove="@(ObjFiles)" />
    </ItemGroup>
  </Target>
  
  <Import Project="$([MSBuild]::GetDirectoryNameOfFileAbove($(MSBuildThisFileDirectory), dir.targets))\dir.targets" />

  <Import Project="$(IlcPath)\build\Microsoft.NETCore.Native.targets" />

  <ItemGroup>
    <CustomLinkerArg Include="$(AdditionalLinkerFlags)" />
  </ItemGroup>

  <ItemGroup>
    <IlcArg Include="--targetarch=$(Platform)" />
    
    <!-- Broken on wasm: https://github.com/dotnet/corert/issues/5005 -->
    <IlcArg Condition="$(NativeCodeGen) != 'wasm'" Include="--stacktracedata" />
  </ItemGroup>

</Project>
{'fraction_non_alphanumeric': 0.15351126254022335, 'fraction_numerical': 0.0037857278061707365, 'mean_word_length': 5.297973778307509, 'pattern_counts': {'":': 0, '<': 111, '<?xml version=': 0, '>': 111, 'https://': 1, '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': '6327094', 'n_tokens_mistral': 1559, 'n_tokens_neox': 1414, 'n_words': 272}