<commit_before>
require File.expand_path("../../../../lib/test/unit/around", __FILE__)
require "test/unit"

class AroundClassMethodTest < Test::Unit::TestCase
  around do |test|
    @before = :before

    test.run

    @after = :after

    assert_equal :after, @after
  end

  def test_around
    assert_equal :before, @before
    assert_nil @after
  end
end

class AroundInstanceMethodTest < Test::Unit::TestCase
  def around
    @before = :before

    yield

    @after = :after

    assert_equal :after, @after
  end

  def test_around
    assert_equal :before, @before
    assert_nil @after
  end
end

class WithoutAroundTest < Test::Unit::TestCase
  def test_something
    assert_nil @after
    assert_equal 1, 1
  end<commit_msg>Tests extended<commit_after>
require File.expand_path("../../../../lib/test/unit/around", __FILE__)
require "test/unit"

class AroundClassMethodTest < Test::Unit::TestCase
  setup do
    assert_nil @before
    assert_nil @after
  end

  around do |test|
    @before = :before

    test.run

    @after = :after
  end

  teardown do
    assert_equal :before, @before
    assert_equal :after, @after
  end

  test "around" do
    assert_equal :before, @before

    assert_nil @after
  end
end

class AroundInstanceMethodTest < Test::Unit::TestCase
  def setup
    assert_nil @before
    assert_nil @after
  end

  def around
    @before = :before

    yield

    @after = :after
  end

  def teardown
    assert_equal :before, @before
    assert_equal :after, @after
  end

  def test_around
    assert_equal :before, @before

    assert_nil @after
  end
end

class WithoutAroundTest < Test::Unit::TestCase
  def test_something
    assert_nil @before
    assert_nil @after

    assert_equal 1, 1
  end
{'fraction_non_alphanumeric': 0.09169550173010381, 'fraction_numerical': 0.002306805074971165, 'mean_word_length': 3.0348837209302326, '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': '5299190', 'n_tokens_mistral': 571, 'n_tokens_neox': 543, 'n_words': 157}