<commit_before>require "poet/version"

module Poet

  MAGIC_LINE = "# Generated by #{File.basename(__FILE__)}"

  class << self

    def application(options={})
      @application ||= Poet::Application.new(options)
    end
        
  end

  class Application

    attr_reader :options

    def initialize(options={})
      @options = options
    end

    def run
      if !File.directory?(options[:dir])
        $stderr.puts "#{options[:dir]} does not exist or is not a directory"
        Process.exit!(1)<commit_msg>Magic line does not contain the file extension<commit_after>require "poet/version"

module Poet

  MAGIC_LINE = "# Generated by #{File.basename(__FILE__, '.rb')}"

  class << self

    def application(options={})
      @application ||= Poet::Application.new(options)
    end
        
  end

  class Application

    attr_reader :options

    def initialize(options={})
      @options = options
    end

    def run
      if !File.directory?(options[:dir])
        $stderr.puts "#{options[:dir]} does not exist or is not a directory"
        Process.exit!(1)
{'fraction_non_alphanumeric': 0.1191806331471136, 'fraction_numerical': 0.00186219739292365, 'mean_word_length': 2.8949275362318843, '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': '2036129', 'n_tokens_mistral': 329, 'n_tokens_neox': 311, 'n_words': 87}