<commit_before>﻿using Ndapi.Core.Handles;
using Ndapi.Enums;

namespace Ndapi
{
    public class LibraryProgramUnit : NdapiObject
    {
        internal LibraryProgramUnit(ObjectSafeHandle handle) : base(handle)
        {
        }

        public string Text => GetStringProperty(NdapiConstants.D2FP_PGU_TXT);

        public ProgramUnitType Type => GetNumberProperty<ProgramUnitType>(NdapiConstants.D2FP_PGU_TYP);
    }
}<commit_msg>Add LibraryProgramUnit documentation (closes #19)<commit_after>﻿using Ndapi.Core.Handles;
using Ndapi.Enums;

namespace Ndapi
{
    /// <summary>
    /// Represents a library program unit.
    /// </summary>
    public class LibraryProgramUnit : NdapiObject
    {
        internal LibraryProgramUnit(ObjectSafeHandle handle) : base(handle)
        {
        }

        /// <summary>
        /// Gets the program unit code.
        /// </summary>
        public string Text => GetStringProperty(NdapiConstants.D2FP_PGU_TXT);

        /// <summary>
        /// Gets the program unit type.
        /// </summary>
        public ProgramUnitType Type => GetNumberProperty<ProgramUnitType>(NdapiConstants.D2FP_PGU_TYP);
    }
}
{'fraction_non_alphanumeric': 0.10207612456747404, 'fraction_numerical': 0.005190311418685121, 'mean_word_length': 2.732258064516129, 'pattern_counts': {'":': 0, '<': 11, '<?xml version=': 0, '>': 15, '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': '3486436', 'n_tokens_mistral': 346, 'n_tokens_neox': 338, 'n_words': 69}