<commit_before>class Archive7zTask < RubyInstaller::Build::BaseTask
  def initialize(*args)
    super
    sandboxdir = sandbox_task.sandboxdir
    self.archivefile = "recipes/archive-7z/rubyinstaller-#{package.rubyver_pkgrel}-#{package.arch}.7z"

    desc "7z archive for ruby-#{package.rubyver}-#{package.arch}"
    task "archive-7z" => [:devkit, "sandbox", archivefile]

    file archivefile => sandbox_task.sandboxfiles do
      rm_f archivefile
      msys_sh <<-EOT
        pacman -S --needed --noconfirm p7zip
      EOT

      chdir "sandbox" do
        sh "sh 7z a -bd ../#{archivefile} #{sandboxdir.gsub("sandbox/", "")} | ruby -ne \"STDERR.print '.'\""
      end
    end
  end
end<commit_msg>Fix 7z recipe<commit_after>class Archive7zTask < RubyInstaller::Build::BaseTask
  def initialize(*args)
    super
    sandboxdir = sandbox_task.sandboxdir
    self.archivefile = "recipes/archive-7z/rubyinstaller-#{package.rubyver_pkgrel}-#{package.arch}.7z"

    desc "7z archive for ruby-#{package.rubyver}-#{package.arch}"
    task "archive-7z" => [:devkit, "sandbox", archivefile]

    file archivefile => sandbox_task.sandboxfiles do
      rm_f archivefile
      msys_sh <<-EOT
        pacman -S --needed --noconfirm p7zip
      EOT

      chdir "recipes/sandbox" do
        sh "sh 7z a -bd ../../#{archivefile} #{sandboxdir.gsub("recipes/sandbox/", "")} | ruby -ne \"STDERR.print '.'\""
      end
    end
  end
end
{'fraction_non_alphanumeric': 0.1430584918957012, 'fraction_numerical': 0.010570824524312896, 'mean_word_length': 3.034090909090909, 'pattern_counts': {'":': 0, '<': 9, '<?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': '4795998', 'n_tokens_mistral': 529, 'n_tokens_neox': 497, 'n_words': 103}