<commit_before>require 'confetti'

describe Confetti::Config do
  before do
    @config = Confetti::Config.new
  end

  it "has a writable and readable name field" do
    lambda { @config.name = "My Great App" }.should_not raise_error
    @config.name.should == "My Great App"
  end

  it "has a writable and readable package field" do
    lambda { @config.package = "com.alunny.greatapp" }.should_not raise_error
    @config.package.should == "com.alunny.greatapp"
  end

  it "has a writable and readable version field" do
    lambda { @config.version = "0.1.0" }.should_not raise_error
    @config.version.should == "0.1.0"
  end

  it "has a writable and readable description field" do
    lambda { @config.description = "A Great App That Lets You Do Things" }.should_not raise_error
    @config.description.should == "A Great App That Lets You Do Things"
  end

  it "has an author field, that is an author object" do
    @config.author.class.should be Confetti::Config::Author
  end
end<commit_msg>confirming author is non-clobberable<commit_after>require 'confetti'

describe Confetti::Config do
  before do
    @config = Confetti::Config.new
  end

  it "has a writable and readable name field" do
    lambda { @config.name = "My Great App" }.should_not raise_error
    @config.name.should == "My Great App"
  end

  it "has a writable and readable package field" do
    lambda { @config.package = "com.alunny.greatapp" }.should_not raise_error
    @config.package.should == "com.alunny.greatapp"
  end

  it "has a writable and readable version field" do
    lambda { @config.version = "0.1.0" }.should_not raise_error
    @config.version.should == "0.1.0"
  end

  it "has a writable and readable description field" do
    lambda { @config.description = "A Great App That Lets You Do Things" }.should_not raise_error
    @config.description.should == "A Great App That Lets You Do Things"
  end

  it "has an author field, that is an author object" do
    @config.author.class.should be Confetti::Config::Author
  end

  it "doesn't allow author to be clobbered" do
    lambda { @config.author = "<NAME>" }.should raise_error
  end
end
{'fraction_non_alphanumeric': 0.09883449883449884, 'fraction_numerical': 0.005594405594405594, 'mean_word_length': 3.508403361344538, 'pattern_counts': {'":': 0, '<': 4, '<?xml version=': 0, '>': 4, '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': '6018494', 'n_tokens_mistral': 704, 'n_tokens_neox': 671, 'n_words': 240}