<commit_before>﻿<Project DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003" ToolsVersion="3.5">
  <PropertyGroup>
    <Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
    <Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
    <ProductVersion>9.0.21022</ProductVersion>
    <SchemaVersion>2.0</SchemaVersion>
    <ProjectGuid>{EAE7D4BF-5061-4220-BE94-E268E965DCE5}</ProjectGuid>
    <OutputType>Library</OutputType>
    <AppDesignerFolder>Properties</AppDesignerFolder>
    <RootNamespace>Microsoft.Windows.Installer</RootNamespace>
    <AssemblyName>Microsoft.Windows.Installer.PowerShell</AssemblyName>
    <SignAssembly>true</SignAssembly>
    <AssemblyOriginatorKeyFile>$(SolutionDir)KeyFile.snk</AssemblyOriginatorKeyFile>
    <SccProjectName>SAK</SccProjectName>
    <SccLocalPath>SAK</SccLocalPath>
    <SccAuxPath>SAK</SccAuxPath>
    <SccProvider>SAK</SccProvider>
    <FileUpgradeFlags>
    </FileUpgradeFlags>
    <OldToolsVersion>2.0</OldToolsVersion>
    <UpgradeBackupLocation>
    </UpgradeBackupLocation>
  </PropertyGroup>
  <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
    <DebugSymbols>true</DebugSymbols>
    <DebugType>full</DebugType>
    <Optimize>false</Optimize>
    <OutputPath>bin\Debug\</OutputPath>
    <DefineConstants>DEBUG;TRACE</DefineConstants>
    <ErrorReport>prompt</ErrorReport>
    <WarningLevel>4</WarningLevel>
  </PropertyGroup>
  <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
    <DebugType>pdbonly</DebugType>
    <Optimize>true</Optimize>
    <OutputPath>bin\Release\</OutputPath>
    <DefineConstants>TRACE</DefineConstants>
    <ErrorReport>prompt</ErrorReport>
    <WarningLevel>4</WarningLevel>
  </PropertyGroup>
  <ItemGroup>
    <Reference Include="System" />
    <Reference Include="System.Configuration.Install" />
    <Reference Include="System.Data" />
    <Reference Include="System.Management" />
    <Reference Include="System.Management.Automation" />
    <Reference Include="System.Xml" />
  </ItemGroup>
  <ItemGroup>
    <Compile Include="GlobalSuppressions.cs" />
    <Compile Include="Msi.cs" />
    <Compile Include="MsiAdvertisedProductInfo.cs" />
    <Compile Include="MsiEnumerable.cs" />
    <Compile Include="MsiInstalledProductInfo.cs" />
    <Compile Include="MsiPackage.cs" />
    <Compile Include="MsiPatchInfo.cs" />
    <Compile Include="MsiProductInfo.cs" />
    <Compile Include="NativeMethods.cs" />
    <Compile Include="PowerShell\Commands\CommandBase.cs" />
    <Compile Include="PowerShell\Commands\GetFileHashCommand.cs" />
    <Compile Include="PowerShell\Commands\EnumCommand.cs" />
    <Compile Include="PowerShell\Commands\GetFileTypeCommand.cs" />
    <Compile Include="PowerShell\Commands\GetPatchCommand.cs" />
    <Compile Include="PowerShell\Commands\GetProductCommand.cs" />
    <Compile Include="PowerShell\Commands\GetRelatedProductCommand.cs" />
    <Compile Include="PowerShell\Commands\GetSourceCommand.cs" />
    <Compile Include="PowerShell\Commands\ParameterSet.cs" />
    <Compile Include="PowerShell\Help.cs" />
    <Compile Include="PowerShell\DebugMessageAttribute.cs" />
    <Compile Include="PowerShell\Location.cs" />
    <Compile Include="PowerShell\Installer.cs">
      <SubType>Component</SubType>
    </Compile>
    <Compile Include="PowerShell\PSExceptions.cs" />
    <Compile Include="Properties\AssemblyInfo.cs" />
    <Compile Include="Properties\Resources.Designer.cs">
      <AutoGen>True</AutoGen>
      <DesignTime>True</DesignTime>
      <DependentUpon>Resources.resx</DependentUpon>
    </Compile>
    <Compile Include="Storage.cs" />
  </ItemGroup>
  <ItemGroup>
    <EmbeddedResource Include="Properties\Resources.resx">
      <SubType>Designer</SubType>
      <Generator>ResXFileCodeGenerator</Generator>
      <LastGenOutput>Resources.Designer.cs</LastGenOutput>
    </EmbeddedResource>
  </ItemGroup>
  <ItemGroup>
    <Content Include="Microsoft.Windows.Installer.PowerShell.dll-Help.xml">
      <CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
    </Content>
    <Content Include="formats.ps1xml">
      <CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
    </Content>
    <Content Include="types.ps1xml">
      <CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
    </Content>
  </ItemGroup>
  <Import Project="$(MSBuildBinPath)\Microsoft.CSharp.targets" />
  <ItemGroup>
    <RootDirectory Include="$(SolutionDir)..\" />
  </ItemGroup>
  <PropertyGroup>
    <ToolsDirectory>@(RootDirectory->'%(RootDir)%(Directory)')tools\</ToolsDirectory>
  </PropertyGroup>
  <Target Name="SignContentFiles" DependsOnTargets="CopyFilesToOutputDirectory">
    <CreateItem Include="@(_SourceItemsToCopyToOutputDirectory->'$(OutDir)%(TargetPath)')" Condition="'%(Extension)'=='.ps1xml'">
      <Output TaskParameter="Include" ItemName="SignContentFilesOutput" />
    </CreateItem>
    <Exec Command="powershell.exe -command &quot;$(ToolsDirectory)Sign\Sign.ps1&quot; &quot;%(SignContentFilesOutput.FullPath)&quot;" />
  </Target>
  <Target Name="AfterBuild" DependsOnTargets="SignContentFiles">
  </Target>
</Project><commit_msg>Conditioned the signing task to only execute when the files to sign have changed.<commit_after>﻿<Project DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003" ToolsVersion="3.5">
  <PropertyGroup>
    <Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
    <Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
    <ProductVersion>9.0.21022</ProductVersion>
    <SchemaVersion>2.0</SchemaVersion>
    <ProjectGuid>{EAE7D4BF-5061-4220-BE94-E268E965DCE5}</ProjectGuid>
    <OutputType>Library</OutputType>
    <AppDesignerFolder>Properties</AppDesignerFolder>
    <RootNamespace>Microsoft.Windows.Installer</RootNamespace>
    <AssemblyName>Microsoft.Windows.Installer.PowerShell</AssemblyName>
    <SignAssembly>true</SignAssembly>
    <AssemblyOriginatorKeyFile>$(SolutionDir)KeyFile.snk</AssemblyOriginatorKeyFile>
    <SccProjectName>SAK</SccProjectName>
    <SccLocalPath>SAK</SccLocalPath>
    <SccAuxPath>SAK</SccAuxPath>
    <SccProvider>SAK</SccProvider>
    <FileUpgradeFlags>
    </FileUpgradeFlags>
    <OldToolsVersion>2.0</OldToolsVersion>
    <UpgradeBackupLocation>
    </UpgradeBackupLocation>
  </PropertyGroup>
  <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
    <DebugSymbols>true</DebugSymbols>
    <DebugType>full</DebugType>
    <Optimize>false</Optimize>
    <OutputPath>bin\Debug\</OutputPath>
    <DefineConstants>DEBUG;TRACE</DefineConstants>
    <ErrorReport>prompt</ErrorReport>
    <WarningLevel>4</WarningLevel>
  </PropertyGroup>
  <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
    <DebugType>pdbonly</DebugType>
    <Optimize>true</Optimize>
    <OutputPath>bin\Release\</OutputPath>
    <DefineConstants>TRACE</DefineConstants>
    <ErrorReport>prompt</ErrorReport>
    <WarningLevel>4</WarningLevel>
  </PropertyGroup>
  <ItemGroup>
    <Reference Include="System" />
    <Reference Include="System.Configuration.Install" />
    <Reference Include="System.Data" />
    <Reference Include="System.Management" />
    <Reference Include="System.Management.Automation" />
    <Reference Include="System.Xml" />
  </ItemGroup>
  <ItemGroup>
    <Compile Include="GlobalSuppressions.cs" />
    <Compile Include="Msi.cs" />
    <Compile Include="MsiAdvertisedProductInfo.cs" />
    <Compile Include="MsiEnumerable.cs" />
    <Compile Include="MsiInstalledProductInfo.cs" />
    <Compile Include="MsiPackage.cs" />
    <Compile Include="MsiPatchInfo.cs" />
    <Compile Include="MsiProductInfo.cs" />
    <Compile Include="NativeMethods.cs" />
    <Compile Include="PowerShell\Commands\CommandBase.cs" />
    <Compile Include="PowerShell\Commands\GetFileHashCommand.cs" />
    <Compile Include="PowerShell\Commands\EnumCommand.cs" />
    <Compile Include="PowerShell\Commands\GetFileTypeCommand.cs" />
    <Compile Include="PowerShell\Commands\GetPatchCommand.cs" />
    <Compile Include="PowerShell\Commands\GetProductCommand.cs" />
    <Compile Include="PowerShell\Commands\GetRelatedProductCommand.cs" />
    <Compile Include="PowerShell\Commands\GetSourceCommand.cs" />
    <Compile Include="PowerShell\Commands\ParameterSet.cs" />
    <Compile Include="PowerShell\Help.cs" />
    <Compile Include="PowerShell\DebugMessageAttribute.cs" />
    <Compile Include="PowerShell\Location.cs" />
    <Compile Include="PowerShell\Installer.cs">
      <SubType>Component</SubType>
    </Compile>
    <Compile Include="PowerShell\PSExceptions.cs" />
    <Compile Include="Properties\AssemblyInfo.cs" />
    <Compile Include="Properties\Resources.Designer.cs">
      <AutoGen>True</AutoGen>
      <DesignTime>True</DesignTime>
      <DependentUpon>Resources.resx</DependentUpon>
    </Compile>
    <Compile Include="Storage.cs" />
  </ItemGroup>
  <ItemGroup>
    <EmbeddedResource Include="Properties\Resources.resx">
      <SubType>Designer</SubType>
      <Generator>ResXFileCodeGenerator</Generator>
      <LastGenOutput>Resources.Designer.cs</LastGenOutput>
    </EmbeddedResource>
  </ItemGroup>
  <ItemGroup>
    <Content Include="Microsoft.Windows.Installer.PowerShell.dll-Help.xml">
      <CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
    </Content>
    <Content Include="formats.ps1xml">
      <CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
	  <Sign>True</Sign>
    </Content>
    <Content Include="types.ps1xml">
      <CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
	  <Sign>True</Sign>
    </Content>
  </ItemGroup>
  <Import Project="$(MSBuildBinPath)\Microsoft.CSharp.targets" />
  <ItemGroup>
    <RootDirectory Include="$(SolutionDir)..\" />
  </ItemGroup>
  <PropertyGroup>
    <ToolsDirectory>@(RootDirectory->'%(RootDir)%(Directory)')tools\</ToolsDirectory>
  </PropertyGroup>
  <Target Name="GetItemsToSign" DependsOnTargets="CopyFilesToOutputDirectory">
	<CreateItem Include="@(_SourceItemsToCopyToOutputDirectory)" Condition="'%(_SourceItemsToCopyToOutputDirectory.Sign)' == 'True'">
	  <Output TaskParameter="Include" ItemName="ItemsToSign" />
    </CreateItem>
	<CreateItem Include="@(ItemsToSign->'$(OutDir)%(TargetPath)')">
	  <Output TaskParameter="Include" ItemName="SignedItems" />
	</CreateItem>
  </Target>
  <Target Name="SignContentFiles" DependsOnTargets="GetItemsToSign" Inputs="@(ItemsToSign)" Outputs="@(SignedItems)">
    <Exec Command="powershell.exe -command &quot;$(ToolsDirectory)Sign\Sign.ps1&quot; &quot;%(SignedItems.FullPath)&quot;" />
  </Target>
  <Target Name="AfterBuild" DependsOnTargets="SignContentFiles">
  </Target>
</Project>
{'fraction_non_alphanumeric': 0.1517931609674729, 'fraction_numerical': 0.00769159484755815, 'mean_word_length': 5.097175141242938, 'pattern_counts': {'":': 0, '<': 324, '<?xml version=': 0, '>': 328, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 9}, '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': '14647', 'n_tokens_mistral': 3499, 'n_tokens_neox': 3234, 'n_words': 389}