<commit_before>require File.expand_path('../test_helper.rb', File.dirname(__FILE__))

describe GirFFI::IBaseInfo do
  describe "#safe_name" do
    it "makes names starting with an underscore safe" do
      stub(ptr = Object.new).null? { false }

      info = GirFFI::IBaseInfo.wrap ptr

      stub(info).name { "_foo" }

      assert_equal "Private___foo", info.safe_name
    end
  end
end
<commit_msg>Fix namespace of IBaseInfo in merged test.<commit_after>require File.expand_path('../test_helper.rb', File.dirname(__FILE__))

describe GObjectIntrospection::IBaseInfo do
  describe "#safe_name" do
    it "makes names starting with an underscore safe" do
      stub(ptr = Object.new).null? { false }

      info = GObjectIntrospection::IBaseInfo.wrap ptr

      stub(info).name { "_foo" }

      assert_equal "Private___foo", info.safe_name
    end
  end
end

{'fraction_non_alphanumeric': 0.10801393728222997, 'fraction_numerical': 0.0, 'mean_word_length': 3.6344086021505375, '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': '6789612', 'n_tokens_mistral': 279, 'n_tokens_neox': 272, 'n_words': 70}