<commit_before>RSpec::Matchers.define :include_tree_part do |part|
  match do |this_tree|
    expect(this_tree).to be_a Sycamore::Tree
    expect(this_tree).to include part
=begin
    case part
      when Hash
        # part.each do |node, child|
        #   expect(this_tree).to include_tree_part node
        #   expect(this_tree.child(node)).to include_tree_part child
        # end
      when Enumerable then nodes = part
        nodes.each do |node|
          expect(this_tree).to include_tree_part node
        end
      else node = part
        expect(this_tree).to include node
    end
=end
  end
end

RSpec::Matchers.define :include_node_with do |node|
  match do |this_tree|
    expect(this_tree).to include_tree_part node
  end
end

RSpec::Matchers.define :include_nodes_with do |nodes|
  match do |this_tree|
    expect(this_tree).to include_tree_part nodes
  end
end

RSpec::Matchers.define :include_tree_with do |tree|
  match do |this_tree|
    expect(this_tree).to include_tree_part tree
  end
end

<commit_msg>Remove old uncommented include_tree_part matcher code<commit_after>RSpec::Matchers.define :include_tree_part do |part|
  match do |this_tree|
    expect(this_tree).to be_a Sycamore::Tree
    expect(this_tree).to include part
  end
end

RSpec::Matchers.define :include_node_with do |node|
  match do |this_tree|
    expect(this_tree).to include_tree_part node
  end
end

RSpec::Matchers.define :include_nodes_with do |nodes|
  match do |this_tree|
    expect(this_tree).to include_tree_part nodes
  end
end

RSpec::Matchers.define :include_tree_with do |tree|
  match do |this_tree|
    expect(this_tree).to include_tree_part tree
  end
end


{'fraction_non_alphanumeric': 0.0803357314148681, 'fraction_numerical': 0.0, 'mean_word_length': 3.754985754985755, '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': '5515112', 'n_tokens_mistral': 564, 'n_tokens_neox': 561, 'n_words': 143}