<commit_before><?xml version="1.0" encoding="utf-8"?>
<Project ToolsVersion="4.0" DefaultTargets="Go" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
  <PropertyGroup>
    <ReportsDirectory>$(RootDirectory)\reports</ReportsDirectory>
    
    <NunitEXE>$(RootDirectory)\tools\nunit-runner\nunit-console-x86.exe</NunitEXE>
    <NUnitArgs>$(SrcDirectory)\RESTful-Webservice-Schema.nunit /exclude:DependsOnExternalResource /noshadow /config:Debug /framework:4.0.30319 /xml:NUnitResults.xml</NUnitArgs>

    <PartCover4Directory>$(ProgramFiles86)\PartCover\PartCover .NET 4.0</PartCover4Directory>
  </PropertyGroup>
  
  <!-- Runs unit tests through PartCover to calculate unit test covereage-->
  <Target Name="RunTestsPartCover" DependsOnTargets="CreateReportDirectories; UpdatePartCover4Settings">

    <Exec Command="&quot;$(PartCover4Directory)\PartCover.exe&quot; --settings $(SrcDirectory)\PartCover4.settings.xml --output $(ReportsDirectory)\PartCover-results.xml"
      ContinueOnError="true"
      WorkingDirectory="$(ReportsDirectory)">
      <Output TaskParameter="ExitCode" ItemName="ExitCodes"/>
    </Exec>

    <XslTransformation XslInputPath="$(RootDirectory)\tools\partcover4\xslt\PartCoverFullReport.xslt"
                      XmlInputPaths="$(ReportsDirectory)\PartCover-results.xml"
                      OutputPaths="$(ReportsDirectory)\PartCover-results-PartCoverFullReport.html" />

    <Error Text="Test error occurred" Condition="'%(ExitCodes.Identity)'>0"/>
  </Target>

   <Target Name="RunTests" DependsOnTargets="CreateReportDirectories">

    <Exec Command="&quot;$(NunitEXE)&quot; $(NUnitArgs)"
      ContinueOnError="true"
      WorkingDirectory="$(ReportsDirectory)">
      <Output TaskParameter="ExitCode" ItemName="ExitCodes"/>
    </Exec>

    <Error Text="Test error occurred" Condition="'%(ExitCodes.Identity)'>0"/>
  </Target>
  
  <Target Name="CreateReportDirectories">
    <Message Text="Making the report directories at '$(ReportsDirectory)'." />
    <RemoveDir Directories="$(ReportsDirectory)" Condition="Exists('$(ReportsDirectory)')" ContinueOnError="True" />
    <MakeDir Directories="$(ReportsDirectory)"/>
  </Target>

  <Target Name="CalculateMetrics" DependsOnTargets="CalculateComplexityMetrics; CalculateCRAPMetrics"></Target>
  
  <Target Name="CalculateComplexityMetrics">
    <Exec Command="&quot;$(RootDirectory)\tools\reflector\Reflector.exe&quot; /Run:Reflector.CodeMetrics /Assembly:&quot;@(Assemblies, '&quot; /Assembly:&quot;')&quot; /OutputPath:&quot;CodeMetrics.xml&quot;"
      ContinueOnError="false"
      WorkingDirectory="$(ReportsDirectory)" />
  </Target>

  <Target Name="CalculateCRAPMetrics">
    <Exec Command="&quot;$(RootDirectory)\tools\crap4net\Crap4Net-Console.exe&quot;"
      ContinueOnError="false"
      WorkingDirectory="$(ReportsDirectory)" />
  </Target>

  <!-- Use %2a instead of * and %3f instead of ? to prevent expansion -->
  <!-- %40 = @  %25 = % %24 = $ -->
  <Target Name="UpdatePartCover4Settings">
    <ItemGroup>
      <pc4_settings Include="--target &quot;$(NUnitEXE)&quot;"/>
      <pc4_settings Include="--target-work-dir &quot;$(ReportsDirectory)&quot;"/>
<!--      target-args &quot;%(TestAssemblies.Identity) $(NUnitArgs) /xml:%(TestAssemblies.Identity).NUnitResults.xml&quot;-->
      <pc4_settings Include="--include [%2a]%2a"/>
      <pc4_settings Include="--exclude [nunit%2a]%2a"/>
      <pc4_settings Include="--exclude [log4net%2a]%2a"/>
      <pc4_settings Include="--exclude [MyProject.Core.Tests%2a]%2a"/>
    </ItemGroup>
  </Target>
</Project><commit_msg>Run tests of current build $(Configuration)<commit_after><?xml version="1.0" encoding="utf-8"?>
<Project ToolsVersion="4.0" DefaultTargets="Go" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
  <PropertyGroup>
    <ReportsDirectory>$(RootDirectory)\reports</ReportsDirectory>
    
    <NunitEXE>$(RootDirectory)\tools\nunit-runner\nunit-console-x86.exe</NunitEXE>
    <NUnitArgs>$(SrcDirectory)\RESTful-Webservice-Schema.nunit /exclude:DependsOnExternalResource /noshadow /config:$(Configuration) /framework:4.0.30319 /xml:NUnitResults.xml</NUnitArgs>

    <PartCover4Directory>$(ProgramFiles86)\PartCover\PartCover .NET 4.0</PartCover4Directory>
  </PropertyGroup>
  
  <!-- Runs unit tests through PartCover to calculate unit test covereage-->
  <Target Name="RunTestsPartCover" DependsOnTargets="CreateReportDirectories; UpdatePartCover4Settings">

    <Exec Command="&quot;$(PartCover4Directory)\PartCover.exe&quot; --settings $(SrcDirectory)\PartCover4.settings.xml --output $(ReportsDirectory)\PartCover-results.xml"
      ContinueOnError="true"
      WorkingDirectory="$(ReportsDirectory)">
      <Output TaskParameter="ExitCode" ItemName="ExitCodes"/>
    </Exec>

    <XslTransformation XslInputPath="$(RootDirectory)\tools\partcover4\xslt\PartCoverFullReport.xslt"
                      XmlInputPaths="$(ReportsDirectory)\PartCover-results.xml"
                      OutputPaths="$(ReportsDirectory)\PartCover-results-PartCoverFullReport.html" />

    <Error Text="Test error occurred" Condition="'%(ExitCodes.Identity)'>0"/>
  </Target>

   <Target Name="RunTests" DependsOnTargets="CreateReportDirectories">

    <Exec Command="&quot;$(NunitEXE)&quot; $(NUnitArgs)"
      ContinueOnError="true"
      WorkingDirectory="$(ReportsDirectory)">
      <Output TaskParameter="ExitCode" ItemName="ExitCodes"/>
    </Exec>

    <Error Text="Test error occurred" Condition="'%(ExitCodes.Identity)'>0"/>
  </Target>
  
  <Target Name="CreateReportDirectories">
    <Message Text="Making the report directories at '$(ReportsDirectory)'." />
    <RemoveDir Directories="$(ReportsDirectory)" Condition="Exists('$(ReportsDirectory)')" ContinueOnError="True" />
    <MakeDir Directories="$(ReportsDirectory)"/>
  </Target>

  <Target Name="CalculateMetrics" DependsOnTargets="CalculateComplexityMetrics; CalculateCRAPMetrics"></Target>
  
  <Target Name="CalculateComplexityMetrics">
    <Exec Command="&quot;$(RootDirectory)\tools\reflector\Reflector.exe&quot; /Run:Reflector.CodeMetrics /Assembly:&quot;@(Assemblies, '&quot; /Assembly:&quot;')&quot; /OutputPath:&quot;CodeMetrics.xml&quot;"
      ContinueOnError="false"
      WorkingDirectory="$(ReportsDirectory)" />
  </Target>

  <Target Name="CalculateCRAPMetrics">
    <Exec Command="&quot;$(RootDirectory)\tools\crap4net\Crap4Net-Console.exe&quot;"
      ContinueOnError="false"
      WorkingDirectory="$(ReportsDirectory)" />
  </Target>

  <!-- Use %2a instead of * and %3f instead of ? to prevent expansion -->
  <!-- %40 = @  %25 = % %24 = $ -->
  <Target Name="UpdatePartCover4Settings">
    <ItemGroup>
      <pc4_settings Include="--target &quot;$(NUnitEXE)&quot;"/>
      <pc4_settings Include="--target-work-dir &quot;$(ReportsDirectory)&quot;"/>
<!--      target-args &quot;%(TestAssemblies.Identity) $(NUnitArgs) /xml:%(TestAssemblies.Identity).NUnitResults.xml&quot;-->
      <pc4_settings Include="--include [%2a]%2a"/>
      <pc4_settings Include="--exclude [nunit%2a]%2a"/>
      <pc4_settings Include="--exclude [log4net%2a]%2a"/>
      <pc4_settings Include="--exclude [MyProject.Core.Tests%2a]%2a"/>
    </ItemGroup>
  </Target>
</Project>
{'fraction_non_alphanumeric': 0.16558036333379558, 'fraction_numerical': 0.015531826376369436, 'mean_word_length': 5.0, 'pattern_counts': {'":': 0, '<': 109, '<?xml version=': 2, '>': 113, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 20}, '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': '6190113', 'n_tokens_mistral': 2351, 'n_tokens_neox': 2167, 'n_words': 314}