<commit_before>package EnsEMBL::Web::TmpFile::Driver::Disk;

use strict;
use Compress::Zlib;
use base 'EnsEMBL::Web::Root';

sub new {
  my $class = shift;
  my $self  = {};
  bless $self, $class;

  return $self;
}

sub exists {
  my ($self, $file) = @_;
  return -e $file && -f $file;
}

sub delete {
  my ($self, $file) = @_;
  return unlink $file;
}

sub get {
  my ($self, $file, $params) = @_;

  my $content = '';
  if ($params->{compress}) {
    my $gz = gzopen( $file, 'rb' )
         or die "GZ Cannot open $file: $gzerrno\n";<commit_msg>*** empty log message ***<commit_after>package EnsEMBL::Web::TmpFile::Driver::Disk;

use strict;
use Compress::Zlib;
use base 'EnsEMBL::Web::Root';

sub new {
  my $class = shift;
  my $self  = {};
  bless $self, $class;

  return $self;
}

sub exists {
  my ($self, $file) = @_;
  return -e $file && -f $file;
}

sub delete {
  my ($self, $file) = @_;
  return unlink $file;
}

sub get {
  my ($self, $file, $params) = @_;

  my $content = '';
  if ($params->{compress}) {
    my $gz = gzopen( $file, 'rb' )
         or warn "GZ Cannot open $file: $gzerrno\n";
{'fraction_non_alphanumeric': 0.19837691614066727, 'fraction_numerical': 0.0, 'mean_word_length': 3.220532319391635, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 5, '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': '6602257', 'n_tokens_mistral': 453, 'n_tokens_neox': 442, 'n_words': 127}