<commit_before>// Copyright (c) 2013-2019 mogemimi. Distributed under the MIT license.

#pragma once

#include "Pomdog/Basic/Export.hpp"
#include <string>

namespace Pomdog {

struct POMDOG_EXPORT FileSystem final {
    static bool CreateDirectory(const std::string& path);

    static bool CreateDirectories(const std::string& path);

    static bool Exists(const std::string& path);

    static bool IsDirectory(const std::string& path);

    // Windows:
    // - "<user name>\Local Settings\Applicaiton Data\Pomdog"
    // - "C:\Users\<user name>\AppData\Local\Pomdog"
    static std::string GetLocalAppDataDirectoryPath();

    // Windows:
    // - "<user name>\Application Data\Pomdog"
    // - "C:\Users\<user name>\AppData\Roaming\Pomdog"
    static std::string GetAppDataDirectoryPath();

    // Windows:
    // - "<current directory>"
    static std::string GetResourceDirectoryPath();

    // Windows:
    // - "C:\Users\<user name>\AppData\Local\Temp"
    static std::string GetTempDirectoryPath();

    static std::string GetCurrentWorkingDirectory();
};

} // namespace Pomdog<commit_msg>Add documentation comments and nodiscard attributes<commit_after>// Copyright (c) 2013-2019 mogemimi. Distributed under the MIT license.

#pragma once

#include "Pomdog/Basic/Export.hpp"
#include <string>

namespace Pomdog {

struct POMDOG_EXPORT FileSystem final {
    /// Create a new directory with the specified path.
    [[nodiscard]] static bool
    CreateDirectory(const std::string& path);

    /// Create a new directory with the specified path.
    [[nodiscard]] static bool
    CreateDirectories(const std::string& path);

    /// Returns true if the file exists, false otherwise.
    [[nodiscard]] static bool
    Exists(const std::string& path);

    /// Returns true if the file is directory, false otherwise.
    [[nodiscard]] static bool
    IsDirectory(const std::string& path);

    // Windows:
    // - "<user name>\Local Settings\Applicaiton Data\Pomdog"
    // - "C:\Users\<user name>\AppData\Local\Pomdog"
    [[nodiscard]] static std::string
    GetLocalAppDataDirectoryPath();

    // Windows:
    // - "<user name>\Application Data\Pomdog"
    // - "C:\Users\<user name>\AppData\Roaming\Pomdog"
    [[nodiscard]] static std::string
    GetAppDataDirectoryPath();

    // Windows:
    // - "<current directory>"
    [[nodiscard]] static std::string
    GetResourceDirectoryPath();

    // Windows:
    // - "C:\Users\<user name>\AppData\Local\Temp"
    [[nodiscard]] static std::string
    GetTempDirectoryPath();

    /// Gets the current working directory.
    [[nodiscard]] static std::string
    GetCurrentWorkingDirectory();
};

} // namespace Pomdog
{'fraction_non_alphanumeric': 0.13582089552238805, 'fraction_numerical': 0.005970149253731343, 'mean_word_length': 3.324193548387097, 'pattern_counts': {'":': 0, '<': 17, '<?xml version=': 0, '>': 17, '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': '958786', 'n_tokens_mistral': 815, 'n_tokens_neox': 771, 'n_words': 207}