<commit_before><!--
	Copyright 2015 <NAME>

	Licensed under the Apache License, Version 2.0 (the "License");
	you may not use this file except in compliance with the License.
	You may obtain a copy of the License at

		http://www.apache.org/licenses/LICENSE-2.0

	Unless required by applicable law or agreed to in writing, software
	distributed under the License is distributed on an "AS IS" BASIS,
	WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
	See the License for the specific language governing permissions and
	limitations under the License.
-->

<Project xmlns="http://schemas.microsoft.com/developer/msbuild/2003" ToolsVersion="12.0">
  <ItemGroup>
    <AvailableItemName Include="Shader"/>
  </ItemGroup>

  <!-- Select the FXC compiler in order of precedence -->
  <Choose>
    <When Condition=" '$(registry:HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows Kits\Installed Roots@KitsRoot81)' != '' ">
      <PropertyGroup>
        <CompilerPath>$(registry:HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows Kits\Installed Roots@KitsRoot81)bin\x86\fxc.exe</CompilerPath>
      </PropertyGroup>
    </When>
    <When Condition=" '$(registry:HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows Kits\Installed Roots@KitsRoot)' != '' ">
      <PropertyGroup>
        <CompilerPath>$(registry:HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows Kits\Installed Roots@KitsRoot)bin\x86\fxc.exe</CompilerPath>
      </PropertyGroup>
    </When>
  </Choose>

  <!-- Compile debug shaders -->
  <Target Name="ShaderCompile" BeforeTargets="BeforeBuild" Inputs="@(Shader)" Outputs="@(Shader -> '$(IntermediateOutputPath)%(Filename).cso' )">

    <!-- Debug build for shaders -->
    <Exec Command="&quot;$(CompilerPath)&quot; /nologo /T %(Shader.Profile) /Fo &quot;$(IntermediateOutputPath)%(Filename).cso&quot; /Zi /Fd &quot;$(OutputPath)%(Filename).pdb&quot; &quot;%(FullPath)&quot;" IgnoreExitCode="true" Condition=" '$(Configuration)' == 'Debug' " />

    <!-- Release build for shaders -->
    <Exec Command="&quot;$(CompilerPath)&quot; /nologo /T %(Shader.Profile) /Fo &quot;$(IntermediateOutputPath)%(Filename).cso&quot; &quot;%(FullPath)&quot;" IgnoreExitCode="true" Condition=" '$(Configuration)' == 'Release' " />
  </Target>

  <!-- Embed resources -->
  <Target Name="BeforeBuild" AfterTargets="ShaderCompile" BeforeTargets="Build">
    <ItemGroup>
      <EmbeddedResource Include="@(Shader -> '$(IntermediateOutputPath)%(Filename).cso' )"><commit_msg>Enable exit code for the Shader build step, to help diagnose CI build issues.<commit_after><!--
	Copyright 2015 <NAME>

	Licensed under the Apache License, Version 2.0 (the "License");
	you may not use this file except in compliance with the License.
	You may obtain a copy of the License at

		http://www.apache.org/licenses/LICENSE-2.0

	Unless required by applicable law or agreed to in writing, software
	distributed under the License is distributed on an "AS IS" BASIS,
	WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
	See the License for the specific language governing permissions and
	limitations under the License.
-->

<Project xmlns="http://schemas.microsoft.com/developer/msbuild/2003" ToolsVersion="12.0">
  <ItemGroup>
    <AvailableItemName Include="Shader"/>
  </ItemGroup>

  <!-- Select the FXC compiler in order of precedence -->
  <Choose>
    <When Condition=" '$(registry:HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows Kits\Installed Roots@KitsRoot81)' != '' ">
      <PropertyGroup>
        <CompilerPath>$(registry:HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows Kits\Installed Roots@KitsRoot81)bin\x86\fxc.exe</CompilerPath>
      </PropertyGroup>
    </When>
    <When Condition=" '$(registry:HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows Kits\Installed Roots@KitsRoot)' != '' ">
      <PropertyGroup>
        <CompilerPath>$(registry:HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows Kits\Installed Roots@KitsRoot)bin\x86\fxc.exe</CompilerPath>
      </PropertyGroup>
    </When>
  </Choose>

  <!-- Compile debug shaders -->
  <Target Name="ShaderCompile" BeforeTargets="BeforeBuild" Inputs="@(Shader)" Outputs="@(Shader -> '$(IntermediateOutputPath)%(Filename).cso' )">

    <!-- Debug build for shaders -->
    <Exec Command="&quot;$(CompilerPath)&quot; /nologo /T %(Shader.Profile) /Fo &quot;$(IntermediateOutputPath)%(Filename).cso&quot; /Zi /Fd &quot;$(OutputPath)%(Filename).pdb&quot; &quot;%(FullPath)&quot;" Condition=" '$(Configuration)' == 'Debug' " />

    <!-- Release build for shaders -->
    <Exec Command="&quot;$(CompilerPath)&quot; /nologo /T %(Shader.Profile) /Fo &quot;$(IntermediateOutputPath)%(Filename).cso&quot; &quot;%(FullPath)&quot;" Condition=" '$(Configuration)' == 'Release' " />
  </Target>

  <!-- Embed resources -->
  <Target Name="BeforeBuild" AfterTargets="ShaderCompile" BeforeTargets="Build">
    <ItemGroup>
      <EmbeddedResource Include="@(Shader -> '$(IntermediateOutputPath)%(Filename).cso' )">
{'fraction_non_alphanumeric': 0.15232323232323233, 'fraction_numerical': 0.009292929292929294, 'mean_word_length': 4.7636786961583235, 'pattern_counts': {'":': 0, '<': 67, '<?xml version=': 0, '>': 71, 'https://': 0, 'lorem ipsum': 0, 'www.': 2, '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': '5058324', 'n_tokens_mistral': 1587, 'n_tokens_neox': 1460, 'n_words': 363}