<commit_before>﻿using CppSharp;
using CppSharp.Generators;

namespace MonoEmbeddinator4000
{
    public enum CompilationTarget
    {
        SharedLibrary,
        StaticLibrary,
        Application
    }

    public class Options
    {
        public Options()
        {
            Project = new Project();
            GenerateSupportFiles = true;
        }

        public Project Project;

        // Generator options
        public string LibraryName;
        public GeneratorKind Language;

        public TargetPlatform Platform;

        /// <summary>
        /// Specifies the VS version.
        /// </summary>
        /// <remarks>When null, latest is used.</remarks>
        public VisualStudioVersion VsVersion;

        // If code compilation is enabled, then sets the compilation target.
        public CompilationTarget Target;

        public string OutputNamespace;
        public string OutputDir;

        // If true, will force the generation of debug metadata for the native
        // and managed code.
        public bool DebugMode;

        // If true, will use unmanaged->managed thunks to call managed methods.
        // In this mode the JIT will generate specialized wrappers for marshaling
        // which will be faster but also lead to higher memory consumption.
        public bool UseUnmanagedThunks;

        // If true, will generate support files alongside generated binding code.
        public bool GenerateSupportFiles;

        // If true, will try to compile the generated managed-to-native binding code.
        public bool CompileCode;

        // If true, will compile the generated as a shared library / DLL.
        public bool CompileSharedLibrary => Target == CompilationTarget.SharedLibrary;
    }
}<commit_msg>Unify common options with CppSharp.<commit_after>﻿using CppSharp;
using CppSharp.Generators;

namespace MonoEmbeddinator4000
{
    public enum CompilationTarget
    {
        SharedLibrary,
        StaticLibrary,
        Application
    }

    public class Options : DriverOptions
    {
        public Options()
        {
            Project = new Project();
            GenerateSupportFiles = true;
        }

        public Project Project;

        // Generator options
        public GeneratorKind Language;

        public TargetPlatform Platform;

        /// <summary>
        /// Specifies the VS version.
        /// </summary>
        /// <remarks>When null, latest is used.</remarks>
        public VisualStudioVersion VsVersion;

        // If code compilation is enabled, then sets the compilation target.
        public CompilationTarget Target;

        // If true, will force the generation of debug metadata for the native
        // and managed code.
        public bool DebugMode;

        // If true, will use unmanaged->managed thunks to call managed methods.
        // In this mode the JIT will generate specialized wrappers for marshaling
        // which will be faster but also lead to higher memory consumption.
        public bool UseUnmanagedThunks;

        // If true, will generate support files alongside generated binding code.
        public bool GenerateSupportFiles;

        // If true, will compile the generated as a shared library / DLL.
        public bool CompileSharedLibrary => Target == CompilationTarget.SharedLibrary;
    }
}
{'fraction_non_alphanumeric': 0.06115107913669065, 'fraction_numerical': 0.002398081534772182, 'mean_word_length': 2.127460168697282, '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': '5585037', 'n_tokens_mistral': 797, 'n_tokens_neox': 748, 'n_words': 312}