<commit_before>﻿using NdapiManaged.Core;
using NdapiManaged.Core.Handles;
using NdapiManaged.Enums;
using System.Collections.Generic;

namespace NdapiManaged
{
    public class FormModule : NdapiObject
    {
        public FormModule(string name)
        {
            Create(name, NdapiConstants.D2FFO_FORM_MODULE);
        }

        internal FormModule(ObjectSafeHandle handle) : base(handle)
        {
        }

        string Comment
        {
            get { return GetStringProperty(NdapiConstants.D2FP_COMMENT); }
            set { SetStringProperty(NdapiConstants.D2FP_COMMENT, value); }
        }

        string ConsoleWindow
        {
            get { return GetStringProperty(NdapiConstants.D2FP_CONSOLE_WIN); }
            set { SetStringProperty(NdapiConstants.D2FP_CONSOLE_WIN, value); }
        }

        bool DeferRequiredEnforcement
        {
            get { return GetBooleanProperty(NdapiConstants.D2FP_DEFER_REQ_ENF); }
            set { SetBooleanProperty(NdapiConstants.D2FP_DEFER_REQ_ENF, value); }
        }

        NdapiObject FirstNavigationBlock
        {
            get { return GetObjectProperty<NdapiObject>(NdapiConstants.D2FP_FRST_NAVIGATION_BLK_OBJ); }
            set { SetObjectProperty(NdapiConstants.D2FP_FRST_NAVIGATION_BLK_OBJ, value); }
        }

        string HelpBookTitle
        {
            get { return GetStringProperty(NdapiConstants.D2FP_HELP_BOOK_TITLE); }
            set { SetStringProperty(NdapiConstants.D2FP_HELP_BOOK_TITLE, value); }
        }

        string HorizontalToolbarCanvas
        {
            get { return GetStringProperty(NdapiConstants.D2FP_HORZ_TLBR_CNV); }
            set { SetStringProperty(NdapiConstants.D2FP_HORZ_TLBR_CNV, value); }
        }

        string InitialMenu
        {
            get { return GetStringProperty(NdapiConstants.D2FP_INIT_MNU); }
            set { SetStringProperty(NdapiConstants.D2FP_INIT_MNU, value); }
        }

        InteractionMode InteractionMode
        {
            get { return GetNumberProperty<InteractionMode>(NdapiConstants.D2FP_INTERACTION_MODE); }
            set { SetNumberProperty(NdapiConstants.D2FP_INTERACTION_MODE, value); }
        }

        IsolationMode IsolationMode
        {
            get { return GetNumberProperty<IsolationMode>(NdapiConstants.D2FP_ISOLATION_MODE); }
            set { SetNumberProperty(NdapiConstants.D2FP_ISOLATION_MODE, value); }
        }

        LanguageDirection LanguageDirection
        {
            get { return GetNumberProperty<LanguageDirection>(NdapiConstants.D2FP_LANG_DIR); }
            set { SetNumberProperty(NdapiConstants.D2FP_LANG_DIR, value); }
        }

        int MaximumQueryTime
        {
            get { return GetNumberProperty(NdapiConstants.D2FP_MAX_QRY_TIME); }
            set { SetNumberProperty(NdapiConstants.D2FP_MAX_QRY_TIME, value); }
        }

        int MaxRecordsFetched
        {
            get { return GetNumberProperty(NdapiConstants.D2FP_MAX_RECS_FETCHED); }
            set { SetNumberProperty(NdapiConstants.D2FP_MAX_RECS_FETCHED, value); }
        }

        string MenuModule
        {
            get { return GetStringProperty(NdapiConstants.D2FP_MNU_MOD); }
            set { SetStringProperty(NdapiConstants.D2FP_MNU_MOD, value); }
        }

        string MenuRole
        {
            get { return GetStringProperty(NdapiConstants.D2FP_MNU_ROLE); }
            set { SetStringProperty(NdapiConstants.D2FP_MNU_ROLE, value); }
        }

        MenuSource MenuSource
        {
            get { return GetNumberProperty<MenuSource>(NdapiConstants.D2FP_MNU_SRC); }
            set { SetNumberProperty(NdapiConstants.D2FP_MNU_SRC, value); }
        }

        MenuStyle MenuStyle
        {
            get { return GetNumberProperty<MenuStyle>(NdapiConstants.D2FP_MNU_STY); }
            set { SetNumberProperty(NdapiConstants.D2FP_MNU_STY, value); }
        }

        MouseNavigationLimit MouseNavigationLimit
        {
            get { return GetNumberProperty<MouseNavigationLimit>(NdapiConstants.D2FP_MOUSE_NAVIGATION_LMT); }
            set { SetNumberProperty(NdapiConstants.D2FP_MOUSE_NAVIGATION_LMT, value); }
        }

        NdapiObject CurrentRecordVisualAttribute
        {
            get { return GetObjectProperty<NdapiObject>(NdapiConstants.D2FP_REC_VAT_GRP_OBJ); }
            set { SetObjectProperty(NdapiConstants.D2FP_REC_VAT_GRP_OBJ, value); }
        }

        RuntimeCompatibility RuntimeCompatibility
        {
            get { return GetNumberProperty<RuntimeCompatibility>(NdapiConstants.D2FP_RUNTIME_COMP); }
            set { SetNumberProperty(NdapiConstants.D2FP_RUNTIME_COMP, value); }
        }

        string Title
        {
            get { return GetStringProperty(NdapiConstants.D2FP_TITLE); }
            set { SetStringProperty(NdapiConstants.D2FP_TITLE, value); }
        }

        bool Use3DControls
        {
            get { return GetBooleanProperty(NdapiConstants.D2FP_USE_3D_CNTRLS); }
            set { SetBooleanProperty(NdapiConstants.D2FP_USE_3D_CNTRLS, value); }
        }

        ValidationUnit ValidationUnit
        {
            get { return GetNumberProperty<ValidationUnit>(NdapiConstants.D2FP_VALIDATION_UNIT); }
            set { SetNumberProperty(NdapiConstants.D2FP_VALIDATION_UNIT, value); }
        }

        string VerticalToolbarCanvas
        {
            get { return GetStringProperty(NdapiConstants.D2FP_VERT_TLBR_CNV); }
            set { SetStringProperty(NdapiConstants.D2FP_VERT_TLBR_CNV, value); }
        }

        public IEnumerable<Alert> Alerts
        {
            get { return GetObjectList<Alert>(NdapiConstants.D2FP_ALERT); }
        }

        public IEnumerable<AttachedLibrary> AttachedLibraries
        {
            get { return GetObjectList<AttachedLibrary>(NdapiConstants.D2FP_ATT_LIB); }
        }

        public IEnumerable<Canvas> Canvases
        {
            get { return GetObjectList<Canvas>(NdapiConstants.D2FP_CANVAS); }
        }

        public IEnumerable<Block> Blocks
        {
            get { return GetObjectList<Block>(NdapiConstants.D2FP_BLOCK); }
        }

        public IEnumerable<LOV> LOVs
        {
            get { return GetObjectList<LOV>(NdapiConstants.D2FP_LOV); }<commit_msg>Fix properties in FormModule<commit_after>﻿using NdapiManaged.Core;
using NdapiManaged.Core.Handles;
using NdapiManaged.Enums;
using System.Collections.Generic;

namespace NdapiManaged
{
    public class FormModule : NdapiObject
    {
        public FormModule(string name)
        {
            Create(name, NdapiConstants.D2FFO_FORM_MODULE);
        }

        internal FormModule(ObjectSafeHandle handle) : base(handle)
        {
        }

        public string Comment
        {
            get { return GetStringProperty(NdapiConstants.D2FP_COMMENT); }
            set { SetStringProperty(NdapiConstants.D2FP_COMMENT, value); }
        }

        public string ConsoleWindow
        {
            get { return GetStringProperty(NdapiConstants.D2FP_CONSOLE_WIN); }
            set { SetStringProperty(NdapiConstants.D2FP_CONSOLE_WIN, value); }
        }

        public bool DeferRequiredEnforcement
        {
            get { return GetBooleanProperty(NdapiConstants.D2FP_DEFER_REQ_ENF); }
            set { SetBooleanProperty(NdapiConstants.D2FP_DEFER_REQ_ENF, value); }
        }

        public NdapiObject FirstNavigationBlock
        {
            get { return GetObjectProperty<NdapiObject>(NdapiConstants.D2FP_FRST_NAVIGATION_BLK_OBJ); }
            set { SetObjectProperty(NdapiConstants.D2FP_FRST_NAVIGATION_BLK_OBJ, value); }
        }

        public string HelpBookTitle
        {
            get { return GetStringProperty(NdapiConstants.D2FP_HELP_BOOK_TITLE); }
            set { SetStringProperty(NdapiConstants.D2FP_HELP_BOOK_TITLE, value); }
        }

        public string HorizontalToolbarCanvas
        {
            get { return GetStringProperty(NdapiConstants.D2FP_HORZ_TLBR_CNV); }
            set { SetStringProperty(NdapiConstants.D2FP_HORZ_TLBR_CNV, value); }
        }

        public string InitialMenu
        {
            get { return GetStringProperty(NdapiConstants.D2FP_INIT_MNU); }
            set { SetStringProperty(NdapiConstants.D2FP_INIT_MNU, value); }
        }

        public InteractionMode InteractionMode
        {
            get { return GetNumberProperty<InteractionMode>(NdapiConstants.D2FP_INTERACTION_MODE); }
            set { SetNumberProperty(NdapiConstants.D2FP_INTERACTION_MODE, value); }
        }

        public IsolationMode IsolationMode
        {
            get { return GetNumberProperty<IsolationMode>(NdapiConstants.D2FP_ISOLATION_MODE); }
            set { SetNumberProperty(NdapiConstants.D2FP_ISOLATION_MODE, value); }
        }

        public LanguageDirection LanguageDirection
        {
            get { return GetNumberProperty<LanguageDirection>(NdapiConstants.D2FP_LANG_DIR); }
            set { SetNumberProperty(NdapiConstants.D2FP_LANG_DIR, value); }
        }

        public int MaximumQueryTime
        {
            get { return GetNumberProperty(NdapiConstants.D2FP_MAX_QRY_TIME); }
            set { SetNumberProperty(NdapiConstants.D2FP_MAX_QRY_TIME, value); }
        }

        public int MaxRecordsFetched
        {
            get { return GetNumberProperty(NdapiConstants.D2FP_MAX_RECS_FETCHED); }
            set { SetNumberProperty(NdapiConstants.D2FP_MAX_RECS_FETCHED, value); }
        }

        public string MenuModule
        {
            get { return GetStringProperty(NdapiConstants.D2FP_MNU_MOD); }
            set { SetStringProperty(NdapiConstants.D2FP_MNU_MOD, value); }
        }

        public string MenuRole
        {
            get { return GetStringProperty(NdapiConstants.D2FP_MNU_ROLE); }
            set { SetStringProperty(NdapiConstants.D2FP_MNU_ROLE, value); }
        }

        public MenuSource MenuSource
        {
            get { return GetNumberProperty<MenuSource>(NdapiConstants.D2FP_MNU_SRC); }
            set { SetNumberProperty(NdapiConstants.D2FP_MNU_SRC, value); }
        }

        public MenuStyle MenuStyle
        {
            get { return GetNumberProperty<MenuStyle>(NdapiConstants.D2FP_MNU_STY); }
            set { SetNumberProperty(NdapiConstants.D2FP_MNU_STY, value); }
        }

        public MouseNavigationLimit MouseNavigationLimit
        {
            get { return GetNumberProperty<MouseNavigationLimit>(NdapiConstants.D2FP_MOUSE_NAVIGATION_LMT); }
            set { SetNumberProperty(NdapiConstants.D2FP_MOUSE_NAVIGATION_LMT, value); }
        }

        public NdapiObject CurrentRecordVisualAttribute
        {
            get { return GetObjectProperty<NdapiObject>(NdapiConstants.D2FP_REC_VAT_GRP_OBJ); }
            set { SetObjectProperty(NdapiConstants.D2FP_REC_VAT_GRP_OBJ, value); }
        }

        public RuntimeCompatibility RuntimeCompatibility
        {
            get { return GetNumberProperty<RuntimeCompatibility>(NdapiConstants.D2FP_RUNTIME_COMP); }
            set { SetNumberProperty(NdapiConstants.D2FP_RUNTIME_COMP, value); }
        }

        public string Title
        {
            get { return GetStringProperty(NdapiConstants.D2FP_TITLE); }
            set { SetStringProperty(NdapiConstants.D2FP_TITLE, value); }
        }

        public bool Use3DControls
        {
            get { return GetBooleanProperty(NdapiConstants.D2FP_USE_3D_CNTRLS); }
            set { SetBooleanProperty(NdapiConstants.D2FP_USE_3D_CNTRLS, value); }
        }

        public ValidationUnit ValidationUnit
        {
            get { return GetNumberProperty<ValidationUnit>(NdapiConstants.D2FP_VALIDATION_UNIT); }
            set { SetNumberProperty(NdapiConstants.D2FP_VALIDATION_UNIT, value); }
        }

        public string VerticalToolbarCanvas
        {
            get { return GetStringProperty(NdapiConstants.D2FP_VERT_TLBR_CNV); }
            set { SetStringProperty(NdapiConstants.D2FP_VERT_TLBR_CNV, value); }
        }

        public IEnumerable<Alert> Alerts
        {
            get { return GetObjectList<Alert>(NdapiConstants.D2FP_ALERT); }
        }

        public IEnumerable<AttachedLibrary> AttachedLibraries
        {
            get { return GetObjectList<AttachedLibrary>(NdapiConstants.D2FP_ATT_LIB); }
        }

        public IEnumerable<Canvas> Canvases
        {
            get { return GetObjectList<Canvas>(NdapiConstants.D2FP_CANVAS); }
        }

        public IEnumerable<Block> Blocks
        {
            get { return GetObjectList<Block>(NdapiConstants.D2FP_BLOCK); }
        }

        public IEnumerable<LOV> LOVs
        {
            get { return GetObjectList<LOV>(NdapiConstants.D2FP_LOV); }
{'fraction_non_alphanumeric': 0.072070651316827, 'fraction_numerical': 0.008673710771171739, 'mean_word_length': 2.4343352288112645, 'pattern_counts': {'":': 0, '<': 43, '<?xml version=': 0, '>': 43, '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': '6783619', 'n_tokens_mistral': 3764, 'n_tokens_neox': 3668, 'n_words': 500}