<commit_before>// Copyright Yahoo. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.
#pragma once

#include <string>
#include <vector>

namespace vespa {

/**
 * This is a class containing the defaults for basic Vespa configuration variables.
 **/
class Defaults {
public:
    /**
     * bootstrap VESPA_HOME (if unset) from argv[0]
     **/
    static void bootstrap(const char *argv0);

    /**
     * Compute the path prefix where Vespa files will live;
     * the return value ends with a "/" so you can just append
     * the relative pathname to the file(s) you want.
     *
     * @return the vespa home directory, ending by "/"
     **/
    static const char *vespaHome();

    static std::string underVespaHome(const char *path);

    /**
     * Compute the user name to own directories and run processes.
     * @return the vespa user name
     **/
    static const char *vespaUser();

    /**
     * Compute the host name that identifies myself.<commit_msg>fix totally-wrong documentation<commit_after>// Copyright Yahoo. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.
#pragma once

#include <string>
#include <vector>

namespace vespa {

/**
 * This is a class containing the defaults for basic Vespa configuration variables.
 **/
class Defaults {
public:
    /**
     * bootstrap VESPA_HOME (if unset) from argv[0]
     **/
    static void bootstrap(const char *argv0);

    /**
     * Compute the path prefix where Vespa files will live.
     * Note the return value won't end with a "/" - use
     * underVespaHome() to construct sub-directory paths.
     *
     * @return the vespa home directory
     **/
    static const char *vespaHome();

    static std::string underVespaHome(const char *path);

    /**
     * Compute the user name to own directories and run processes.
     * @return the vespa user name
     **/
    static const char *vespaUser();

    /**
     * Compute the host name that identifies myself.
{'fraction_non_alphanumeric': 0.09371884346959122, 'fraction_numerical': 0.003988035892323031, 'mean_word_length': 2.7796610169491527, 'pattern_counts': {'":': 0, '<': 7, '<?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': '4125157', 'n_tokens_mistral': 585, 'n_tokens_neox': 548, 'n_words': 238}