<commit_before>module  Opsk
  class Package < Thor::Group
    include Thorable, Thor::Actions

    def meta 
	 OpenStruct.new(YAML.load_file('opsk.yml'))
    end

    def name 
     	File.basename(Dir.getwd)
    end

    def artifact
    	"#{name}-#{meta.version}"
    end

    def create_build
	empty_directory(artifact)
	path = Dir.getwd
	directory path , artifact
	empty_directory("#{artifact}/scripts")
	%w(lookup.sh run.sh).each  do |s|
	  template("templates/scripts/#{s}", "#{artifact}/scripts/#{s}")
	  chmod("#{artifact}/scripts/#{s}", 0755)
	end
	template('templates/puppet/site.erb', "#{artifact}/manifests/site.pp")
    end

    def create_pkg
	empty_directory('pkg')
    end

    def package
	ignored = IO.readlines('.gitignore').map(&:chomp)
	ignored.delete('modules')
	excludes = ignored.map{|f| "'#{f}'"}.join(" --exclude=") << ' --exclude-backups --exclude-vcs --exclude=pkg'
	run("tar --exclude=#{excludes} -czf pkg/#{artifact}.tar.gz #{artifact} > /dev/null", :verbose => false)
    end

  end<commit_msg>making directory non verbose<commit_after>module  Opsk
  class Package < Thor::Group
    include Thorable, Thor::Actions

    def meta 
	 OpenStruct.new(YAML.load_file('opsk.yml'))
    end

    def name 
     	File.basename(Dir.getwd)
    end

    def artifact
    	"#{name}-#{meta.version}"
    end

    def create_build
	empty_directory(artifact)
	path = Dir.getwd
	directory path , artifact , :verbose => false
	empty_directory("#{artifact}/scripts")
	%w(lookup.sh run.sh).each  do |s|
	  template("templates/scripts/#{s}", "#{artifact}/scripts/#{s}")
	  chmod("#{artifact}/scripts/#{s}", 0755)
	end
	template('templates/puppet/site.erb', "#{artifact}/manifests/site.pp")
    end

    def create_pkg
	empty_directory('pkg')
    end

    def package
	ignored = IO.readlines('.gitignore').map(&:chomp)
	ignored.delete('modules')
	excludes = ignored.map{|f| "'#{f}'"}.join(" --exclude=") << ' --exclude-backups --exclude-vcs --exclude=pkg'
	run("tar --exclude=#{excludes} -czf pkg/#{artifact}.tar.gz #{artifact} > /dev/null", :verbose => false)
    end

  end
{'fraction_non_alphanumeric': 0.1785885741718675, 'fraction_numerical': 0.003840614498319731, 'mean_word_length': 3.631111111111111, 'pattern_counts': {'":': 0, '<': 9, '<?xml version=': 0, '>': 8, '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': '4860258', 'n_tokens_mistral': 784, 'n_tokens_neox': 714, 'n_words': 138}