<commit_before>/**
 * @file mega/filesystem.h
 * @brief Generic host filesystem access interfaces
 *
 * (c) 2013-2014 by Mega Limited, Auckland, New Zealand
 *
 * This file is part of the MEGA SDK - Client Access Engine.
 *
 * Applications using the MEGA API must present a valid application key
 * and comply with the the rules set forth in the Terms of Service.
 *
 * The MEGA SDK is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
 *
 * @copyright Simplified (2-clause) BSD License.
 *
 * You should have received a copy of the license along with this
 * program.
 */

#ifndef MEGA_FILESYSTEM_H
#define MEGA_FILESYSTEM_H 1

#if defined (__linux__) && !defined (__ANDROID__)
#include </usr/include/linux/magic.h>
#endif

#if defined (__linux__)
#include <sys/vfs.h>
#elif defined  (__APPLE__) || defined (USE_IOS)
#include <sys/mount.h>
#include <sys/param.h>
#elif defined(_WIN32) || defined(_WIN64) || defined(WINDOWS_PHONE)
#include <Windows.h>
#endif

#include "types.h"
#include "waiter.h"

// Define magic constants in case they are not defined in headers
#if defined (__linux__) && !defined (__ANDROID__)
#ifndef HFS_SUPER_MAGIC
#define HFS_SUPER_MAGIC 0x4244
#endif

#ifndef NTFS_SB_MAGIC
#define NTFS_SB_MAGIC   0x5346544e<commit_msg>Minor adjustment<commit_after>/**
 * @file mega/filesystem.h
 * @brief Generic host filesystem access interfaces
 *
 * (c) 2013-2014 by Mega Limited, Auckland, New Zealand
 *
 * This file is part of the MEGA SDK - Client Access Engine.
 *
 * Applications using the MEGA API must present a valid application key
 * and comply with the the rules set forth in the Terms of Service.
 *
 * The MEGA SDK is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
 *
 * @copyright Simplified (2-clause) BSD License.
 *
 * You should have received a copy of the license along with this
 * program.
 */

#ifndef MEGA_FILESYSTEM_H
#define MEGA_FILESYSTEM_H 1

#if defined (__linux__) && !defined (__ANDROID__)
#include </usr/include/linux/magic.h>
#endif

#if defined (__linux__) || defined (__ANDROID__) // __ANDROID__ is always included in __linux__
#include <sys/vfs.h>
#elif defined  (__APPLE__) || defined (USE_IOS)
#include <sys/mount.h>
#include <sys/param.h>
#elif defined(_WIN32) || defined(_WIN64) || defined(WINDOWS_PHONE)
#include <Windows.h>
#endif

#include "types.h"
#include "waiter.h"

// Define magic constants in case they are not defined in headers
#if defined (__linux__) && !defined (__ANDROID__)
#ifndef HFS_SUPER_MAGIC
#define HFS_SUPER_MAGIC 0x4244
#endif

#ifndef NTFS_SB_MAGIC
#define NTFS_SB_MAGIC   0x5346544e
{'fraction_non_alphanumeric': 0.09469562121751512, 'fraction_numerical': 0.019223923104307584, 'mean_word_length': 4.553359683794467, 'pattern_counts': {'":': 0, '<': 13, '<?xml version=': 0, '>': 13, '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': '890815', 'n_tokens_mistral': 932, 'n_tokens_neox': 880, 'n_words': 338}