<commit_before>require_relative '../test_case'
require 'tunit/spec'

module Tunit
  class SpecExpectationsTest < TestCase
    include Spec::Expect::Expectations

    def setup
      self.tc                = Class.new(Spec).new "custom_spec"
      self.expectation_count = 0
    end
    attr_accessor :tc, :expectation_count

    def teardown
      assert_equal expectation_count, tc.assertions,
        "Expected #{expectation_count} assertions to have been made to #{tc}, but was #{tc.assertions}"
    end

    def test_expect_to_equal
     self.expectation_count += 1
      tc.expect(2).to eq 2
    end

    def test_expect_to_not_equal
      self.expectation_count += 1
      tc.expect(1).to not_eq 2
    end<commit_msg>fix intendation<commit_after>require_relative '../test_case'
require 'tunit/spec'

module Tunit
  class SpecExpectationsTest < TestCase
    include Spec::Expect::Expectations

    def setup
      self.tc                = Class.new(Spec).new "custom_spec"
      self.expectation_count = 0
    end
    attr_accessor :tc, :expectation_count

    def teardown
      assert_equal expectation_count, tc.assertions,
        "Expected #{expectation_count} assertions to have been made to #{tc}, but was #{tc.assertions}"
    end

    def test_expect_to_equal
      self.expectation_count += 1
      tc.expect(2).to eq 2
    end

    def test_expect_to_not_equal
      self.expectation_count += 1
      tc.expect(1).to not_eq 2
    end
{'fraction_non_alphanumeric': 0.08143547273982056, 'fraction_numerical': 0.00966183574879227, 'mean_word_length': 2.8461538461538463, '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': '5158957', 'n_tokens_mistral': 465, 'n_tokens_neox': 444, 'n_words': 112}