<commit_before>package DreamGuild::WWW;
use Mojo::Base 'Mojolicious';

use DreamGuild::DB;
use DreamGuild::WWW::Helpers;


our $VERSION = '0.010';


sub before_filter {
  my $self = shift;

  my $uid = $self->session ('uid');
  return unless $uid;

  my $user_row = DreamGuild::DB::User->select ('where id = ?', $uid);
  return unless scalar (@{$user_row});

  # Getting main
  $user_row->[0]->{mainc} = DreamGuild::DB::Roster->load ($user_row->[0]->{main})
    if ($user_row->[0]->{main});

  # Update last active column
  my $now = time ();
  if ($user_row->[0]->last_active + 3600 < $now) {
    $user_row->[0]->update (last_active => $now);
  }


  # Getting open application count
  my $open_application_count = DreamGuild::DB::Application->count ('where status = 1');
<commit_msg>increase version<commit_after>package DreamGuild::WWW;
use Mojo::Base 'Mojolicious';

use DreamGuild::DB;
use DreamGuild::WWW::Helpers;


our $VERSION = '0.011';


sub before_filter {
  my $self = shift;

  my $uid = $self->session ('uid');
  return unless $uid;

  my $user_row = DreamGuild::DB::User->select ('where id = ?', $uid);
  return unless scalar (@{$user_row});

  # Getting main
  $user_row->[0]->{mainc} = DreamGuild::DB::Roster->load ($user_row->[0]->{main})
    if ($user_row->[0]->{main});

  # Update last active column
  my $now = time ();
  if ($user_row->[0]->last_active + 3600 < $now) {
    $user_row->[0]->update (last_active => $now);
  }


  # Getting open application count
  my $open_application_count = DreamGuild::DB::Application->count ('where status = 1');

{'fraction_non_alphanumeric': 0.19453273998728543, 'fraction_numerical': 0.017800381436745075, 'mean_word_length': 4.390410958904109, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 33, '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': '76181', 'n_tokens_mistral': 588, 'n_tokens_neox': 560, 'n_words': 131}