<commit_before>﻿<Project Sdk="Microsoft.NET.Sdk" InitialTargets="FixupVsixDependencies">
  <PropertyGroup>
    <TargetFramework Condition="'$(BuildingInsideVisualStudio)' == 'true' and '$(VisualStudioVersion)' == '15.0'">net462</TargetFramework>
    <TargetFramework Condition="'$(BuildingInsideVisualStudio)' == 'true' and '$(VisualStudioVersion)' == '14.0'">net461</TargetFramework>
    <TargetFramework Condition="'$(TargetFramework)' == '' and '$(CI)' == 'true'">net461</TargetFramework>
    <TargetFrameworks Condition="'$(TargetFramework)' == '' and '$(CI)' == 'false'">net461;net462</TargetFrameworks>

    <IncludePack>true</IncludePack>
    <TargetVsixContainerName>Clide.vsix</TargetVsixContainerName>
    <IsProductComponent>true</IsProductComponent>
    <BypassVsixValidation Condition="'$(CI)' == 'true'">true</BypassVsixValidation>
    <Experimental Condition="'$(CI)' == 'true'">false</Experimental>
    <Experimental Condition="'$(CI)' != 'true'">true</Experimental>

    <PackageId>Clide</PackageId>
    <Authors>kzu, <NAME></Authors>
    <Owners>clariuslabs, kzu</Owners>
    <Description>Clide</Description>
    <Copyright>Copyright 2012 Clarius Labs</Copyright>

    <InferPackageContents>false</InferPackageContents>
    <PackOnBuild Condition="'$(Configuration)' == 'Release'">true</PackOnBuild>
  </PropertyGroup>

  <!-- Dynamic manifest info -->
  <ItemGroup>
    <VsixInstallation Include="Clide" SystemComponent="$(CI)" Experimental="$(Experimental)" />
  </ItemGroup>
  
  <ItemGroup>
    <None Include="source.extension.vsixmanifest" />
    <PackageFile Include="build\*.*" Kind="Build" />
    <PackageFile Include="MSBuilder.VsixInstaller" Version="1.0.4" Kind="Dependency" />
    <BindingRedirect Include="Clide" From="3.0.0.0" To="172.16.31.10" />
  </ItemGroup>

  <ItemGroup>
    <PackageReference Include="MSBuilder.VsixInstaller" Version="1.0.4" />
    <PackageReference Include="Xamarin.VSSDK.BuildTools" Version="$(XVSSDKBuildToolsVersion)" />
    <!-- Always build with latest VSSDK in CI -->
    <PackageReference Include="Microsoft.VSSDK.BuildTools" Version="$(VSSDKBuildToolsVersion)" Condition="'$(CI)' == 'true'" />
  </ItemGroup>

  <ItemGroup>
    <ProjectReference Include="..\Clide.Interfaces\Clide.Interfaces.csproj" />
    <ProjectReference Include="..\Clide\Clide.csproj" Pack="false" />
    <ProjectReference Include="..\Clide.Extensibility\Clide.Extensibility.csproj" Pack="false" />
  </ItemGroup>

  <Target Name="AddPackageContents" BeforeTargets="GetPackageContents">
    <ItemGroup>
      <PackageFile Include="$(TargetVsixContainer)" Kind="Tools" />
    </ItemGroup>
  </Target>

  <Target Name="IncludeSymbolsFromProjectReferences" BeforeTargets="GetVsixSourceItems">
    <!-- For any project references that are set to copy local ('Private' property != false), add the output groups for project references that are not set -->
    <ItemGroup>
      <ProjectReferenceWithConfiguration Condition="'%(ProjectReferenceWithConfiguration.Private)' != 'false' and '%(ProjectReferenceWithConfiguration.IncludeOutputGroupsInVSIX)' == ''">
        <IncludeOutputGroupsInVSIX>$(DefaultIncludeOutputGroupsInVSIX)</IncludeOutputGroupsInVSIX>
      </ProjectReferenceWithConfiguration>
    </ItemGroup>
  </Target>

  <!-- We always build as SystemComponent on CI -->
  <Target Name="IsSystemComponent" Returns="$(CI)" />

  <Target Name="FixupVsixDependencies">
    <ItemGroup>
      <VsixDependency Remove="@(VsixDependency)" />
    </ItemGroup>
  </Target>

  <Target Name="GetVsixVersion" Returns="$(VsixVersion)" DependsOnTargets="SetVersion">
    <PropertyGroup>
      <VsixVersion Condition="'$(Configuration)' == 'Debug'">42.42.42</VsixVersion>
      <VsixVersion Condition="'$(VsixVersion)' == ''">$(AssemblyVersion)</VsixVersion>
    </PropertyGroup>
  </Target>

  <Target Name="AppendVsixVersionToTargetVsixContainer" BeforeTargets="CreateVsixContainer" DependsOnTargets="GetVsixVersion">
    <PropertyGroup>
      <TargetVsixContainer>$([System.IO.Path]::ChangeExtension('$(TargetVsixContainer)', '$(VsixVersion).vsix'))</TargetVsixContainer>
    </PropertyGroup>
  </Target>

  <Target Name="CopyVsixToPackageOutputPath" AfterTargets="CreateVsixContainer" Condition="'$(PackageOutputPath)' != '' and '$(CreateVsixContainer)' == 'true'">
    <Copy SourceFiles="$(TargetVsixContainer)" DestinationFolder="$(PackageOutputPath)" />
    <Message Importance="high" Text="Copied extension to $(PackageOutputPath)\$([System.IO.Path]::GetFilename('$(TargetVsixContainer)'))" />
  </Target>


</Project>
<commit_msg>Make SystemComponent attribute an explicit property<commit_after>﻿<Project Sdk="Microsoft.NET.Sdk" InitialTargets="FixupVsixDependencies">
  <PropertyGroup>
    <TargetFramework Condition="'$(BuildingInsideVisualStudio)' == 'true' and '$(VisualStudioVersion)' == '15.0'">net462</TargetFramework>
    <TargetFramework Condition="'$(BuildingInsideVisualStudio)' == 'true' and '$(VisualStudioVersion)' == '14.0'">net461</TargetFramework>
    <TargetFramework Condition="'$(TargetFramework)' == '' and '$(CI)' == 'true'">net461</TargetFramework>
    <TargetFrameworks Condition="'$(TargetFramework)' == '' and '$(CI)' == 'false'">net461;net462</TargetFrameworks>

    <IncludePack>true</IncludePack>
    <TargetVsixContainerName>Clide.vsix</TargetVsixContainerName>

    <!-- TODO: Should we set this to false on local builds? Would that confuse Willow? -->
    <IsProductComponent>true</IsProductComponent>
    <BypassVsixValidation Condition="'$(CI)' == 'true'">true</BypassVsixValidation>

    <Experimental>true</Experimental>
    <Experimental Condition="'$(CI)' == 'true'">false</Experimental>
    <SystemComponent>false</SystemComponent>
    <SystemComponent Condition="'$(CI)' == 'true'">true</SystemComponent>

    <PackageId>Clide</PackageId>
    <Authors>kzu, <NAME></Authors>
    <Owners>clariuslabs, kzu</Owners>
    <Description>Clide</Description>
    <Copyright>Copyright 2012 <NAME></Copyright>

    <InferPackageContents>false</InferPackageContents>
    <PackOnBuild Condition="'$(Configuration)' == 'Release'">true</PackOnBuild>
  </PropertyGroup>

  <!-- Dynamic manifest info -->
  <ItemGroup>
    <VsixInstallation Include="Clide" SystemComponent="$(SystemComponent)" Experimental="$(Experimental)" />
  </ItemGroup>
  
  <ItemGroup>
    <None Include="source.extension.vsixmanifest" />
    <PackageFile Include="build\*.*" Kind="Build" />
    <PackageFile Include="MSBuilder.VsixInstaller" Version="1.0.4" Kind="Dependency" />
    <BindingRedirect Include="Clide" From="3.0.0.0" To="172.16.31.10" />
  </ItemGroup>

  <ItemGroup>
    <PackageReference Include="MSBuilder.VsixInstaller" Version="1.0.4" />
    <PackageReference Include="Xamarin.VSSDK.BuildTools" Version="$(XVSSDKBuildToolsVersion)" />
    <!-- Always build with latest VSSDK in CI -->
    <PackageReference Include="Microsoft.VSSDK.BuildTools" Version="$(VSSDKBuildToolsVersion)" Condition="'$(CI)' == 'true'" />
  </ItemGroup>

  <ItemGroup>
    <ProjectReference Include="..\Clide.Interfaces\Clide.Interfaces.csproj" />
    <ProjectReference Include="..\Clide\Clide.csproj" Pack="false" />
    <ProjectReference Include="..\Clide.Extensibility\Clide.Extensibility.csproj" Pack="false" />
  </ItemGroup>

  <Target Name="AddPackageContents" BeforeTargets="GetPackageContents">
    <ItemGroup>
      <PackageFile Include="$(TargetVsixContainer)" Kind="Tools" />
    </ItemGroup>
  </Target>

  <Target Name="IncludeSymbolsFromProjectReferences" BeforeTargets="GetVsixSourceItems">
    <!-- For any project references that are set to copy local ('Private' property != false), add the output groups for project references that are not set -->
    <ItemGroup>
      <ProjectReferenceWithConfiguration Condition="'%(ProjectReferenceWithConfiguration.Private)' != 'false' and '%(ProjectReferenceWithConfiguration.IncludeOutputGroupsInVSIX)' == ''">
        <IncludeOutputGroupsInVSIX>$(DefaultIncludeOutputGroupsInVSIX)</IncludeOutputGroupsInVSIX>
      </ProjectReferenceWithConfiguration>
    </ItemGroup>
  </Target>

  <!-- We always build as SystemComponent on CI -->
  <Target Name="IsSystemComponent" Returns="$(CI)" />

  <Target Name="FixupVsixDependencies">
    <ItemGroup>
      <VsixDependency Remove="@(VsixDependency)" />
    </ItemGroup>
  </Target>

  <Target Name="GetVsixVersion" Returns="$(VsixVersion)" DependsOnTargets="SetVersion">
    <PropertyGroup>
      <VsixVersion Condition="'$(Configuration)' == 'Debug'">42.42.42</VsixVersion>
      <VsixVersion Condition="'$(VsixVersion)' == ''">$(AssemblyVersion)</VsixVersion>
    </PropertyGroup>
  </Target>

  <Target Name="AppendVsixVersionToTargetVsixContainer" BeforeTargets="CreateVsixContainer" DependsOnTargets="GetVsixVersion">
    <PropertyGroup>
      <TargetVsixContainer>$([System.IO.Path]::ChangeExtension('$(TargetVsixContainer)', '$(VsixVersion).vsix'))</TargetVsixContainer>
    </PropertyGroup>
  </Target>

  <Target Name="CopyVsixToPackageOutputPath" AfterTargets="CreateVsixContainer" Condition="'$(PackageOutputPath)' != '' and '$(CreateVsixContainer)' == 'true'">
    <Copy SourceFiles="$(TargetVsixContainer)" DestinationFolder="$(PackageOutputPath)" />
    <Message Importance="high" Text="Copied extension to $(PackageOutputPath)\$([System.IO.Path]::GetFilename('$(TargetVsixContainer)'))" />
  </Target>


</Project>

{'fraction_non_alphanumeric': 0.16622155752590534, 'fraction_numerical': 0.010682619378271552, 'mean_word_length': 5.779145546705286, 'pattern_counts': {'":': 0, '<': 207, '<?xml version=': 0, '>': 207, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 4, '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': '3846161', 'n_tokens_mistral': 2893, 'n_tokens_neox': 2590, 'n_words': 440}