<commit_before>module Bio
  module NeXML
    class TestParser < Test::Unit::TestCase

      def setup
        @doc = Parser.new( TEST_FILE, true )
      end

      def teardown
        @doc.close
      end

      def test_parse
        nexml = @doc.parse
        assert_instance_of Bio::NeXML::Nexml, nexml, "Should return an object of Bio::NeXML::Nexml"
      end

    end #end class TestParser
  end #end module NeXML

end #end module Bio<commit_msg>Unit tests: fix close on nix on 1.9.2<commit_after>module Bio
  module NeXML
    class TestParser < Test::Unit::TestCase

      def setup
        @doc = Parser.new( TEST_FILE, true )
      end

      def teardown
        @doc.close if @doc
      end

      def test_parse
        nexml = @doc.parse
        assert_instance_of Bio::NeXML::Nexml, nexml, "Should return an object of Bio::NeXML::Nexml"
      end

    end #end class TestParser
  end #end module NeXML

end #end module Bio
{'fraction_non_alphanumeric': 0.07692307692307693, 'fraction_numerical': 0.003205128205128205, 'mean_word_length': 2.3226950354609928, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 8}, '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': '7302518', 'n_tokens_mistral': 304, 'n_tokens_neox': 294, 'n_words': 96}