<commit_before>#include "bbprojectmanager.hpp"
#include "bbprojectmanagerplugin.hpp"
#include "bbprojectmanagerconstants.hpp"
#include <coreplugin/icore.h>
#include <coreplugin/icontext.h>
#include <coreplugin/actionmanager/actionmanager.h>
#include <coreplugin/actionmanager/command.h>
#include <coreplugin/actionmanager/actioncontainer.h>
#include <coreplugin/coreconstants.h>
#include <coreplugin/mimedatabase.h>
#include <QAction>
#include <QMessageBox>
#include <QMainWindow>
#include <QMenu>

#include <QtPlugin>

namespace BoostBuildProjectManager { namespace Internal {

BoostBuildPlugin::BoostBuildPlugin()
{
    // Create your members
}

BoostBuildPlugin::~BoostBuildPlugin()
{
    // Unregister objects from the plugin manager's object pool
    // Delete members
}

bool BoostBuildPlugin::initialize(QStringList const& arguments, QString* errorString)
{
    Q_UNUSED(arguments)

    // Register objects in the plugin manager's object pool
    // Load settings
    // Add actions to menus
    // Connect to other plugins' signals
    // In the initialize function, a plugin can be sure that the plugins it
    // depends on have initialized their members.

    QLatin1String const mimeTypes(":boostbuildproject/BoostBuildProjectManager.mimetypes.xml");
    if (!Core::MimeDatabase::addMimeTypes(mimeTypes, errorString))
        return false;

    addAutoReleasedObject(new ProjectManager);

    return true;
}

void BoostBuildPlugin::extensionsInitialized()
{
    // Retrieve objects from the plugin manager's object pool
    // In the extensionsInitialized function, a plugin can be sure that all
    // plugins that depend on it are completely initialized.
}

ExtensionSystem::IPlugin::ShutdownFlag BoostBuildPlugin::aboutToShutdown()
{
    // Save settings
    // Disconnect from signals that are not needed during shutdown
    // Hide UI (if you add UI that is not in the main window directly)<commit_msg>Add BuildConfigurationFactory and BuildStepFactory to auto-released objects<commit_after>#include "bbbuildconfiguration.hpp"
#include "bbbuildstep.hpp"
#include "bbprojectmanager.hpp"
#include "bbprojectmanagerplugin.hpp"
#include "bbprojectmanagerconstants.hpp"
#include <coreplugin/icore.h>
#include <coreplugin/icontext.h>
#include <coreplugin/actionmanager/actionmanager.h>
#include <coreplugin/actionmanager/command.h>
#include <coreplugin/actionmanager/actioncontainer.h>
#include <coreplugin/coreconstants.h>
#include <coreplugin/mimedatabase.h>
#include <QAction>
#include <QMessageBox>
#include <QMainWindow>
#include <QMenu>

#include <QtPlugin>

namespace BoostBuildProjectManager { namespace Internal {

BoostBuildPlugin::BoostBuildPlugin()
{
    // Create your members
}

BoostBuildPlugin::~BoostBuildPlugin()
{
    // Unregister objects from the plugin manager's object pool
    // Delete members
}

bool BoostBuildPlugin::initialize(QStringList const& arguments, QString* errorString)
{
    Q_UNUSED(arguments)

    // Register objects in the plugin manager's object pool
    // Load settings
    // Add actions to menus
    // Connect to other plugins' signals
    // In the initialize function, a plugin can be sure that the plugins it
    // depends on have initialized their members.

    QLatin1String const mimeTypes(":boostbuildproject/BoostBuildProjectManager.mimetypes.xml");
    if (!Core::MimeDatabase::addMimeTypes(mimeTypes, errorString))
        return false;

    addAutoReleasedObject(new BuildConfigurationFactory);
    addAutoReleasedObject(new BuildStepFactory);
    //TODO addAutoReleasedObject(new RunConfigurationFactory);
    addAutoReleasedObject(new ProjectManager);

    return true;
}

void BoostBuildPlugin::extensionsInitialized()
{
    // Retrieve objects from the plugin manager's object pool
    // In the extensionsInitialized function, a plugin can be sure that all
    // plugins that depend on it are completely initialized.
}

ExtensionSystem::IPlugin::ShutdownFlag BoostBuildPlugin::aboutToShutdown()
{
    // Save settings
    // Disconnect from signals that are not needed during shutdown
    // Hide UI (if you add UI that is not in the main window directly)
{'fraction_non_alphanumeric': 0.08855552867166706, 'fraction_numerical': 0.0004839099927413501, 'mean_word_length': 4.7656903765690375, 'pattern_counts': {'":': 2, '<': 27, '<?xml version=': 0, '>': 27, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 2}, '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': '6023588', 'n_tokens_mistral': 1142, 'n_tokens_neox': 1123, 'n_words': 340}