<commit_before>package EnsEMBL::Users::Component::Account;

### Base class for all the components in user accounts
### @author hr5

use strict;

use EnsEMBL::Users::Messages qw(get_message);

use base qw(EnsEMBL::Web::Component);

use constant {
  _JS_LINK            => '_jinline modal_link',
  _JS_LINK_SECTION    => '_jinline _jseclink',
  _JS_LINK_SUBSECTION => '_jinline _jsseclink',
  _JS_LINK_FREE       => '_jinline _jfreelink',
#   _JS_LINK_SECTION    => '_jinline _jseclink',
#   _JS_LINK_SUBSECTION => '_jinline _jsseclink',
#   _JS_LINK_FREE       => '_jinline _jfreelink',
  _JS_SECTION         => '_jsec',
  _JS_SUBSECTION      => '_jssec',
  _JS_NOTIFICATION    => '_jnotif',
  _JS_CONFIRM         => '_jconfirm',
  _JS_CANCEL          => '_jcancel',
  _JS_REFRESH_URL     => '_js_refresh_url',
};

sub caption       {}
sub short_caption {}

sub _init {
  my $self = shift;
  $self->cacheable( 0 );
  $self->ajaxable(  0 );
}

sub wrapper_div {
  ## Returns a wraper div for sections in accounts page
  ## @param Hashref as accepted as second argument in dom->create_element, plus some extra keys
  ##  - padded    If on, will return the padded div
  ##  - js_panel  Name of the js_panel (optional)
  ## @return Div object
  my $self      = shift;
  my $params    = shift || {};
  my $js_panel  = delete $params->{'js_panel'};

  return $self->dom->create_element('div', {<commit_msg>untill javascript is not function for 'Sections'<commit_after>package EnsEMBL::Users::Component::Account;

### Base class for all the components in user accounts
### @author hr5

use strict;

use EnsEMBL::Users::Messages qw(get_message);

use base qw(EnsEMBL::Web::Component);

use constant {
  _JS_LINK            => '_jinline modal_link',
  _JS_LINK_SECTION    => '_jinline modal_link',
  _JS_LINK_SUBSECTION => '_jinline modal_link',
  _JS_LINK_FREE       => '_jinline modal_link',
#   _JS_LINK_SECTION    => '_jinline _jseclink',
#   _JS_LINK_SUBSECTION => '_jinline _jsseclink',
#   _JS_LINK_FREE       => '_jinline _jfreelink',
  _JS_SECTION         => '_jsec',
  _JS_SUBSECTION      => '_jssec',
  _JS_NOTIFICATION    => '_jnotif',
  _JS_CONFIRM         => '_jconfirm',
  _JS_CANCEL          => '_jcancel',
  _JS_REFRESH_URL     => '_js_refresh_url',
};

sub caption       {}
sub short_caption {}

sub _init {
  my $self = shift;
  $self->cacheable( 0 );
  $self->ajaxable(  0 );
}

sub wrapper_div {
  ## Returns a wraper div for sections in accounts page
  ## @param Hashref as accepted as second argument in dom->create_element, plus some extra keys
  ##  - padded    If on, will return the padded div
  ##  - js_panel  Name of the js_panel (optional)
  ## @return Div object
  my $self      = shift;
  my $params    = shift || {};
  my $js_panel  = delete $params->{'js_panel'};

  return $self->dom->create_element('div', {
{'fraction_non_alphanumeric': 0.12420606916019761, 'fraction_numerical': 0.002117148906139732, 'mean_word_length': 3.422776911076443, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 41, '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': '4036108', 'n_tokens_mistral': 1011, 'n_tokens_neox': 992, 'n_words': 250}