<commit_before># Figure out what's missing from fakefs
#
# USAGE
#
#   $ RUBYLIB=test ruby test/verify.rb | grep "not implemented"

require "test_helper"

class FakeFSVerifierTest < Test::Unit::TestCase
  (RealFile.methods - Class.new.methods).each do |name|
    define_method("test #{name} class method") do
      assert File.respond_to?(name), "File.#{name} not implemented"
    end<commit_msg>Fix test/verify.rb to report the correct missing methods<commit_after># Figure out what's missing from fakefs
#
# USAGE
#
#   $ RUBYLIB=test ruby test/verify.rb | grep "not implemented"

require "test_helper"

class FakeFSVerifierTest < Test::Unit::TestCase
  def setup
    FakeFS.activate!
  end

  def teardown
    FakeFS.deactivate!
  end

  (RealFile.methods - Class.new.methods).each do |name|
    define_method("test #{name} class method") do
      assert File.respond_to?(name), "File.#{name} not implemented"
    end
{'fraction_non_alphanumeric': 0.11521739130434783, 'fraction_numerical': 0.0, 'mean_word_length': 4.174157303370786, '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': '4689250', 'n_tokens_mistral': 305, 'n_tokens_neox': 296, 'n_words': 82}