<commit_before>package EnsEMBL::Web::Form::Matrix;

use strict;

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

use constant {
  CSS_CLASS                   => 'matrix',
  CSS_CLASS_HEADING           => 'fm-heading',
  CSS_CLASS_ODD_ROW           => 'bg1',
  CSS_CLASS_EVEN_ROW          => 'bg2',
  CSS_CLASS_CELLS             => 'ff-mcell',
  CSS_CLASS_SELECTALL_ROW     => 'select_all_row',    #JS purposes
  CSS_CLASS_SELECTALL_COLUMN  => 'select_all_column', #JS purposes
  SUB_HEADING_TAG             => 'p',
  CSS_CLASS_SUB_HEADING       => 'matrixhead',
};

sub new {
  ## @overrides
  my $self = shift->SUPER::new(@_);
  $self->{'__columns'}          = [];
  $self->{'__rows_name'}        = {};
  $self->{'__name_prefix'}      = '';
  $self->{'__selectall_label'}  = '';
  $self->{'__selectall'}        = 1;
  $self->{'__row_keys'}         = [];
  $self->set_attributes({
    'cellspacing' => '0',
    'cellpadding' => '0',
    'class'       => $self->CSS_CLASS
  });
  return $self;
}

sub render {<commit_msg>spreadsheet styles added to matrix<commit_after>package EnsEMBL::Web::Form::Matrix;

use strict;

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

use constant {
  CSS_CLASS                   => 'matrix ss',
  CSS_CLASS_HEADING           => 'fm-heading',
  CSS_CLASS_ODD_ROW           => 'bg1',
  CSS_CLASS_EVEN_ROW          => 'bg2',
  CSS_CLASS_CELLS             => 'ff-mcell',
  CSS_CLASS_SELECTALL_ROW     => 'select_all_row',    #JS purposes
  CSS_CLASS_SELECTALL_COLUMN  => 'select_all_column', #JS purposes
  SUB_HEADING_TAG             => 'p',
  CSS_CLASS_SUB_HEADING       => 'matrixhead',
};

sub new {
  ## @overrides
  my $self = shift->SUPER::new(@_);
  $self->{'__columns'}          = [];
  $self->{'__rows_name'}        = {};
  $self->{'__name_prefix'}      = '';
  $self->{'__selectall_label'}  = '';
  $self->{'__selectall'}        = 1;
  $self->{'__row_keys'}         = [];
  $self->set_attributes({
    'cellspacing' => '0',
    'cellpadding' => '0',
    'class'       => $self->CSS_CLASS
  });
  return $self;
}

sub render {
{'fraction_non_alphanumeric': 0.17998075072184794, 'fraction_numerical': 0.004812319538017324, 'mean_word_length': 2.660211267605634, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 45, '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': '1864590', 'n_tokens_mistral': 756, 'n_tokens_neox': 746, 'n_words': 115}