<commit_before>describe Integer, "#kaprekar?" do
  KAPREKAR = [1,9,45,55,99,297,703,999,2223,2728,4879,4950,
              5050,5292,7272,7777,9999,17344,22222,38962,77778,
              82656,95121,99999,142857,148149,181819,187110,
              208495,318682,329967,351352,356643,390313,461539,
              466830,499500,500500,533170]

  it "returns true for Kaprekar numbers" do
    KAPREKAR.each do |number|
      number.should be_kaprekar
    end
  end

  it "returns false for non-Kaprekar numbers" do
    ((1..300).to_a - KAPREKAR).each do |number|
      number.should_not be_kaprekar
    end
  end
end<commit_msg>Specify #kaprekar? returns false for negatives<commit_after>describe Integer, "#kaprekar?" do
  KAPREKAR = [1,9,45,55,99,297,703,999,2223,2728,4879,4950,
              5050,5292,7272,7777,9999,17344,22222,38962,77778,
              82656,95121,99999,142857,148149,181819,187110,
              208495,318682,329967,351352,356643,390313,461539,
              466830,499500,500500,533170]

  it "returns true for Kaprekar numbers" do
    KAPREKAR.each do |number|
      number.should be_kaprekar
    end
  end

  it "returns false for non-Kaprekar numbers" do
    ((1..300).to_a - KAPREKAR).each do |number|
      number.should_not be_kaprekar
    end
  end

  it "returns false for negative numbers" do
    [-5, -9, -297, -345].each do |number|
      number.should_not be_kaprekar
    end
  end
end
{'fraction_non_alphanumeric': 0.11048557353976073, 'fraction_numerical': 0.2617874736101337, 'mean_word_length': 3.1823529411764704, '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': '1963448', 'n_tokens_mistral': 777, 'n_tokens_neox': 563, 'n_words': 101}