<commit_before>﻿using System.Runtime.CompilerServices;
using System;
using System.Globalization;
namespace Cemono.API
{
    public class Console
    {
        [MethodImplAttribute(MethodImplOptions.InternalCall)]
        extern private static bool _GetCVar(string cvarName);
        [MethodImplAttribute(MethodImplOptions.InternalCall)]
        extern private static string _GetCVarHelpText(string cvarName);
        [MethodImplAttribute(MethodImplOptions.InternalCall)]
        extern private static object _GetCVarValue(string cvarName);
        [MethodImplAttribute(MethodImplOptions.InternalCall)]
        extern private static void _SetCvarValueInt(string cvarName, int value);
        [MethodImplAttribute(MethodImplOptions.InternalCall)]
        extern private static void _SetCvarValueFloat(string cvarName, float value);
        [MethodImplAttribute(MethodImplOptions.InternalCall)]
        extern private static void _SetCvarValueString(string cvarName, string value);

        public static CVar<T> GetCVar<T>(string cvarName) where T : IConvertible
        {
            if (_GetCVar(cvarName))
            {
                return new CVar<T>(cvarName);
            }
            else
            {
                return null;
            }
        }

        public static string GetCVarHelpText(string cvarName)
        {
            return _GetCVarHelpText(cvarName);
        }

        public static T GetCVarValue<T>(string cvarName)
        {
            object returnValue = _GetCVarValue(cvarName);<commit_msg>Added TODO<commit_after>﻿using System.Runtime.CompilerServices;
using System;
using System.Globalization;
namespace Cemono.API
{
    public class Console
    {
        [MethodImplAttribute(MethodImplOptions.InternalCall)]
        extern private static bool _GetCVar(string cvarName);
        [MethodImplAttribute(MethodImplOptions.InternalCall)]
        extern private static string _GetCVarHelpText(string cvarName);
        [MethodImplAttribute(MethodImplOptions.InternalCall)]
        extern private static object _GetCVarValue(string cvarName);
        [MethodImplAttribute(MethodImplOptions.InternalCall)]
        extern private static void _SetCvarValueInt(string cvarName, int value);
        [MethodImplAttribute(MethodImplOptions.InternalCall)]
        extern private static void _SetCvarValueFloat(string cvarName, float value);
        [MethodImplAttribute(MethodImplOptions.InternalCall)]
        extern private static void _SetCvarValueString(string cvarName, string value);

        public static CVar<T> GetCVar<T>(string cvarName) where T : IConvertible
        {
            if (_GetCVar(cvarName))
            {
                return new CVar<T>(cvarName);
            }
            else
            {
                // TODO
                return null;
            }
        }

        public static string GetCVarHelpText(string cvarName)
        {
            return _GetCVarHelpText(cvarName);
        }

        public static T GetCVarValue<T>(string cvarName)
        {
            object returnValue = _GetCVarValue(cvarName);
{'fraction_non_alphanumeric': 0.06742301458670989, 'fraction_numerical': 0.0, 'mean_word_length': 2.656398104265403, 'pattern_counts': {'":': 0, '<': 11, '<?xml version=': 0, '>': 11, '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': '3510093', 'n_tokens_mistral': 801, 'n_tokens_neox': 789, 'n_words': 181}