<commit_before>#$ErrorActionPreference = "Stop";

#Set-StrictMode -Version Latest;

function ExportNPSConfig
{
  Param
  (
    [string] $path
  )
  Write-Host "Exporting config to $path";
  Export-NpsConfiguration -Path $path;
}

function FilesMatch
{
  # Compares two file hashes and returns true if they are the same
  Param
  (
    [string] $refFile,
    [string] $compFile
  )

  $returnval =  ((Get-FileHash -Path $refFile -Algorithm MD5) -eq (Get-FileHash -Path $compFile -Algorithm MD5));
  Write-Host "Return value: $returnval";
  return $returnval;
}

ExportNPSConfig -path "<%= scope['npsradius::exportfile'] %>";

Write-Host "Returned from Exporting config";
<commit_msg>Added debugging<commit_after>#$ErrorActionPreference = "Stop";

#Set-StrictMode -Version Latest;

function ExportNPSConfig
{
  Param
  (
    [string] $path
  )
  Write-Host "Exporting config to $path";
  Export-NpsConfiguration -Path $path;
}

function FilesMatch
{
  # Compares two file hashes and returns true if they are the same
  Param
  (
    [string] $refFile,
    [string] $compFile
  )

  $returnval =  ((Get-FileHash -Path $refFile -Algorithm MD5) -eq (Get-FileHash -Path $compFile -Algorithm MD5));
  Write-Host "Return value: $returnval";
  return $returnval;
}

ExportNPSConfig -path "<%= scope['npsradius::exportfile'] %>";

Write-Host "Returned from Exporting config";

$res = (FilesMatch -refFile "<%= scope['npsradius::configfile'] %>" -compFile "<%= scope['npsradius::exportfile'] %>");

Write-Host "Result = $res";

{'fraction_non_alphanumeric': 0.1391820580474934, 'fraction_numerical': 0.002638522427440633, 'mean_word_length': 4.231034482758621, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 7, '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': '5079573', 'n_tokens_mistral': 525, 'n_tokens_neox': 510, 'n_words': 136}