<commit_before>// Copyright © 2010 The CefSharp Authors. All rights reserved.
//
// Use of this source code is governed by a BSD-style license that can be found in the LICENSE file.

#pragma once

#include "Stdafx.h"

using namespace System::Collections::Generic;
using namespace System::IO;

namespace CefSharp
{
    /// <summary>
    /// Initialization settings. Many of these and other settings can also configured
    /// using command-line switches.
    /// </summary>
    public ref class AbstractCefSettings abstract
    {
    private:
        List<V8Extension^>^ _cefExtensions;
        CommandLineArgDictionary^ _cefCommandLineArgs;

    internal:
        ::CefSettings* _cefSettings;
        List<CefCustomScheme^>^ _cefCustomSchemes;

    public:
        /// <summary>
        /// Default Constructor
        /// </summary>
        AbstractCefSettings() : _cefSettings(new ::CefSettings())
        {
            _cefSettings->multi_threaded_message_loop = true;
            _cefSettings->no_sandbox = true;
            BrowserSubprocessPath = Path::Combine(Path::GetDirectoryName(this->GetType()->Assembly->Location), "CefSharp.BrowserSubprocess.exe");
            _cefCustomSchemes = gcnew List<CefCustomScheme^>();
            _cefExtensions = gcnew List<V8Extension^>();
            _cefCommandLineArgs = gcnew CommandLineArgDictionary();

            //Automatically discovered and load a system-wide installation of Pepper Flash.
            _cefCommandLineArgs->Add("enable-system-flash");

            //CEF has switched to the new process model defined that was implemented
            //in the Chromium Site isolation project, we'll continue to use the older
            //process model by default.
            //https://github.com/cefsharp/CefSharp/issues/2553
            _cefCommandLineArgs->Add("process-per-site-instance");
        }

        !AbstractCefSettings()
        {
            delete _cefSettings;
        }

        ~AbstractCefSettings()
        {
            this->!AbstractCefSettings();<commit_msg>CefSettings - BrowserSubProcess path resolved to CefSharp.Core assembly location<commit_after>// Copyright © 2010 The CefSharp Authors. All rights reserved.
//
// Use of this source code is governed by a BSD-style license that can be found in the LICENSE file.

#pragma once

#include "Stdafx.h"

using namespace System::Collections::Generic;
using namespace System::IO;

namespace CefSharp
{
    /// <summary>
    /// Initialization settings. Many of these and other settings can also configured
    /// using command-line switches.
    /// </summary>
    public ref class AbstractCefSettings abstract
    {
    private:
        List<V8Extension^>^ _cefExtensions;
        CommandLineArgDictionary^ _cefCommandLineArgs;

    internal:
        ::CefSettings* _cefSettings;
        List<CefCustomScheme^>^ _cefCustomSchemes;

    public:
        /// <summary>
        /// Default Constructor
        /// </summary>
        AbstractCefSettings() : _cefSettings(new ::CefSettings())
        {
            _cefSettings->multi_threaded_message_loop = true;
            _cefSettings->no_sandbox = true;
            BrowserSubprocessPath = Path::Combine(Path::GetDirectoryName(AbstractCefSettings::typeid->Assembly->Location), "CefSharp.BrowserSubprocess.exe");
            _cefCustomSchemes = gcnew List<CefCustomScheme^>();
            _cefExtensions = gcnew List<V8Extension^>();
            _cefCommandLineArgs = gcnew CommandLineArgDictionary();

            //Automatically discovered and load a system-wide installation of Pepper Flash.
            _cefCommandLineArgs->Add("enable-system-flash");

            //CEF has switched to the new process model defined that was implemented
            //in the Chromium Site isolation project, we'll continue to use the older
            //process model by default.
            //https://github.com/cefsharp/CefSharp/issues/2553
            _cefCommandLineArgs->Add("process-per-site-instance");
        }

        !AbstractCefSettings()
        {
            delete _cefSettings;
        }

        ~AbstractCefSettings()
        {
            this->!AbstractCefSettings();
{'fraction_non_alphanumeric': 0.09622323791195574, 'fraction_numerical': 0.0048111618955977865, 'mean_word_length': 2.5417376490630326, 'pattern_counts': {'":': 0, '<': 19, '<?xml version=': 0, '>': 34, 'https://': 2, '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': '2251911', 'n_tokens_mistral': 1142, 'n_tokens_neox': 1091, 'n_words': 290}