<commit_before><?xml version="1.0" encoding="utf-8"?>
<Project ToolsVersion="12.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
  <PropertyGroup>
    <PackagingTaskDir Condition="'$(PackagingTaskDir)' == ''">$(MSBuildThisFileDirectory)</PackagingTaskDir>
    <GenerationDefinitionFile Condition="'$(GenerationDefinitionFile)' == ''">$(MSBuildThisFileDirectory)Generations.json</GenerationDefinitionFile>
    <RuntimeIdGraphDefinitionFile Condition="'$(RuntimeIdGraphDefinitionFile)' == '' AND Exists('$(ProjectDir)pkg/Microsoft.NETCore.Platforms/runtime.json')">$(ProjectDir)pkg/Microsoft.NETCore.Platforms/runtime.json</RuntimeIdGraphDefinitionFile>
    <RuntimeIdGraphDefinitionFile Condition="'$(RuntimeIdGraphDefinitionFile)' == ''">$(MSBuildThisFileDirectory)runtime.json</RuntimeIdGraphDefinitionFile>
  </PropertyGroup>

  <UsingTask TaskName="GetApplicableAssetsFromPackages" AssemblyFile="$(PackagingTaskDir)Microsoft.DotNet.Build.Tasks.Packaging.dll"/>
  <UsingTask TaskName="GetPackageDestination" AssemblyFile="$(PackagingTaskDir)Microsoft.DotNet.Build.Tasks.Packaging.dll"/>

  <Target Name="UpdatePkgProjProjectReferences" BeforeTargets="AssignProjectConfiguration">
    <!-- Update PkgProj references to call the GetPackageAssets target -->
    <ItemGroup>
      <ProjectReference Condition="'%(Extension)'=='.pkgproj'">
        <ReferenceOutputAssembly>false</ReferenceOutputAssembly>
        <Targets>GetPackageAssets</Targets>
        <OutputItemType>PkgProjAsset</OutputItemType>
        <UndefineProperties>%(ProjectReference.UndefineProperties);OSGroup;TargetGroup</UndefineProperties>
      </ProjectReference>
    </ItemGroup>
  </Target>
  
  <PropertyGroup>
    <!-- Resolve from pkgProjs before nuget packages -->
    <ResolveNugetPackagesDependsOn>$(ResolveNugetPackagesDependsOn);ResolvePkgProjReferences</ResolveNugetPackagesDependsOn>
    <ResolvePkgProjReferencesDependsOn>ResolveProjectReferences</ResolvePkgProjReferencesDependsOn>
  </PropertyGroup>

  <!-- Resolves applicable files from all files in PkgProjs. Similar to ResolveNuGetPackageAssets, except operates on a file list
       without requiring actual nupkgs, project.json, or restore -->
  <Target Name="ResolvePkgProjReferences" Condition="'@(PkgProjAsset)' != ''" DependsOnTargets="$(ResolvePkgProjReferencesDependsOn)">
    <GetApplicableAssetsFromPackages PackageAssets="@(PkgProjAsset)" 
                                     TargetMonikers="$(NuGetTargetMoniker)"
                                     RuntimeTargetMonikers="$(TestNuGetTargetMoniker)"
                                     TargetRuntime="$(TestNugetRuntimeId)"
                                     RuntimeFile="$(RuntimeIdGraphDefinitionFile)">
      <Output TaskParameter="CompileAssets" ItemName="Reference" />
      <Output TaskParameter="RuntimeAssets" ItemName="ReferenceCopyLocalPaths" />
    </GetApplicableAssetsFromPackages>
  </Target>
  
  <!-- Returns the set of files to be included in the nuget package
       with appropriate metadata.-->
  <Target Name="GetFilesToPackage"
          Returns="@(FilesToPackage)">
    <PropertyGroup>
      <PackagePath Condition="'$(PackagePath)' == ''">$(TargetPath)</PackagePath><commit_msg>Append to ResolvePkgProjReferencesDependsOn in PackageLibs.targets rathr than overwrite<commit_after><?xml version="1.0" encoding="utf-8"?>
<Project ToolsVersion="12.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
  <PropertyGroup>
    <PackagingTaskDir Condition="'$(PackagingTaskDir)' == ''">$(MSBuildThisFileDirectory)</PackagingTaskDir>
    <GenerationDefinitionFile Condition="'$(GenerationDefinitionFile)' == ''">$(MSBuildThisFileDirectory)Generations.json</GenerationDefinitionFile>
    <RuntimeIdGraphDefinitionFile Condition="'$(RuntimeIdGraphDefinitionFile)' == '' AND Exists('$(ProjectDir)pkg/Microsoft.NETCore.Platforms/runtime.json')">$(ProjectDir)pkg/Microsoft.NETCore.Platforms/runtime.json</RuntimeIdGraphDefinitionFile>
    <RuntimeIdGraphDefinitionFile Condition="'$(RuntimeIdGraphDefinitionFile)' == ''">$(MSBuildThisFileDirectory)runtime.json</RuntimeIdGraphDefinitionFile>
  </PropertyGroup>

  <UsingTask TaskName="GetApplicableAssetsFromPackages" AssemblyFile="$(PackagingTaskDir)Microsoft.DotNet.Build.Tasks.Packaging.dll"/>
  <UsingTask TaskName="GetPackageDestination" AssemblyFile="$(PackagingTaskDir)Microsoft.DotNet.Build.Tasks.Packaging.dll"/>

  <Target Name="UpdatePkgProjProjectReferences" BeforeTargets="AssignProjectConfiguration">
    <!-- Update PkgProj references to call the GetPackageAssets target -->
    <ItemGroup>
      <ProjectReference Condition="'%(Extension)'=='.pkgproj'">
        <ReferenceOutputAssembly>false</ReferenceOutputAssembly>
        <Targets>GetPackageAssets</Targets>
        <OutputItemType>PkgProjAsset</OutputItemType>
        <UndefineProperties>%(ProjectReference.UndefineProperties);OSGroup;TargetGroup</UndefineProperties>
      </ProjectReference>
    </ItemGroup>
  </Target>
  
  <PropertyGroup>
    <!-- Resolve from pkgProjs before nuget packages -->
    <ResolveNugetPackagesDependsOn>$(ResolveNugetPackagesDependsOn);ResolvePkgProjReferences</ResolveNugetPackagesDependsOn>
    <ResolvePkgProjReferencesDependsOn>$(ResolvePkgProjReferencesDependsOn);ResolveProjectReferences</ResolvePkgProjReferencesDependsOn>
  </PropertyGroup>

  <!-- Resolves applicable files from all files in PkgProjs. Similar to ResolveNuGetPackageAssets, except operates on a file list
       without requiring actual nupkgs, project.json, or restore -->
  <Target Name="ResolvePkgProjReferences" Condition="'@(PkgProjAsset)' != ''" DependsOnTargets="$(ResolvePkgProjReferencesDependsOn)">
    <GetApplicableAssetsFromPackages PackageAssets="@(PkgProjAsset)" 
                                     TargetMonikers="$(NuGetTargetMoniker)"
                                     RuntimeTargetMonikers="$(TestNuGetTargetMoniker)"
                                     TargetRuntime="$(TestNugetRuntimeId)"
                                     RuntimeFile="$(RuntimeIdGraphDefinitionFile)">
      <Output TaskParameter="CompileAssets" ItemName="Reference" />
      <Output TaskParameter="RuntimeAssets" ItemName="ReferenceCopyLocalPaths" />
    </GetApplicableAssetsFromPackages>
  </Target>
  
  <!-- Returns the set of files to be included in the nuget package
       with appropriate metadata.-->
  <Target Name="GetFilesToPackage"
          Returns="@(FilesToPackage)">
    <PropertyGroup>
      <PackagePath Condition="'$(PackagePath)' == ''">$(TargetPath)</PackagePath>
{'fraction_non_alphanumeric': 0.12124447155711453, 'fraction_numerical': 0.0030501753850846426, 'mean_word_length': 5.077849860982391, 'pattern_counts': {'":': 0, '<': 99, '<?xml version=': 2, '>': 99, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 4}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 8, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '3112926', 'n_tokens_mistral': 1825, 'n_tokens_neox': 1695, 'n_words': 250}