<commit_before>module Twostroke::Runtime
  module Types
    class Array < Object
      def self.constructor_function
        @@constructor_function ||=
          Function.new(->(scope, this, args) do
              if args.length.zero?
                Array.new
              elsif args.length == 1
                Array.new([nil] * Types.to_uint32(args[0]))
              else
                Array.new args
              end
            end, nil, "Array", [])<commit_msg>hacky fix for sparse arrays<commit_after>module Twostroke::Runtime
  module Types
    class Array < Object
      def self.constructor_function
        @@constructor_function ||=
          Function.new(->(scope, this, args) do
              if args.length.zero?
                Array.new
              elsif args.length == 1
                Array.new([Undefined.new] * Types.to_uint32(args[0]))
              else
                Array.new args
              end
            end, nil, "Array", [])
{'fraction_non_alphanumeric': 0.0981404958677686, 'fraction_numerical': 0.008264462809917356, 'mean_word_length': 1.5234375, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, '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': '4106747', 'n_tokens_mistral': 265, 'n_tokens_neox': 251, 'n_words': 62}