<commit_before>require File.expand_path('../helper', __FILE__)

class TestRakeScope < Rake::TestCase
  include Rake

  def test_empty_scope
    scope = Scope.make
    assert_equal scope, Scope::EMPTY
    assert_equal scope.path, ""
  end

  def test_with_one_element
    scope = Scope.make(:one)
    assert_equal "one", scope.path
  end

  def test_with_two_elements
    scope = Scope.make(:inner, :outer)
    assert_equal "outer:inner", scope.path
  end

  def test_path_with_task_name
    scope = Scope.make(:inner, :outer)
    assert_equal "outer:inner:task", scope.path_with_task_name("task")
  end

  def test_path_with_task_name_on_empty_scope
    scope = Scope.make
    assert_equal "task", scope.path_with_task_name("task")
  end

  def test_scope_conj
    scope = Scope.make.conj("B").conj("A")
    assert_equal Scope.make("A", "B"), scope
  end
end<commit_msg>Clean up some test names<commit_after>require File.expand_path('../helper', __FILE__)

class TestRakeScope < Rake::TestCase
  include Rake

  def test_path_against_empty_scope
    scope = Scope.make
    assert_equal scope, Scope::EMPTY
    assert_equal scope.path, ""
  end

  def test_path_against_one_element
    scope = Scope.make(:one)
    assert_equal "one", scope.path
  end

  def test_path_against_two_elements
    scope = Scope.make(:inner, :outer)
    assert_equal "outer:inner", scope.path
  end

  def test_path_with_task_name
    scope = Scope.make(:inner, :outer)
    assert_equal "outer:inner:task", scope.path_with_task_name("task")
  end

  def test_path_with_task_name_against_empty_scope
    scope = Scope.make
    assert_equal "task", scope.path_with_task_name("task")
  end

  def test_conj_against_two_elements
    scope = Scope.make.conj("B").conj("A")
    assert_equal Scope.make("A", "B"), scope
  end
end
{'fraction_non_alphanumeric': 0.10333333333333333, 'fraction_numerical': 0.0, 'mean_word_length': 4.160458452722063, 'pattern_counts': {'":': 0, '<': 5, '<?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': '6843478', 'n_tokens_mistral': 642, 'n_tokens_neox': 626, 'n_words': 127}