<commit_before>module Highcharts

  class UnsupportedFeature < RuntimeError; end

  class Axis; end
  class Chart; end
  class Extremes; end
  class Highcharts; end
  class Options; end
  class Point; end
  class Renderer; end
  class Series; end

  module MonkeyPatches
    def alias_native(new, old = new, options = {})
      if klass = options[:array]
        define_method new do |*args, &block|
          if value = Native.call(@native, old, *args, &block)
            value.map{ |e| klass.new(e) }
          end
        end
      else
        Native.alias_native(new, old, options)
      end
    end
  end

  module Base
    include Native
    extend MonkeyPatches

    def log(s)
      %x{ console.log( #{ s } ) }
    end

    def self.included(klass)
      klass.extend self
    end

  end<commit_msg>initial commit<commit_after>module Highcharts

  class UnsupportedFeature < RuntimeError; end

  class Axis; end
  class Chart; end
  class Extremes; end
  class Highcharts; end
  class Options; end
  class Point; end
  class Renderer; end
  class Series; end

  module MonkeyPatches
    def alias_native(new, old = new, options = {})
      if klass = options[:array]
        define_method new do |*args, &block|
          if value = Native.call(@native, old, *args, &block)
            value.map{ |e| klass.new(e) }
          end
        end
      else
        super
      end
    end
  end

  module Base
    include Native
    extend MonkeyPatches

    def log(s)
      %x{ console.log( #{ s } ) }
    end

    def self.included(klass)
      klass.extend self
    end

  end
{'fraction_non_alphanumeric': 0.08259773013871374, 'fraction_numerical': 0.0, 'mean_word_length': 2.193158953722334, 'pattern_counts': {'":': 0, '<': 5, '<?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': '3072795', 'n_tokens_mistral': 507, 'n_tokens_neox': 496, 'n_words': 160}