<commit_before>param($installPath, $toolsPath, $package, $project)
  Write-Host "Adding System.Windows.Interactivity..."
  
  if (Test-Path "HKLM:\SOFTWARE\WOW6432Node\Microsoft\Microsoft SDKs\WindowsPhone\v8.0\AssemblyFoldersEx\BlendPhoneSDK") {
    $blendSdkPath = Get-ItemPropertyValue "HKLM:\SOFTWARE\WOW6432Node\Microsoft\Microsoft SDKs\WindowsPhone\v8.0\AssemblyFoldersEx\Windows Phone" -Name "(default)"
  }
  elseif (Test-Path "HKLM:\SOFTWARE\Microsoft\Microsoft SDKs\WindowsPhone\v8.0\AssemblyFoldersEx\BlendPhoneSDK") {
    $blendSdkPath = Get-ItemPropertyValue "HKLM:\SOFTWARE\Microsoft\Microsoft SDKs\WindowsPhone\v8.0\AssemblyFoldersEx\Windows Phone" -Name "(default)"
  }
  
  $blendSdkAssemblyPath = "$blendSdkPath\System.Windows.Interactivity.dll"
  
  if (Test-Path $blendSdkAssemblyPath) {
    $project.Object.References.Add($blendSdkAssemblyPath)
  }
  else {
    Write-Host "Unable to find System.Windows.Interactivity, please add it manually!"
  }
  
  $project.Save()<commit_msg>Improvements on Install.ps1 script for WP81<commit_after>param($installPath, $toolsPath, $package, $project)
  Write-Host "Adding System.Windows.Interactivity..."
  
  $knownRegistryPaths = @(
    "HKLM:\SOFTWARE\WOW6432Node\Microsoft\Microsoft SDKs\WindowsPhone\v8.0\AssemblyFoldersEx\BlendPhoneSDK",
    "HKLM:\SOFTWARE\Microsoft\Microsoft SDKs\WindowsPhone\v8.0\AssemblyFoldersEx\BlendPhoneSDK"
  )
  
  $validRegistryPath = $knownRegistryPaths | ? { Test-Path $_ } | Select-Object -First 1
  
  if ($validRegistryPath) {
    $blendSdkPath = (Get-ItemProperty $validRegistryPath -Name "(default)")."(default)"
  }
  
  $blendSdkAssemblyPath = "$blendSdkPath\System.Windows.Interactivity.dll"
  
  if (Test-Path $blendSdkAssemblyPath) {
    $project.Object.References.Add($blendSdkAssemblyPath)
    
    $project.Save()
  }
  else {
    Write-Host "Unable to find System.Windows.Interactivity, please add it manually!"
  }
{'fraction_non_alphanumeric': 0.12727272727272726, 'fraction_numerical': 0.014545454545454545, 'mean_word_length': 4.71513353115727, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, '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': '6262820', 'n_tokens_mistral': 681, 'n_tokens_neox': 650, 'n_words': 92}