<commit_before>// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
// See the LICENSE file in the project root for more information.

using System;
using System.IO;
using System.Reflection;

namespace System.Runtime.InteropServices
{
    public static class RuntimeEnvironment
    {
        public static string SystemConfigurationFile
        {
            get
            {
                throw new PlatformNotSupportedException();
            }
        }
        public static bool FromGlobalAccessCache(System.Reflection.Assembly a)
        {
            return false;
        }
        public static string GetRuntimeDirectory()
        {
            string runtimeDirectory = typeof(object).Assembly.Location;
            if(string.IsNullOrEmpty(runtimeDirectory) || !Path.IsPathRooted(runtimeDirectory))
            { 
                return Path.GetDirectoryName(AppDomain.CurrentDomain.BaseDirectory) + Path.DirectorySeparatorChar;
            }
            return Path.GetDirectoryName(runtimeDirectory) + Path.DirectorySeparatorChar;
        }
        public static System.IntPtr GetRuntimeInterfaceAsIntPtr(Guid clsid, Guid riid)
        {
            throw new PlatformNotSupportedException();
        }
        public static object GetRuntimeInterfaceAsObject(Guid clsid, Guid riid)
        {
            throw new PlatformNotSupportedException();
        }
        public static string GetSystemVersion()
        {
            return typeof(object).Assembly.ImageRuntimeVersion;
        }
    }
}<commit_msg>Remove duplicate code.<commit_after>// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
// See the LICENSE file in the project root for more information.

using System;
using System.IO;
using System.Reflection;

namespace System.Runtime.InteropServices
{
    public static class RuntimeEnvironment
    {
        public static string SystemConfigurationFile
        {
            get
            {
                throw new PlatformNotSupportedException();
            }
        }
        public static bool FromGlobalAccessCache(System.Reflection.Assembly a)
        {
            return false;
        }
        public static string GetRuntimeDirectory()
        {
            string runtimeDirectory = typeof(object).Assembly.Location;
            if (!Path.IsPathRooted(runtimeDirectory))
            {
                runtimeDirectory = AppDomain.CurrentDomain.BaseDirectory;
            }
            return Path.GetDirectoryName(runtimeDirectory) + Path.DirectorySeparatorChar;
        }
        public static System.IntPtr GetRuntimeInterfaceAsIntPtr(Guid clsid, Guid riid)
        {
            throw new PlatformNotSupportedException();
        }
        public static object GetRuntimeInterfaceAsObject(Guid clsid, Guid riid)
        {
            throw new PlatformNotSupportedException();
        }
        public static string GetSystemVersion()
        {
            return typeof(object).Assembly.ImageRuntimeVersion;
        }
    }
}
{'fraction_non_alphanumeric': 0.062340966921119595, 'fraction_numerical': 0.0, 'mean_word_length': 2.2026476578411405, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, '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': '1121158', 'n_tokens_mistral': 708, 'n_tokens_neox': 701, 'n_words': 205}