<commit_before>#!/usr/bin/env ruby

require 'test/unit'
require 'rake/packagetask'

class TestPackageTask < Test::Unit::TestCase
  def test_create
    pkg = Rake::PackageTask.new("pkgr", "1.2.3")
    pkg.package_files << "install.rb"
    pkg.package_files.add(
      '[A-Z]*',
      'bin/**/*',
      'lib/**/*.rb',
      'test/**/*.rb',
      'doc/**/*',
      'build/rubyapp.rb',
      '*.blurb')
    pkg.define
    assert_equal "pkg", pkg.package_dir
    assert pkg.package_files.include?("bin/rake")
    assert "pkgr", pkg.name
    assert "1.2.3", pkg.version
    assert Task[:package]
    assert Task["pkg/pkgr-1.2.3"]
    assert Task['pkg/pkgr-1.2.3.tgz']
    assert Task['pkg/pkgr-1.2.3.zip']
    assert Task[:clean_package]
    assert Task[:repackage]
  end
end<commit_msg>Changed clean tag test to check clobber tag.<commit_after>#!/usr/bin/env ruby

require 'test/unit'
require 'rake/packagetask'

class TestPackageTask < Test::Unit::TestCase
  def test_create
    pkg = Rake::PackageTask.new("pkgr", "1.2.3")
    pkg.package_files << "install.rb"
    pkg.package_files.add(
      '[A-Z]*',
      'bin/**/*',
      'lib/**/*.rb',
      'test/**/*.rb',
      'doc/**/*',
      'build/rubyapp.rb',
      '*.blurb')
    pkg.define
    assert_equal "pkg", pkg.package_dir
    assert pkg.package_files.include?("bin/rake")
    assert "pkgr", pkg.name
    assert "1.2.3", pkg.version
    assert Task[:package]
    assert Task["pkg/pkgr-1.2.3"]
    assert Task['pkg/pkgr-1.2.3.tgz']
    assert Task['pkg/pkgr-1.2.3.zip']
    assert Task[:clobber_package]
    assert Task[:repackage]
  end
end
{'fraction_non_alphanumeric': 0.18871473354231974, 'fraction_numerical': 0.018808777429467086, 'mean_word_length': 2.8090692124105012, 'pattern_counts': {'":': 0, '<': 9, '<?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': '4012163', 'n_tokens_mistral': 620, 'n_tokens_neox': 597, 'n_words': 106}