<commit_before><Project xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
    <PropertyGroup>
        <NuGetMSBuildPath Condition=" '$(NuGetMSBuildPath)' == '' ">$(MSBuildThisFileDirectory)\NuGet.MsBuild.dll</NuGetMSBuildPath>
        <CleanNuGetPackages Condition="'$(CleanNuGetPackages)'==''">false</CleanNuGetPackages>
        <SetupNuGetPackages Condition="'$(SetupNuGetPackages)'==''">false</SetupNuGetPackages>
        <CreateNuGetPackage Condition="'$(CreateNuGetPackage)'==''">false</CreateNuGetPackage>

        <PackBaseDir Condition="'$(PackBaseDir)'==''">$(MsBuildProjectDirectory)</PackBaseDir>
        <NuSpecFilePath Condition="'$(NuSpecFilePath)'==''">$(MSBuildProjectDirectory)\package.nuspec</NuSpecFilePath>
        <PublishPackageDir Condition=" '$(PublishPackageDir)' == '' ">$(OutputPath)</PublishPackageDir>

        <PackageDirName Condition="'$(PackageDirName)'==''">Packages</PackageDirName>
        <PackageDir Condition="'$(PackageDir)'==''">$(MSBuildProjectDirectory)\..\$(PackageDirName)</PackageDir>

        <PackageConfigName Condition="'$(PackageConfigName)'==''">packages.config</PackageConfigName>
        <PackageConfigPath Condition="'$(PackageConfigPath)'==''">$(MSBuildProjectDirectory)\$(PackageConfigName)</PackageConfigPath>

        <CreateOnly Condition="'$(CreateOnly)'==''">false</CreateOnly>
    </PropertyGroup>

    <!-- ======================================================
       Dependencies and wiring
       ====================================================== 
       -->
    <PropertyGroup>

        <!-- if required insert clean packages task into the clean section-->
        <CleanDependsOn Condition="'$(CleanNuGetPackages)'=='true'">
            $(CleanDependsOn);
            CleanNuGetPackageDirectory
        </CleanDependsOn>

        <!-- if required insert setup packages task into the pre-build section -->
        <BuildDependsOn Condition="'$(SetupNuGetPackages)'=='true'">
            DownloadNuGetDependencies;
            $(BuildDependsOn)
        </BuildDependsOn>

        <BuildNuGetPackageDependsOn>
            BeforeBuildNuGetPackage;
            BuildNuGetPackageFromSpec;
            AfterBuildNuGetPackage
        </BuildNuGetPackageDependsOn>

        <PublishNuGetPackageOnlyDependsOn>
            BeforePublishNuGetPackage;
            PublishNuGetPackageToFeed;
            AfterPublishNuGetPackage
        </PublishNuGetPackageOnlyDependsOn>

        <!-- the publish package target always calls create package so no conditions here -->
        <PublishNuGetPackageDependsOn>
            $(BuildDependsOn);
            $(BuildNuGetPackageDependsOn);
            $(PublishNuGetPackageOnlyDependsOn)
        </PublishNuGetPackageDependsOn>

        <!-- if required insert create package task at the end of the post-build steps -->
        <BuildDependsOn Condition="'$(CreateNuGetPackage)'=='true'">
            $(BuildDependsOn);
            $(BuildNuGetPackageDependsOn)
        </BuildDependsOn>

    </PropertyGroup>

    <UsingTask AssemblyFile="$(NuGetMSBuildPath)"
               TaskName="NuGet" />
    <UsingTask AssemblyFile="$(NuGetMSBuildPath)"
               TaskName="NuGetFetch" />
    <UsingTask AssemblyFile="$(NuGetMSBuildPath)"
               TaskName="NuGetPush" />

    <!-- ========================================================= 
       Publishing targets section
       =========================================================
       -->
    <Target Name="PublishNuGetPackage"
            DependsOnTargets="$(PublishNuGetPackageDependsOn)" />

    <Target Name="PublishNuGetPackageOnly"
            DependsOnTargets="$(PublishNuGetPackageOnlyDependsOn)" />

    <!-- override this for custom actions before publishing the nuget package -->
    <Target Name="BeforePublishNuGetPackage" />

    <!-- override this for custom actions after building the nuget package -->
    <Target Name="AfterPublishNuGetPackage" />

    <Target Name="PublishNuGetPackageToFeed"
            Condition="Exists('$(OutputPackagePath)')">

        <!-- publish the package to the main nuget feed -->
        <NuGetPush CreateOnly="$(CreateOnly)"
                   Source="$(NuGetPublishUrl)"
                   PackagePath="$(OutputPackagePath)"
                   ApiKey="$(NuGetApiKey)" />

    </Target><commit_msg>Nuget.MsBuild : PublishNugetPackage "succeeds" (no-op) if package doesn't get created. Work Item: 1305<commit_after><Project xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
    <PropertyGroup>
        <NuGetMSBuildPath Condition=" '$(NuGetMSBuildPath)' == '' ">$(MSBuildThisFileDirectory)\NuGet.MsBuild.dll</NuGetMSBuildPath>
        <CleanNuGetPackages Condition="'$(CleanNuGetPackages)'==''">false</CleanNuGetPackages>
        <SetupNuGetPackages Condition="'$(SetupNuGetPackages)'==''">false</SetupNuGetPackages>
        <CreateNuGetPackage Condition="'$(CreateNuGetPackage)'==''">false</CreateNuGetPackage>

        <PackBaseDir Condition="'$(PackBaseDir)'==''">$(MsBuildProjectDirectory)</PackBaseDir>
        <NuSpecFilePath Condition="'$(NuSpecFilePath)'==''">$(MSBuildProjectDirectory)\package.nuspec</NuSpecFilePath>
        <PublishPackageDir Condition=" '$(PublishPackageDir)' == '' ">$(OutputPath)</PublishPackageDir>

        <PackageDirName Condition="'$(PackageDirName)'==''">Packages</PackageDirName>
        <PackageDir Condition="'$(PackageDir)'==''">$(MSBuildProjectDirectory)\..\$(PackageDirName)</PackageDir>

        <PackageConfigName Condition="'$(PackageConfigName)'==''">packages.config</PackageConfigName>
        <PackageConfigPath Condition="'$(PackageConfigPath)'==''">$(MSBuildProjectDirectory)\$(PackageConfigName)</PackageConfigPath>

        <CreateOnly Condition="'$(CreateOnly)'==''">false</CreateOnly>
    </PropertyGroup>

    <!-- ======================================================
       Dependencies and wiring
       ====================================================== 
       -->
    <PropertyGroup>

        <!-- if required insert clean packages task into the clean section-->
        <CleanDependsOn Condition="'$(CleanNuGetPackages)'=='true'">
            $(CleanDependsOn);
            CleanNuGetPackageDirectory
        </CleanDependsOn>

        <!-- if required insert setup packages task into the pre-build section -->
        <BuildDependsOn Condition="'$(SetupNuGetPackages)'=='true'">
            DownloadNuGetDependencies;
            $(BuildDependsOn)
        </BuildDependsOn>

        <BuildNuGetPackageDependsOn>
            BeforeBuildNuGetPackage;
            BuildNuGetPackageFromSpec;
            AfterBuildNuGetPackage
        </BuildNuGetPackageDependsOn>

        <PublishNuGetPackageOnlyDependsOn>
            BeforePublishNuGetPackage;
            PublishNuGetPackageToFeed;
            AfterPublishNuGetPackage
        </PublishNuGetPackageOnlyDependsOn>

        <!-- the publish package target always calls create package so no conditions here -->
        <PublishNuGetPackageDependsOn>
            $(BuildDependsOn);
            $(BuildNuGetPackageDependsOn);
            $(PublishNuGetPackageOnlyDependsOn)
        </PublishNuGetPackageDependsOn>

        <!-- if required insert create package task at the end of the post-build steps -->
        <BuildDependsOn Condition="'$(CreateNuGetPackage)'=='true'">
            $(BuildDependsOn);
            $(BuildNuGetPackageDependsOn)
        </BuildDependsOn>

    </PropertyGroup>

    <UsingTask AssemblyFile="$(NuGetMSBuildPath)"
               TaskName="NuGet" />
    <UsingTask AssemblyFile="$(NuGetMSBuildPath)"
               TaskName="NuGetFetch" />
    <UsingTask AssemblyFile="$(NuGetMSBuildPath)"
               TaskName="NuGetPush" />

    <!-- ========================================================= 
       Publishing targets section
       =========================================================
       -->
    <Target Name="PublishNuGetPackage"
            DependsOnTargets="$(PublishNuGetPackageDependsOn)" />

    <Target Name="PublishNuGetPackageOnly"
            DependsOnTargets="$(PublishNuGetPackageOnlyDependsOn)" />

    <!-- override this for custom actions before publishing the nuget package -->
    <Target Name="BeforePublishNuGetPackage" />

    <!-- override this for custom actions after building the nuget package -->
    <Target Name="AfterPublishNuGetPackage" />

    <Target Name="PublishNuGetPackageToFeed">
      <Error Text="OutputPackagePath is empty. Ensure that the &lt;CreateNuGetPackage&gt; property is set in your project."
               Condition=" '$(OutputPackagePath)' == '' " />

        <!-- publish the package to the main nuget feed -->
        <NuGetPush CreateOnly="$(CreateOnly)"
                   Source="$(NuGetPublishUrl)"
                   PackagePath="$(OutputPackagePath)"
                   ApiKey="$(NuGetApiKey)" />

    </Target>
{'fraction_non_alphanumeric': 0.17521704814522493, 'fraction_numerical': 0.0013530273988048259, 'mean_word_length': 3.4283574638042937, 'pattern_counts': {'":': 0, '<': 124, '<?xml version=': 0, '>': 124, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 2}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 2, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '1277112', 'n_tokens_mistral': 2430, 'n_tokens_neox': 2129, 'n_words': 367}