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

  <PropertyGroup>

    <Version>0.0.1</Version>

    <PreserveCompilationContext Condition="$(IsTestProject)=='true'">true</PreserveCompilationContext>
    <CoverageTarget Condition="'$(CoverageTarget)'==''">70</CoverageTarget>
    <NoCoverage Condition="'$(NoCoverage)'==''">false</NoCoverage>

    <BuildUtil>$(MSBuildThisFileDirectory).build/Build.BuildUtil.dll</BuildUtil>
    <AltCover>$(NuGetPackageRoot)altcover\5.0.665\tools\netcoreapp2.0\AltCover.dll</AltCover>
    <VsTestConsole>$(MSBuildExtensionsPath)vstest.console.dll</VsTestConsole>
    <ReportGenerator>$(NuGetPackageRoot)reportgenerator\4.0.11\tools\netcoreapp2.0\ReportGenerator.dll</ReportGenerator>

    <TestAssembly>$(AssemblyName).dll</TestAssembly>
    <Quot>"</Quot>
    <SafeFilterTest>$([System.String]::Copy($(FilterTest)).Replace("/", "_fs_").Replace("\", "_bs_").Replace(":", "_col_").Replace("*", "_ast_").Replace("?", "_q_").Replace($(Quot), "_quot_").Replace("&gt;", "_gt_").Replace("&lt;", "_lt_").Replace("|", "_pipe_").Replace(" ", "__"))</SafeFilterTest>
    <TestSuccessFlag>$(AssemblyName).noCoverage$(NoCoverage)_$(SafeFilterTest).success.flg</TestSuccessFlag>
    <CoverageOutput>$(AssemblyName).coverage.xml</CoverageOutput>

  </PropertyGroup>

  <UsingTask AssemblyFile="$(BuildUtil)" TaskName="Build.BuildUtil.ColorExec" />

  <ItemGroup>
    <TestDependencies Include="$(OutDir)\$(AssemblyName).dll" />
    <TestDependencies Include="../**/*.cshtml" />
  </ItemGroup>

  <ItemGroup>
    <CoverageAssemblyFilter Include="NUnit3.TestAdapter" />
    <CoverageAssemblyFilter Include="Lucid.Infrastructure.Lib" />
    <CoverageTypeFilter Include="AutoGeneratedProgram" />
  </ItemGroup>

  <Target Name="BeforeBuildComplete" BeforeTargets="AfterBuild">
    <CallTarget Targets="RunTests" Condition="$(IsTestProject)=='true'" />
  </Target>

  <Target Name="RunTests" Condition="'$(RunTests)'=='true' or '$(FilterTest)'!=''" Inputs="@(TestDependencies)" Outputs="$(OutDir)$(TestSuccessFlag)">
    <CallTarget Targets="RunTestsWithoutCoverage" Condition="'$(FilterTest)'!='' Or '$(NoCoverage)'=='true'" />
    <CallTarget Targets="RunTestsWithCoverage" Condition="'$(FilterTest)'=='' And '$(NoCoverage)'!='true'" />
  </Target>

  <Target Name="RunTestsWithoutCoverage">
    <PropertyGroup>
      <TestStartTime>$([System.DateTime]::Now.AddSeconds(1).ToString(yyyy-MM-dd HH:mm:ss))</TestStartTime>
      <TestCaseFilterOption Condition="'$(FilterTest)'!=''">--testcasefilter:$(FilterTest)</TestCaseFilterOption>
    </PropertyGroup>
    <Message Importance="high" Text="Running tests: $(TestAssembly) without coverage $(TestCaseFilterOption)" />
    <ColorExec WorkingDirectory="$(OutDir)" Command="dotnet.exe &quot;$(VsTestConsole)&quot; $(TestAssembly) --logger:trx $(TestCaseFilterOption)" />
    <Touch Files="$(OutDir)$(TestSuccessFlag)" Time="$(TestStartTime)" AlwaysCreate="true" />
  </Target>

  <Target Name="RunTestsWithCoverage"><commit_msg>Prevented VS removing items from this list when they are renamed.<commit_after><?xml version="1.0" encoding="utf-8" ?>
<Project xmlns="http://schemas.microsoft.com/developer/msbuild/2003">

  <PropertyGroup>

    <Version>0.0.1</Version>

    <PreserveCompilationContext Condition="$(IsTestProject)=='true'">true</PreserveCompilationContext>
    <CoverageTarget Condition="'$(CoverageTarget)'==''">70</CoverageTarget>
    <NoCoverage Condition="'$(NoCoverage)'==''">false</NoCoverage>

    <BuildUtil>$(MSBuildThisFileDirectory).build/Build.BuildUtil.dll</BuildUtil>
    <AltCover>$(NuGetPackageRoot)altcover\5.0.665\tools\netcoreapp2.0\AltCover.dll</AltCover>
    <VsTestConsole>$(MSBuildExtensionsPath)vstest.console.dll</VsTestConsole>
    <ReportGenerator>$(NuGetPackageRoot)reportgenerator\4.0.11\tools\netcoreapp2.0\ReportGenerator.dll</ReportGenerator>

    <TestAssembly>$(AssemblyName).dll</TestAssembly>
    <Quot>"</Quot>
    <SafeFilterTest>$([System.String]::Copy($(FilterTest)).Replace("/", "_fs_").Replace("\", "_bs_").Replace(":", "_col_").Replace("*", "_ast_").Replace("?", "_q_").Replace($(Quot), "_quot_").Replace("&gt;", "_gt_").Replace("&lt;", "_lt_").Replace("|", "_pipe_").Replace(" ", "__"))</SafeFilterTest>
    <TestSuccessFlag>$(AssemblyName).noCoverage$(NoCoverage)_$(SafeFilterTest).success.flg</TestSuccessFlag>
    <CoverageOutput>$(AssemblyName).coverage.xml</CoverageOutput>

  </PropertyGroup>

  <UsingTask AssemblyFile="$(BuildUtil)" TaskName="Build.BuildUtil.ColorExec" />

  <ItemGroup Condition="'$(BuildingInsideVisualStudio)'!='true'">
    <TestDependencies Include="$(OutDir)\$(AssemblyName).dll" />
    <TestDependencies Include="../**/*.cshtml" />
  </ItemGroup>

  <ItemGroup>
    <CoverageAssemblyFilter Include="NUnit3.TestAdapter" />
    <CoverageAssemblyFilter Include="Lucid.Infrastructure.Lib" />
    <CoverageTypeFilter Include="AutoGeneratedProgram" />
  </ItemGroup>

  <Target Name="BeforeBuildComplete" BeforeTargets="AfterBuild">
    <CallTarget Targets="RunTests" Condition="$(IsTestProject)=='true'" />
  </Target>

  <Target Name="RunTests" Condition="'$(RunTests)'=='true' or '$(FilterTest)'!=''" Inputs="@(TestDependencies)" Outputs="$(OutDir)$(TestSuccessFlag)">
    <CallTarget Targets="RunTestsWithoutCoverage" Condition="'$(FilterTest)'!='' Or '$(NoCoverage)'=='true'" />
    <CallTarget Targets="RunTestsWithCoverage" Condition="'$(FilterTest)'=='' And '$(NoCoverage)'!='true'" />
  </Target>

  <Target Name="RunTestsWithoutCoverage">
    <PropertyGroup>
      <TestStartTime>$([System.DateTime]::Now.AddSeconds(1).ToString(yyyy-MM-dd HH:mm:ss))</TestStartTime>
      <TestCaseFilterOption Condition="'$(FilterTest)'!=''">--testcasefilter:$(FilterTest)</TestCaseFilterOption>
    </PropertyGroup>
    <Message Importance="high" Text="Running tests: $(TestAssembly) without coverage $(TestCaseFilterOption)" />
    <ColorExec WorkingDirectory="$(OutDir)" Command="dotnet.exe &quot;$(VsTestConsole)&quot; $(TestAssembly) --logger:trx $(TestCaseFilterOption)" />
    <Touch Files="$(OutDir)$(TestSuccessFlag)" Time="$(TestStartTime)" AlwaysCreate="true" />
  </Target>

  <Target Name="RunTestsWithCoverage">
{'fraction_non_alphanumeric': 0.20137776353732778, 'fraction_numerical': 0.008651073373918615, 'mean_word_length': 7.014120667522465, 'pattern_counts': {'":': 2, '<': 121, '<?xml version=': 2, '>': 121, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 6}, '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': '4252877', 'n_tokens_mistral': 2081, 'n_tokens_neox': 1867, 'n_words': 220}