<commit_before>param(
   [String]
   $Version
)

Write-Host "version set to $Version"

Write-Host "changing core version..."
$path = "$PSScriptRoot\src\NetBox\project.json"
$json = Get-Content $path | ConvertFrom-Json
$json.version = $Version
$json | ConvertTo-Json | Set-Content -Path $path

Write-Host "changing dependencies versions..."
$path = "$PSScriptRoot\src\NetBox.Tests\project.json"
$json = Get-Content $path | ConvertFrom-Json
$json.dependencies.NetBox = $Version
$json | ConvertTo-Json | Set-Content -Path $path

<commit_msg>convertto-json parameter to increase depth<commit_after>param(
   [String]
   $Version
)

Write-Host "version set to $Version"

Write-Host "changing core version..."
$path = "$PSScriptRoot\src\NetBox\project.json"
$json = Get-Content $path | ConvertFrom-Json
$json.version = $Version
$json | ConvertTo-Json -Depth 100 | Set-Content -Path $path

Write-Host "changing dependencies versions..."
$path = "$PSScriptRoot\src\NetBox.Tests\project.json"
$json = Get-Content $path | ConvertFrom-Json
$json.dependencies.NetBox = $Version
$json | ConvertTo-Json -Depth 100 | Set-Content -Path $path


{'fraction_non_alphanumeric': 0.14108251996450755, 'fraction_numerical': 0.005323868677905945, 'mean_word_length': 4.529411764705882, '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': '4964027', 'n_tokens_mistral': 370, 'n_tokens_neox': 356, 'n_words': 92}