<commit_before>require "thor"
require "munge/runner"

module Munge
  class CLI < Thor
    include Thor::Actions

    def self.source_root
      File.expand_path("../../../seeds", __FILE__)
    end

    desc "init PATH", "Create new site at PATH"
    def init(path)
      return unless yes?("initialize into `#{destination_root}/#{path}`?")

      directory ".", path
    end

    desc "build", "Build in current directory"
    def build
      config_path = File.join(destination_root, "config.yml")
      rules_path  = File.join(destination_root, "rules.rb")<commit_msg>remove confirmation for `munge init`<commit_after>require "thor"
require "munge/runner"

module Munge
  class CLI < Thor
    include Thor::Actions

    def self.source_root
      File.expand_path("../../../seeds", __FILE__)
    end

    desc "init PATH", "Create new site at PATH"
    def init(path)
      directory ".", path
    end

    desc "build", "Build in current directory"
    def build
      config_path = File.join(destination_root, "config.yml")
      rules_path  = File.join(destination_root, "rules.rb")
{'fraction_non_alphanumeric': 0.12419503219871206, 'fraction_numerical': 0.0, 'mean_word_length': 3.0296296296296297, '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': '2798926', 'n_tokens_mistral': 343, 'n_tokens_neox': 328, 'n_words': 94}