<commit_before><commit_msg>Tr element with some methods for table row<commit_after>package EnsEMBL::Web::DOM::Node::Element::Tr;

use strict;

use base qw(EnsEMBL::Web::DOM::Node::Element);

sub node_name {
  ## @overrides
  return 'tr';
}

sub w3c_appendable {
  ## @overrides
  my ($self, $child) = @_;
  return $child->node_type == $self->ELEMENT_NODE && $child->node_name =~ /^t(r|h)$/ ? 1 : 0;
}

sub cells {
  ## Gets an arrayref of all the cells inside the row
  return shift->child_nodes;
}

1;
{'fraction_non_alphanumeric': 0.16533864541832669, 'fraction_numerical': 0.00796812749003984, 'mean_word_length': 4.651685393258427, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 7, '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': '5703045', 'n_tokens_mistral': 193, 'n_tokens_neox': 189, 'n_words': 47}