<commit_before>require 'contracts'

require 'pkgforge/base'
require 'pkgforge/version'
require 'pkgforge/components/build'
require 'pkgforge/components/cflags'
require 'pkgforge/components/configure'
require 'pkgforge/components/deps'
require 'pkgforge/components/dirs'
require 'pkgforge/components/metadata'
require 'pkgforge/components/patch'
require 'pkgforge/components/run'
require 'pkgforge/components/source'
require 'pkgforge/components/test'
require 'pkgforge/components/upload'
require 'pkgforge/components/version'

##
# DSL engine for compiling Arch packages
module PkgForge
  include Contracts::Core
  include Contracts::Builtin

  DEFAULT_FILE = './.pkgforge'.freeze

  class << self
    ##
    # Insert a helper .new() method for creating a Forge object
    def new(*args)
      self::Forge.new(*args)
    end

    ##
    # Method for loading in DSL file
    Contract Maybe[HashOf[Symbol => Any]] => PkgForge::Forge
    def load_from_file(params = {})
      file = params[:file] || DEFAULT_FILE
      forge = Forge.new(params)
      dsl = DSL::Forge.new(forge, params)
      dsl.instance_eval(File.read(file), file)
      forge
    end
  end
end<commit_msg>fix call for Forge DSL<commit_after>require 'contracts'

require 'pkgforge/base'
require 'pkgforge/version'
require 'pkgforge/components/build'
require 'pkgforge/components/cflags'
require 'pkgforge/components/configure'
require 'pkgforge/components/deps'
require 'pkgforge/components/dirs'
require 'pkgforge/components/metadata'
require 'pkgforge/components/patch'
require 'pkgforge/components/run'
require 'pkgforge/components/source'
require 'pkgforge/components/test'
require 'pkgforge/components/upload'
require 'pkgforge/components/version'

##
# DSL engine for compiling Arch packages
module PkgForge
  include Contracts::Core
  include Contracts::Builtin

  DEFAULT_FILE = './.pkgforge'.freeze

  class << self
    ##
    # Insert a helper .new() method for creating a Forge object
    def new(*args)
      self::Forge.new(*args)
    end

    ##
    # Method for loading in DSL file
    Contract Maybe[HashOf[Symbol => Any]] => PkgForge::Forge
    def load_from_file(params = {})
      file = params[:file] || DEFAULT_FILE
      forge = Forge.new(params)
      dsl = DSL::Forge.new(forge)
      dsl.instance_eval(File.read(file), file)
      forge
    end
  end
end
{'fraction_non_alphanumeric': 0.11215351812366738, 'fraction_numerical': 0.0, 'mean_word_length': 4.1902654867256635, 'pattern_counts': {'":': 0, '<': 7, '<?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': '1495668', 'n_tokens_mistral': 763, 'n_tokens_neox': 713, 'n_words': 174}