<commit_before># encoding: utf-8
require 'spec_helper.rb'
require 'digest'
require 'yaml'

xdescribe 'make-rootfs' do
  stacks_artifacts = 'spec/tasks/make-rootfs/stacks-artifacts'
  receipt_artifacts = 'spec/tasks/make-rootfs/receipt-artifacts'

  before(:context) do
    Dir["#{stacks_artifacts}/*"].each { |f| FileUtils.rm_rf f }
    Dir["#{receipt_artifacts}/*"].each { |f| FileUtils.rm_rf f }

    execute('-c tasks/make-rootfs/task.yml ' \
      '-p ' \
      '-i buildpacks-ci=. ' \
      '-i stacks=spec/tasks/make-rootfs/stacks ' \
      '-i version=spec/tasks/make-rootfs/version ' \
      "-o stacks-artifacts=#{stacks_artifacts} " \
      "-o receipt-artifacts=#{receipt_artifacts} ")
  end

  it 'overwrites the correct buildpack .zip file' do
    expect(File.exist?("#{stacks_artifacts}/cflinuxfs2-1.0.tar.gz")).to eq(true)
    expect(File.exist?("#{receipt_artifacts}/cflinuxfs2_receipt-1.0")).to eq(true)
  end
end
<commit_msg>Revert "Temporarily disable make-rootfs task spec"<commit_after># encoding: utf-8
require 'spec_helper.rb'
require 'digest'
require 'yaml'

describe 'make-rootfs' do
  stacks_artifacts = 'spec/tasks/make-rootfs/stacks-artifacts'
  receipt_artifacts = 'spec/tasks/make-rootfs/receipt-artifacts'

  before(:context) do
    Dir["#{stacks_artifacts}/*"].each { |f| FileUtils.rm_rf f }
    Dir["#{receipt_artifacts}/*"].each { |f| FileUtils.rm_rf f }

    execute('-c tasks/make-rootfs/task.yml ' \
      '-p ' \
      '-i buildpacks-ci=. ' \
      '-i stacks=spec/tasks/make-rootfs/stacks ' \
      '-i version=spec/tasks/make-rootfs/version ' \
      "-o stacks-artifacts=#{stacks_artifacts} " \
      "-o receipt-artifacts=#{receipt_artifacts} ")
  end

  it 'overwrites the correct buildpack .zip file' do
    expect(File.exist?("#{stacks_artifacts}/cflinuxfs2-1.0.tar.gz")).to eq(true)
    expect(File.exist?("#{receipt_artifacts}/cflinuxfs2_receipt-1.0")).to eq(true)
  end
end

{'fraction_non_alphanumeric': 0.16805411030176898, 'fraction_numerical': 0.007284079084287201, 'mean_word_length': 3.5894988066825775, 'pattern_counts': {'":': 0, '<': 3, '<?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': '6595173', 'n_tokens_mistral': 758, 'n_tokens_neox': 727, 'n_words': 113}