<commit_before>require 'opal'
require 'rack'
require 'opal/builder'

module Opal
  class CLI
    attr_reader :options, :filename, :compiler_options, :evals, :load_paths,
                :output, :requires, :gems, :stubs, :verbose, :compile

    alias :compile? :compile

    class << self
      attr_accessor :stdout
    end

    def initialize options = nil
      options ||= {}
      @options    = options
      @compile    = !!options.delete(:compile)
      @filename   = options.delete(:filename)
      @evals      = options.delete(:evals)      || []
      @requires   = options.delete(:requires)   || []
      @load_paths = options.delete(:load_paths) || []
      @gems       = options.delete(:gems)       || []
      @stubs      = options.delete(:stubs)      || []
      @output     = options.delete(:output)     || self.class.stdout || $stdout
      @verbose    = options.fetch(:verbose, false); options.delete(:verbose)
      @compiler_options = Hash[
        *processor_option_names.map do |option|
          key = option.to_sym
          next unless options.has_key? key<commit_msg>Remove the unused CLI#compile method<commit_after>require 'opal'
require 'rack'
require 'opal/builder'

module Opal
  class CLI
    attr_reader :options, :filename, :compiler_options, :evals, :load_paths,
                :output, :requires, :gems, :stubs, :verbose

    def compile?
      @compile
    end


    class << self
      attr_accessor :stdout
    end

    def initialize options = nil
      options ||= {}
      @options    = options
      @compile    = !!options.delete(:compile)
      @filename   = options.delete(:filename)
      @evals      = options.delete(:evals)      || []
      @requires   = options.delete(:requires)   || []
      @load_paths = options.delete(:load_paths) || []
      @gems       = options.delete(:gems)       || []
      @stubs      = options.delete(:stubs)      || []
      @output     = options.delete(:output)     || self.class.stdout || $stdout
      @verbose    = options.fetch(:verbose, false); options.delete(:verbose)
      @compiler_options = Hash[
        *processor_option_names.map do |option|
          key = option.to_sym
          next unless options.has_key? key
{'fraction_non_alphanumeric': 0.13037573562698054, 'fraction_numerical': 0.0, 'mean_word_length': 2.4104938271604937, 'pattern_counts': {'":': 0, '<': 7, '<?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': '4961575', 'n_tokens_mistral': 664, 'n_tokens_neox': 633, 'n_words': 143}