<commit_before>//--------------------------------------------------------------------------------------------------
/**
 * @file app.cpp
 *
 * Copyright (C) Sierra Wireless Inc.
 **/
//--------------------------------------------------------------------------------------------------

#include "mkTools.h"

namespace model
{


//--------------------------------------------------------------------------------------------------
/**
 * Constructor
 **/
//--------------------------------------------------------------------------------------------------
App_t::App_t
(
    parseTree::AdefFile_t* filePtr  ///< Pointer to the root of the parse tree for the .adef file.
)
//--------------------------------------------------------------------------------------------------
:   defFilePtr(filePtr),
    parseTreePtr(NULL),
    dir(path::MakeAbsolute(path::GetContainingDir(filePtr->path))),
    name(path::GetIdentifierSafeName(path::RemoveSuffix(path::GetLastNode(filePtr->path), ".adef"))),
    workingDir("app/" + name),
    isSandboxed(true),
    startTrigger(AUTO),
    isPreloaded(false),
    cpuShare(1024),
    maxFileSystemBytes(128 * 1024),   // 128 KB
    maxMemoryBytes(40000 * 1024), // 40 MB
    maxMQueueBytes(512),
    maxQueuedSignals(100),
    maxThreads(20),
    maxSecureStorageBytes(8192)
//--------------------------------------------------------------------------------------------------
{

}<commit_msg>Initialize isPreBuilt in constructor to default value.<commit_after>//--------------------------------------------------------------------------------------------------
/**
 * @file app.cpp
 *
 * Copyright (C) Sierra Wireless Inc.
 **/
//--------------------------------------------------------------------------------------------------

#include "mkTools.h"

namespace model
{


//--------------------------------------------------------------------------------------------------
/**
 * Constructor
 **/
//--------------------------------------------------------------------------------------------------
App_t::App_t
(
    parseTree::AdefFile_t* filePtr  ///< Pointer to the root of the parse tree for the .adef file.
)
//--------------------------------------------------------------------------------------------------
:   defFilePtr(filePtr),
    parseTreePtr(NULL),
    dir(path::MakeAbsolute(path::GetContainingDir(filePtr->path))),
    name(path::GetIdentifierSafeName(path::RemoveSuffix(path::GetLastNode(filePtr->path), ".adef"))),
    workingDir("app/" + name),
    isSandboxed(true),
    startTrigger(AUTO),
    isPreloaded(false),
    isPreBuilt(false),
    cpuShare(1024),
    maxFileSystemBytes(128 * 1024),   // 128 KB
    maxMemoryBytes(40000 * 1024), // 40 MB
    maxMQueueBytes(512),
    maxQueuedSignals(100),
    maxThreads(20),
    maxSecureStorageBytes(8192)
//--------------------------------------------------------------------------------------------------
{

}
{'fraction_non_alphanumeric': 0.5010309278350515, 'fraction_numerical': 0.02542955326460481, 'mean_word_length': 0.8720257234726688, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 7, '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': '3010123', 'n_tokens_mistral': 689, 'n_tokens_neox': 628, 'n_words': 109}