<commit_before>﻿using System;

namespace NiL.JS.Core.BaseTypes
{
    internal class JSArray : JSObject
    {
        private const string marker = "Array";
        public static JSObject Prototype;

        public static void RegisterTo(Context context)
        {
            var func = context.Assign("Array", new CallableField((_this, args) =>
            {
                JSObject res;
                if (_this.ValueType == ObjectValueType.Object && _this.prototype == Prototype)
                    res = _this;
                else
                    res = new JSArray();
                res.prototype = Prototype;
                res.ValueType = ObjectValueType.Object;
                res.oValue = marker;
                if (args != null && args.Length > 0)
                {
                    var arg = args[0].Invoke();<commit_msg>Update JSArray.cs<commit_after>using System;

namespace NiL.JS.Core.BaseTypes
{
    internal class JSArray : JSObject
    {
        public const string marker = "Array";
        public static JSObject Prototype;

        public static void RegisterTo(Context context)
        {
            var func = context.Assign("Array", new CallableField((_this, args) =>
            {
                JSObject res;
                if (_this.ValueType == ObjectValueType.Object && _this.prototype == Prototype)
                    res = _this;
                else
                    res = new JSArray();
                res.prototype = Prototype;
                res.ValueType = ObjectValueType.Object;
                res.oValue = marker;
                if (args != null && args.Length > 0)
                {
                    var arg = args[0].Invoke();
{'fraction_non_alphanumeric': 0.089728453364817, 'fraction_numerical': 0.0023612750885478157, 'mean_word_length': 1.4672489082969433, 'pattern_counts': {'":': 0, '<': 3, '<?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': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '2953378', 'n_tokens_mistral': 434, 'n_tokens_neox': 407, 'n_words': 110}