<commit_before>﻿<?xml version="1.0" encoding="utf-8" ?>
<Project xmlns="http://schemas.microsoft.com/developer/msbuild/2003">

  <PropertyGroup>
    <!-- Use AppVeyor Build-Number, cf.: http://www.appveyor.com/docs/environment-variables -->
    <Build Condition="'$(CI)' == 'True'">$(APPVEYOR_BUILD_NUMBER)</Build>
    <!-- Use Build-Number from Jenkins or TeamCity -->
    <Build Condition="'$(BUILD_NUMBER)' != ''">$(BUILD_NUMBER)</Build>
    <!-- Fallback to "0" if still not set -->
    <Build Condition="'$(Build)' == ''">0</Build>
    <DeployFailOnBuildNotSet Condition="'$(DeployFailOnBuildNotSet)' == ''">true</DeployFailOnBuildNotSet>

    <NuspecFile Condition="'$(NuspecFile)'==''">$(ProjectDir)Package.nuspec</NuspecFile>
    <NuGetSourceToDeploy Condition="'$(NuGetSourceToDeploy)'==''">https://www.nuget.org</NuGetSourceToDeploy>
  </PropertyGroup>

  <!-- Targets -->
  <Target Name="Test" DependsOnTargets="Build;TestWithNunit"/>
  <Target Name="Coverage" DependsOnTargets="Build;OpenCoverWithNUnit"/>

  <Target Name="CoverageReport" DependsOnTargets="Coverage;OpenCoverReport"/>
  <Target Name="CoverageUpload" DependsOnTargets="Coverage;CoverAllsUpload"/>
  <Target Name="Package" DependsOnTargets="Build;PackageWithNuGet"/>
  <Target Name="Deploy" DependsOnTargets="Build;Package;DeployWithNuGet;Publish"/>

  <!-- ClickOnce Versioning -->
  <Target Name="SetSetClickOnceVersion"
    Condition="'$(ApplicationVersion)'==''"
    DependsOnTargets="GetVersion"
    BeforeTargets="_DeploymentComputeClickOnceManifestInfo">
    <PropertyGroup>
      <RevisionNumber Condition="'$(ApplicationRevision)'!=''">$(ApplicationRevision)</RevisionNumber>
      <RevisionNumber Condition="'$(ApplicationRevision)'==''">$(Build)</RevisionNumber>
    </PropertyGroup>
    <CreateProperty Value="$(GitVersion_MajorMinorPatch).$(RevisionNumber)">
      <Output TaskParameter="Value" PropertyName="ApplicationVersion"/>
    </CreateProperty>
    <!-- for VSTO -->
    <CreateProperty Value="$(ApplicationVersion)">
      <Output TaskParameter="Value" PropertyName="PublishVersion"/>
    </CreateProperty>
    <Message Text="ClickOnce ApplicationVersion: $(ApplicationVersion)" Importance="High" />
  </Target>

  <!-- NuGet -->
  <Target Name="PackageWithNuGet" DependsOnTargets="Build;GetVersion">
    <PropertyGroup>
      <Revision>$(GitVersion_Sha)</Revision>
      <PackageVersion Condition="'$(PackageVersion)'==''">$(GitVersion_NuGetVersion)</PackageVersion>
    </PropertyGroup>

    <Message Importance="Normal" Condition="!Exists($(NuspecFile))" Text="Skipping target because .nuspec-file is missing (expected '$(NuspecFile)')" />
    <Exec Condition="Exists($(NuspecFile))"
          ContinueOnError="ErrorAndContinue"
          Command="nuget pack $(NuspecFile) -Properties Version=$(PackageVersion);Revision=$(Revision);Configuration=$(Configuration)"/>
  </Target>

  <Target Name="DeployWithNuGet" DependsOnTargets="PackageWithNuGet">
    <Error Condition="'$(Build)' == '0' And '$(DeployFailOnBuildNotSet)' != 'false'" Text="Build number not set. See the OneClickBuild README."/>

    <PropertyGroup>
      <PackageVersion Condition="'$(PackageVersion)'==''">$(GitVersion_NuGetVersion)</PackageVersion>
      <PackageId Condition="'$(PackageName)'=='' And Exists('$(ProjectName).$(PackageVersion).nupkg')">$(ProjectName)</PackageId>
      <PackageId Condition="'$(PackageName)'=='' And Exists('$(AssemblyName).$(PackageVersion).nupkg')">$(AssemblyName)</PackageId>
      <PackageId Condition="'$(PackageName)'=='' And Exists('$(RootNamespace).$(PackageVersion).nupkg')">$(RootNamespace)</PackageId>
      <PackageFile>$(PackageId).$(PackageVersion).nupkg</PackageFile>
    </PropertyGroup>

    <Message Condition="!Exists($(PackageFile))" Text="Skipping target because package file '$(PackageFile)' has not been built for project '$(ProjectName)'" Importance="Normal"  />
    <!-- To set API key use "NuGet.exe setApiKey <key> -Source <source>" -->
    <Message Condition="'$(PackageFile)'!='' And Exists($(PackageFile))" Text="Pushing package $(PackageFile) to $(NuGetSourceToDeploy)..." Importance="High"  /><commit_msg>Fix #21 property reference condition fixed<commit_after>﻿<?xml version="1.0" encoding="utf-8" ?>
<Project xmlns="http://schemas.microsoft.com/developer/msbuild/2003">

  <PropertyGroup>
    <!-- Use AppVeyor Build-Number, cf.: http://www.appveyor.com/docs/environment-variables -->
    <Build Condition="'$(CI)' == 'True'">$(APPVEYOR_BUILD_NUMBER)</Build>
    <!-- Use Build-Number from Jenkins or TeamCity -->
    <Build Condition="'$(BUILD_NUMBER)' != ''">$(BUILD_NUMBER)</Build>
    <!-- Fallback to "0" if still not set -->
    <Build Condition="'$(Build)' == ''">0</Build>
    <DeployFailOnBuildNotSet Condition="'$(DeployFailOnBuildNotSet)' == ''">true</DeployFailOnBuildNotSet>

    <NuspecFile Condition="'$(NuspecFile)'==''">$(ProjectDir)Package.nuspec</NuspecFile>
    <NuGetSourceToDeploy Condition="'$(NuGetSourceToDeploy)'==''">https://www.nuget.org</NuGetSourceToDeploy>
  </PropertyGroup>

  <!-- Targets -->
  <Target Name="Test" DependsOnTargets="Build;TestWithNunit"/>
  <Target Name="Coverage" DependsOnTargets="Build;OpenCoverWithNUnit"/>

  <Target Name="CoverageReport" DependsOnTargets="Coverage;OpenCoverReport"/>
  <Target Name="CoverageUpload" DependsOnTargets="Coverage;CoverAllsUpload"/>
  <Target Name="Package" DependsOnTargets="Build;PackageWithNuGet"/>
  <Target Name="Deploy" DependsOnTargets="Build;Package;DeployWithNuGet;Publish"/>

  <!-- ClickOnce Versioning -->
  <Target Name="SetSetClickOnceVersion"
    Condition="'$(ApplicationVersion)'==''"
    DependsOnTargets="GetVersion"
    BeforeTargets="_DeploymentComputeClickOnceManifestInfo">
    <PropertyGroup>
      <RevisionNumber Condition="'$(ApplicationRevision)'!=''">$(ApplicationRevision)</RevisionNumber>
      <RevisionNumber Condition="'$(ApplicationRevision)'==''">$(Build)</RevisionNumber>
    </PropertyGroup>
    <CreateProperty Value="$(GitVersion_MajorMinorPatch).$(RevisionNumber)">
      <Output TaskParameter="Value" PropertyName="ApplicationVersion"/>
    </CreateProperty>
    <!-- for VSTO -->
    <CreateProperty Value="$(ApplicationVersion)">
      <Output TaskParameter="Value" PropertyName="PublishVersion"/>
    </CreateProperty>
    <Message Text="ClickOnce ApplicationVersion: $(ApplicationVersion)" Importance="High" />
  </Target>

  <!-- NuGet -->
  <Target Name="PackageWithNuGet" DependsOnTargets="Build;GetVersion">
    <PropertyGroup>
      <Revision>$(GitVersion_Sha)</Revision>
      <PackageVersion Condition="'$(PackageVersion)'==''">$(GitVersion_NuGetVersion)</PackageVersion>
    </PropertyGroup>

    <Message Importance="Normal" Condition="!Exists($(NuspecFile))" Text="Skipping target because .nuspec-file is missing (expected '$(NuspecFile)')" />
    <Exec Condition="Exists($(NuspecFile))"
          ContinueOnError="ErrorAndContinue"
          Command="nuget pack $(NuspecFile) -Properties Version=$(PackageVersion);Revision=$(Revision);Configuration=$(Configuration)"/>
  </Target>

  <Target Name="DeployWithNuGet" DependsOnTargets="PackageWithNuGet">
    <Error Condition="'$(Build)' == '0' And '$(DeployFailOnBuildNotSet)' != 'false'" Text="Build number not set. See the OneClickBuild README."/>

    <PropertyGroup>
      <PackageVersion Condition="'$(PackageVersion)'==''">$(GitVersion_NuGetVersion)</PackageVersion>
      <PackageId Condition="'$(PackageId)'=='' And Exists('$(ProjectName).$(PackageVersion).nupkg')">$(ProjectName)</PackageId>
      <PackageId Condition="'$(PackageId)'=='' And Exists('$(AssemblyName).$(PackageVersion).nupkg')">$(AssemblyName)</PackageId>
      <PackageId Condition="'$(PackageId)'=='' And Exists('$(RootNamespace).$(PackageVersion).nupkg')">$(RootNamespace)</PackageId>
      <PackageFile>$(PackageId).$(PackageVersion).nupkg</PackageFile>
    </PropertyGroup>

    <Message Condition="!Exists($(PackageFile))" Text="Skipping target because package file '$(PackageFile)' has not been built for project '$(ProjectName)'" Importance="Normal"  />
    <!-- To set API key use "NuGet.exe setApiKey <key> -Source <source>" -->
    <Message Condition="'$(PackageFile)'!='' And Exists($(PackageFile))" Text="Pushing package $(PackageFile) to $(NuGetSourceToDeploy)..." Importance="High"  />
{'fraction_non_alphanumeric': 0.18342767674334579, 'fraction_numerical': 0.0026496447067325063, 'mean_word_length': 6.121783876500857, 'pattern_counts': {'":': 0, '<': 149, '<?xml version=': 2, '>': 149, 'https://': 2, 'lorem ipsum': 0, 'www.': 4, 'xml': 4}, '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': '238905', 'n_tokens_mistral': 2528, 'n_tokens_neox': 2330, 'n_words': 389}