<commit_before>gem 'minitest'
require 'minitest/autorun'
require 'minitest/pride'

class PickDesiredValuesTest < Minitest::Test
  # You get the first test for free... it's already passing.
  def test_pick_even_numbers
    numbers = [1, 2, 3, 4, 5, 6, 7, 8, 9, 10]
    evens = []
    numbers.each do |number|
      evens << number if number.even?
    end
    assert_equal [2, 4, 6, 8, 10], evens
  end

  # This test is missing a single line of code
  def test_pick_odd_numbers
    numbers = [1, 2, 3, 4, 5, 6, 7, 8, 9, 10]
    odds = []
    numbers.each do |number|
      # write code here
    end
    assert_equal [1, 3, 5, 7, 9], odds
  end

  # This test is missing the whole loop
  def test_pick_words_with_three_letters
    skip
    words = [
      "pill", "bad", "finger", "cat",
      "blue", "dog", "table", "red"
    ]
    selected = []
    # write code here
    assert_equal ["bad", "cat", "dog", "red"], selected
  end

  # From here on out, you're pretty much on your own...

  def test_pick_words_with_more_than_three_letters
    skip
    words = [
      "pill", "bad", "finger", "cat",
      "blue", "dog", "table", "red"
    ]
    # write code here
    assert_equal ["pill", "finger", "blue", "table"], selected
  end

  def test_pick_words_ending_in_e
    skip
    words = [
      "are", "you", "strike",
      "thinking", "belt", "piece",
      "warble", "sing", "pipe"
    ]
    # write code here
    assert_equal ["are", "strike", "piece", "warble", "pipe"], selected
  end

  def test_pick_words_ending_in_ing
    skip
    words = [
      "bring", "finger", "drought", "singing",
      "hat", "shoehorning", "purposeful"
    ]
    # write code here
    assert_equal ["singing", "shoehorning"], selected
  end

  def test_select_all_words_containing_e
    skip
    words = ["four", "red", "five", "blue", "pizza", "purple"]
    # write code here
    assert_equal ["red", "five", "blue", "purple"], selected
  end

  def test_pick_dinosaurs
    skip
    animals = [
      "tyrannosaurus", "teacup_poodle", "achillesaurus",
      "ankylosaurus", "qingxiusaurus"
    ]
    # write code here
    expected = [
      "tyrannosaurus", "achillesaurus", "ankylosaurus", "qingxiusaurus"
    ]
    assert_equal expected, selected
  end
end<commit_msg>Add more animals to dinosaur test<commit_after>gem 'minitest'
require 'minitest/autorun'
require 'minitest/pride'

class PickDesiredValuesTest < Minitest::Test
  # You get the first test for free... it's already passing.
  def test_pick_even_numbers
    numbers = [1, 2, 3, 4, 5, 6, 7, 8, 9, 10]
    evens = []
    numbers.each do |number|
      evens << number if number.even?
    end
    assert_equal [2, 4, 6, 8, 10], evens
  end

  # This test is missing a single line of code
  def test_pick_odd_numbers
    numbers = [1, 2, 3, 4, 5, 6, 7, 8, 9, 10]
    odds = []
    numbers.each do |number|
      # write code here
    end
    assert_equal [1, 3, 5, 7, 9], odds
  end

  # This test is missing the whole loop
  def test_pick_words_with_three_letters
    skip
    words = [
      "pill", "bad", "finger", "cat",
      "blue", "dog", "table", "red"
    ]
    selected = []
    # write code here
    assert_equal ["bad", "cat", "dog", "red"], selected
  end

  # From here on out, you're pretty much on your own...

  def test_pick_words_with_more_than_three_letters
    skip
    words = [
      "pill", "bad", "finger", "cat",
      "blue", "dog", "table", "red"
    ]
    # write code here
    assert_equal ["pill", "finger", "blue", "table"], selected
  end

  def test_pick_words_ending_in_e
    skip
    words = [
      "are", "you", "strike",
      "thinking", "belt", "piece",
      "warble", "sing", "pipe"
    ]
    # write code here
    assert_equal ["are", "strike", "piece", "warble", "pipe"], selected
  end

  def test_pick_words_ending_in_ing
    skip
    words = [
      "bring", "finger", "drought", "singing",
      "hat", "shoehorning", "purposeful"
    ]
    # write code here
    assert_equal ["singing", "shoehorning"], selected
  end

  def test_select_all_words_containing_e
    skip
    words = ["four", "red", "five", "blue", "pizza", "purple"]
    # write code here
    assert_equal ["red", "five", "blue", "purple"], selected
  end

  def test_pick_dinosaurs
    skip
    animals = [
      "tyrannosaurus", "teacup poodle", "achillesaurus",
      "ankylosaurus", "narwhal", "qingxiusaurus",
      "duck-billed platypus", "sealion", "slime eel"
    ]
    # write code here
    expected = [
      "tyrannosaurus", "achillesaurus", "ankylosaurus", "qingxiusaurus"
    ]
    assert_equal expected, selected
  end
end
{'fraction_non_alphanumeric': 0.1396915055398653, 'fraction_numerical': 0.014338474907668911, 'mean_word_length': 2.8624161073825505, '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': '3921689', 'n_tokens_mistral': 1724, 'n_tokens_neox': 1616, 'n_words': 479}