<commit_before>using System;
using System.ComponentModel;
using System.Diagnostics;
using System.IO;
using System.Runtime.InteropServices;
using Htc.Vita.Core.Log;
using Htc.Vita.Core.Util;

namespace Htc.Vita.Core.Runtime
{
    /// <summary>
    /// Class Platform.
    /// </summary>
    public static partial class Platform
    {
        /// <summary>
        /// Gets a value indicating whether this instance is running on .Net Core.
        /// </summary>
        /// <value><c>true</c> if this instance is is running on .Net Core; otherwise, <c>false</c>.</value>
        public static bool IsDotNetCore { get; } = CheckIsDotNetCore();

        /// <summary>
        /// Gets a value indicating whether this instance is running on Linux.
        /// </summary>
        /// <value><c>true</c> if this instance is running on Linux; otherwise, <c>false</c>.</value>
        public static bool IsLinux { get; } = CheckIsLinux();

        /// <summary>
        /// Gets a value indicating whether this instance is running on Mac OSX.
        /// </summary>
        /// <value><c>true</c> if this instance is running on Mac OSX; otherwise, <c>false</c>.</value>
        public static bool IsMacOsX { get; } = CheckIsMacOsX();

        /// <summary>
        /// Gets a value indicating whether this instance is running on Mono.
        /// </summary>
        /// <value><c>true</c> if this instance is running on Mono; otherwise, <c>false</c>.</value>
        public static bool IsMono { get; } = CheckIsMono();

        /// <summary>
        /// Gets a value indicating whether this instance is running on Unity.
        /// </summary>
        /// <value><c>true</c> if this instance is running on Unity; otherwise, <c>false</c>.</value>
        public static bool IsUnity { get; } = CheckIsUnity();

        /// <summary>
        /// Gets a value indicating whether this instance is running on Windows.
        /// </summary>
        /// <value><c>true</c> if this instance is running on Windows; otherwise, <c>false</c>.</value>
        public static bool IsWindows { get; } = CheckIsWindows();

        /// <summary>
        /// Checks if the platform is .Net Core. See <see href="https://apisof.net/catalog/System.Runtime.Loader.AssemblyLoadContext"/>
        /// </summary>
        /// <returns><c>true</c> if the platform is .Net Core, <c>false</c> otherwise.</returns><commit_msg>Add IsAndroid property in Platform<commit_after>using System;
using System.ComponentModel;
using System.Diagnostics;
using System.IO;
using System.Runtime.InteropServices;
using Htc.Vita.Core.Log;
using Htc.Vita.Core.Util;

namespace Htc.Vita.Core.Runtime
{
    /// <summary>
    /// Class Platform.
    /// </summary>
    public static partial class Platform
    {
        /// <summary>
        /// Gets a value indicating whether this instance is running on Android.
        /// </summary>
        /// <value><c>true</c> if this instance is running on Android; otherwise, <c>false</c>.</value>
        public static bool IsAndroid { get; } = CheckIsAndroid();

        /// <summary>
        /// Gets a value indicating whether this instance is running on .Net Core.
        /// </summary>
        /// <value><c>true</c> if this instance is is running on .Net Core; otherwise, <c>false</c>.</value>
        public static bool IsDotNetCore { get; } = CheckIsDotNetCore();

        /// <summary>
        /// Gets a value indicating whether this instance is running on Linux.
        /// </summary>
        /// <value><c>true</c> if this instance is running on Linux; otherwise, <c>false</c>.</value>
        public static bool IsLinux { get; } = CheckIsLinux();

        /// <summary>
        /// Gets a value indicating whether this instance is running on Mac OSX.
        /// </summary>
        /// <value><c>true</c> if this instance is running on Mac OSX; otherwise, <c>false</c>.</value>
        public static bool IsMacOsX { get; } = CheckIsMacOsX();

        /// <summary>
        /// Gets a value indicating whether this instance is running on Mono.
        /// </summary>
        /// <value><c>true</c> if this instance is running on Mono; otherwise, <c>false</c>.</value>
        public static bool IsMono { get; } = CheckIsMono();

        /// <summary>
        /// Gets a value indicating whether this instance is running on Unity.
        /// </summary>
        /// <value><c>true</c> if this instance is running on Unity; otherwise, <c>false</c>.</value>
        public static bool IsUnity { get; } = CheckIsUnity();

        /// <summary>
        /// Gets a value indicating whether this instance is running on Windows.
        /// </summary>
        /// <value><c>true</c> if this instance is running on Windows; otherwise, <c>false</c>.</value>
        public static bool IsWindows { get; } = CheckIsWindows();

        /// <summary>
        /// Gets a value indicating whether this instance is running on Android.
        /// </summary>
        /// <value><c>true</c> if this instance is running on Android; otherwise, <c>false</c>.</value>
        public static bool CheckIsAndroid()
        {
            // TODO should add more checking rule
#if UNITY_ANDROID
            return true;
#else
            return false;
#endif
        }

        /// <summary>
        /// Checks if the platform is .Net Core. See <see href="https://apisof.net/catalog/System.Runtime.Loader.AssemblyLoadContext"/>
        /// </summary>
        /// <returns><c>true</c> if the platform is .Net Core, <c>false</c> otherwise.</returns>
{'fraction_non_alphanumeric': 0.1442290269976445, 'fraction_numerical': 0.0, 'mean_word_length': 2.1778929188255614, 'pattern_counts': {'":': 0, '<': 137, '<?xml version=': 0, '>': 137, 'https://': 2, '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': '3299837', 'n_tokens_mistral': 1522, 'n_tokens_neox': 1499, 'n_words': 523}