<commit_before><Project>
  <Target Name="Push" DependsOnTargets="_PushNuGet;_PushNpm" />

  <Target Name="_PushNuGet">
    <Error Text="Missing required property: NuGetPublishFeed"  Condition=" '$(NuGetPublishFeed)' == '' "/>

    <ItemGroup>
      <_PackagesToPush Include="$(BuildDir)*.nupkg" />
      <_PackagesToPush Include="$(ArtifactsDir)mirror\*.nupkg" />
    </ItemGroup>

    <PushNuGetPackages
      Packages="@(_PackagesToPush)"
      Feed="$(NuGetPublishFeed)"
      Condition="@(_PackagesToPush->Count()) != 0"
      ApiKey="$(APIKey)" />
  </Target>

  <Target Name="_PushNpm">
    <Error Text="Missing required property: NpmRegistry"  Condition=" '$(NpmRegistry)' == '' "/>

    <PropertyGroup>
      <AuthTokenSetting>$(NpmRegistry.Replace("https:", "")):_authToken</AuthTokenSetting>
    </PropertyGroup>

    <ItemGroup>
      <NpmModuleArtifact Include="$(BuildDir)*.tgz" />
    </ItemGroup>

    <Exec Command="npm config set &quot;$(AuthTokenSetting)&quot; $(APIKey)" Condition=" '$(APIKey)' != '' " />
    <Exec Command="npm publish --registry $(NpmRegistry) &quot;%(NpmModuleArtifact.Identity)&quot;"
          Condition="@(NpmModuleArtifact->Count()) != 0"
          ContinueOnError="true">
      <Output TaskParameter="ExitCode" ItemName="ExitCodes" />
    </Exec>
    <Exec Command="npm config delete $(AuthTokenSetting)" Condition=" '$(APIKey)' != '' "/>
    <Error Text="Publishing npm modules failed" Condition="%(ExitCodes.Identity) > 0"/>
  </Target>
</Project>
<commit_msg>Only attempt to publish npm when npm artifacts exist<commit_after><Project>
  <Target Name="Push" DependsOnTargets="_PushNuGet;_PushNpm" />

  <ItemGroup>
    <PackagesToPush Include="$(BuildDir)*.nupkg" />
    <PackagesToPush Include="$(ArtifactsDir)mirror\*.nupkg" />
  </ItemGroup>

  <Target Name="_PushNuGet" Condition="@(PackagesToPush->Count()) != 0">
    <Error Text="Missing required property: NuGetPublishFeed"  Condition=" '$(NuGetPublishFeed)' == '' "/>
    <PushNuGetPackages
      Packages="@(PackagesToPush)"
      Feed="$(NuGetPublishFeed)"
      ApiKey="$(APIKey)" />
  </Target>

  <ItemGroup>
    <NpmModuleArtifact Include="$(BuildDir)*.tgz" />
  </ItemGroup>

  <Target Name="_PushNpm" Condition="@(NpmModuleArtifact->Count()) != 0">
    <Error Text="Missing required property: NpmRegistry"  Condition=" '$(NpmRegistry)' == '' "/>

    <PropertyGroup>
      <AuthTokenSetting>$(NpmRegistry.Replace("https:", "")):_authToken</AuthTokenSetting>
    </PropertyGroup>

    <Exec Command="npm config set &quot;$(AuthTokenSetting)&quot; $(APIKey)" Condition=" '$(APIKey)' != '' " />
    <Exec Command="npm publish --registry $(NpmRegistry) &quot;%(NpmModuleArtifact.Identity)&quot;"
          ContinueOnError="true">
      <Output TaskParameter="ExitCode" ItemName="ExitCodes" />
    </Exec>
    <Exec Command="npm config delete $(AuthTokenSetting)" Condition=" '$(APIKey)' != '' "/>
    <Error Text="Publishing npm modules failed" Condition="%(ExitCodes.Identity) > 0"/>
  </Target>
</Project>

{'fraction_non_alphanumeric': 0.1856763925729443, 'fraction_numerical': 0.001989389920424403, 'mean_word_length': 4.587037037037037, 'pattern_counts': {'":': 0, '<': 57, '<?xml version=': 0, '>': 63, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, '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': '3991894', 'n_tokens_mistral': 993, 'n_tokens_neox': 906, 'n_words': 168}