<commit_before>﻿<?xml version="1.0" encoding="utf-8" ?>
<Project ToolsVersion="12.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
  <PropertyGroup>
    <PostBuildEventDependsOn>
      $(PostBuildEventDependsOn);
      BuildNugetPackage
    </PostBuildEventDependsOn>

    <BuildDependsOn>
      $(BuildDependsOn);
      BuildNugetPackage
    </BuildDependsOn>
    <BuildPackage>true</BuildPackage>
  </PropertyGroup>

  <Target Name="BuildNugetPackage" Condition="'$(BuildPackage)' == 'true'">
    <!-- use NuGetCommand here -->
  </Target>

  <Target Name="DllExportFindNugetVersion"
          Condition="'$(BuildPackage)' == 'true' and '$(NuGetCommand)' == '' and '$(NuGetToolsPath)' == ''"
          BeforeTargets="BuildNugetPackage">
    <XmlPeek XmlInputPath="$(SolutionDir).nuget/packages.config"
             Query="/packages/package[@id='NuGet.<EMAIL>']/@version">
      <Output TaskParameter="Result"
              ItemName="NugetCommandLineVersionItem"/>
    </XmlPeek>
    <PropertyGroup>
      <NugetCommandLineVersion Condition="'$(NugetCommandLineVersion)' == ''">@(NugetCommandLineVersionItem)</NugetCommandLineVersion>
    </PropertyGroup>

    <CreateProperty Condition="'$(NuGetToolsPath)' == ''"
                    Value="$(SolutionDir)packages/NuGet.CommandLine.$(NugetCommandLineVersion)\tools">
      <Output TaskParameter="Value"
              PropertyName="NuGetToolsPath"></Output>
    </CreateProperty>
  </Target>

  <Target Name="DllExportSetupNuGetCommand" Condition="'$(NuGetCommand)' == '' and '$(NuGetToolsPath)' != ''"
  AfterTargets="DllExportFindNugetVersion"
  BeforeTargets="BuildNugetPackage">
    <PropertyGroup>
      <NuGetExePath Condition=" '$(NuGetExePath)' == '' ">$(NuGetToolsPath)\NuGet.exe</NuGetExePath>

      <NuGetCommand Condition=" '$(OS)' == 'Windows_NT'">"$(NuGetExePath)"</NuGetCommand>
      <NuGetCommand Condition=" '$(OS)' != 'Windows_NT' ">mono --runtime=v4.0.30319 "$(NuGetExePath)"</NuGetCommand>
    </PropertyGroup>
  </Target>

</Project><commit_msg>define ReadOnlyDictionary when doing pre-4.5 builds<commit_after>﻿<?xml version="1.0" encoding="utf-8" ?>
<Project ToolsVersion="12.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
  <PropertyGroup>
    <PostBuildEventDependsOn>
      $(PostBuildEventDependsOn);
      BuildNugetPackage
    </PostBuildEventDependsOn>

    <BuildDependsOn>
      CheckForReadOnlyDictionary;
      $(BuildDependsOn);
      BuildNugetPackage
    </BuildDependsOn>
    <BuildPackage>true</BuildPackage>
  </PropertyGroup>

  <Target Name="BuildNugetPackage" Condition="'$(BuildPackage)' == 'true'">
    <!-- use NuGetCommand here -->
  </Target>

  <Target Name="CheckForReadOnlyDictionary" BeforeTargets="CoreBuild">
    <PropertyGroup Condition ="'$(TargetFrameworkVersion)' != 'v3.5' and '$(TargetFrameworkVersion)' != 'v4.0'">
      <DefineConstants>$(DefineConstants) ReadOnlyDictionary</DefineConstants>
    </PropertyGroup>
  </Target>


  <Target Name="DllExportFindNugetVersion"
          Condition="'$(BuildPackage)' == 'true' and '$(NuGetCommand)' == '' and '$(NuGetToolsPath)' == ''"
          BeforeTargets="BuildNugetPackage">
    <XmlPeek XmlInputPath="$(SolutionDir).nuget/packages.config"
             Query="/packages/package[@id='NuGet.CommandLine']/@version">
      <Output TaskParameter="Result"
              ItemName="NugetCommandLineVersionItem"/>
    </XmlPeek>
    <PropertyGroup>
      <NugetCommandLineVersion Condition="'$(NugetCommandLineVersion)' == ''">@(NugetCommandLineVersionItem)</NugetCommandLineVersion>
    </PropertyGroup>

    <CreateProperty Condition="'$(NuGetToolsPath)' == ''"
                    Value="$(SolutionDir)packages/NuGet.CommandLine.$(NugetCommandLineVersion)\tools">
      <Output TaskParameter="Value"
              PropertyName="NuGetToolsPath"></Output>
    </CreateProperty>
  </Target>

  <Target Name="DllExportSetupNuGetCommand" Condition="'$(NuGetCommand)' == '' and '$(NuGetToolsPath)' != ''"
  AfterTargets="DllExportFindNugetVersion"
  BeforeTargets="BuildNugetPackage">
    <PropertyGroup>
      <NuGetExePath Condition=" '$(NuGetExePath)' == '' ">$(NuGetToolsPath)\NuGet.exe</NuGetExePath>

      <NuGetCommand Condition=" '$(OS)' == 'Windows_NT'">"$(NuGetExePath)"</NuGetCommand>
      <NuGetCommand Condition=" '$(OS)' != 'Windows_NT' ">mono --runtime=v4.0.30319 "$(NuGetExePath)"</NuGetCommand>
    </PropertyGroup>
  </Target>

</Project>
{'fraction_non_alphanumeric': 0.16711229946524064, 'fraction_numerical': 0.008912655971479501, 'mean_word_length': 4.597256857855362, 'pattern_counts': {'":': 0, '<': 84, '<?xml version=': 2, '>': 84, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, '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': '1666177', 'n_tokens_mistral': 1476, 'n_tokens_neox': 1310, 'n_words': 181}