<commit_before>﻿$here = Split-Path -Parent $MyInvocation.MyCommand.Path

Describe "Get-Item" {
    It "Should list all the items in the current working directory when asterisk is used" {
        (Get-Item $here/*).GetType().BaseType | Should Be 'array'
        (Get-Item $here/*).GetType().Name | Should Be 'Object[]'
    }

    It "Should return the name of the current working directory when a dot is used" {
        (Get-Item $here).GetType().BaseType | Should Be 'System.IO.FileSystemInfo'
        (Get-Item $here).Name | Should Be 'pester-tests'
    }

    It "Should return the proper Name and BaseType for directory objects vs file system objects" {
        (Get-Item $here).GetType().Name | Should Be 'DirectoryInfo'
        (Get-Item $here/Get-Item.Tests.ps1).GetType().Name | Should Be 'FileInfo'
    }

    It "Should have mode flags set" {
        ls $here | foreach-object { $_.Mode | Should Not BeNullOrEmpty }
    }
}<commit_msg>Fix the Get-Item Pester test<commit_after>﻿$here = Split-Path -Parent $MyInvocation.MyCommand.Path

Describe "Get-Item" {
    It "Should list all the items in the current working directory when asterisk is used" {
        (Get-Item $here/*).GetType().BaseType | Should Be 'array'
        (Get-Item $here/*).GetType().Name | Should Be 'Object[]'
    }

    It "Should return the name of the current working directory when a dot is used" {
        (Get-Item $here).GetType().BaseType | Should Be 'System.IO.FileSystemInfo'
        (Get-Item $here).Name | Should Be 'powershell'
    }

    It "Should return the proper Name and BaseType for directory objects vs file system objects" {
        (Get-Item $here).GetType().Name | Should Be 'DirectoryInfo'
        (Get-Item $here/Get-Item.Tests.ps1).GetType().Name | Should Be 'FileInfo'
    }

    It "Should have mode flags set" {
        ls $here | foreach-object { $_.Mode | Should Not BeNullOrEmpty }
    }
}
{'fraction_non_alphanumeric': 0.12204103103629668, 'fraction_numerical': 0.0010520778537611783, 'mean_word_length': 2.937888198757764, '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': '1346811', 'n_tokens_mistral': 575, 'n_tokens_neox': 564, 'n_words': 192}