<commit_before>//
// Created by permal on 12/17/17.
//

#include <smooth/core/filesystem/Filesystem.h>
#include <smooth/core/logging/log.h>

using namespace smooth::core::logging;

namespace smooth
{
    namespace core
    {
        namespace filesystem
        {

            Filesystem::Filesystem(const char* root, const char* partition_name, int max_file_count,
                                   bool format_on_mount_failure)
                    : root(root),
                      partition_name(partition_name),
                      max_file_count(max_file_count),
                      format_on_mount_failure(format_on_mount_failure)
            {
            }

            bool Filesystem::mount()
            {
                esp_vfs_fat_mount_config_t mount_config
                        {
                                format_on_mount_failure,
                                max_file_count
                        };

                {
                    Format msg("Mounting partition {1} in root {2}, with max file count {3}...",
                               Str(partition_name),
                               Str(root),
                               Int32(max_file_count));<commit_msg>Update t match latest SDK<commit_after>//
// Created by permal on 12/17/17.
//

#include <smooth/core/filesystem/Filesystem.h>
#include <smooth/core/logging/log.h>

using namespace smooth::core::logging;

namespace smooth
{
    namespace core
    {
        namespace filesystem
        {

            Filesystem::Filesystem(const char* root, const char* partition_name, int max_file_count,
                                   bool format_on_mount_failure)
                    : root(root),
                      partition_name(partition_name),
                      max_file_count(max_file_count),
                      format_on_mount_failure(format_on_mount_failure)
            {
            }

            bool Filesystem::mount()
            {
                esp_vfs_fat_mount_config_t mount_config
                        {
                                format_on_mount_failure,
                                max_file_count,
                                0
                        };

                {
                    Format msg("Mounting partition {1} in root {2}, with max file count {3}...",
                               Str(partition_name),
                               Str(root),
                               Int32(max_file_count));
{'fraction_non_alphanumeric': 0.07399919126566923, 'fraction_numerical': 0.009300444803881924, 'mean_word_length': 1.1625874125874125, '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': 2, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '6790149', 'n_tokens_mistral': 635, 'n_tokens_neox': 585, 'n_words': 112}