<commit_before>package Bio::EnsEMBL::GlyphSet::prints;
use strict;
use vars qw(@ISA);
use Bio::EnsEMBL::GlyphSet;
@ISA = qw(Bio::EnsEMBL::GlyphSet);
use Bio::EnsEMBL::Glyph::Rect;
use Bio::EnsEMBL::Glyph::Text;
use Bio::EnsEMBL::Glyph::Composite;
use Bump;

sub init_label {
    my ($this) = @_;

    my $label = new Bio::EnsEMBL::Glyph::Text({
	'text'      => 'Prints',
	'font'      => 'Small',
	'absolutey' => 1,
    });
    $this->label($label);
}

sub _init {
    my ($this) = @_;
    my %hash          = undef;
    my $protein       = $this->{'container'};
    my @bitmap        = undef;
    my $Config        = $this->{'config'};
    my $pix_per_bp    = $Config->transform->{'scalex'};
    my $bitmap_length = int($protein * $pix_per_bp);
    my $y             = 0;
    my $h             = 4;
    my $colour        = $Config->get($Config->script(), 'prints','col');
    my $caption       = "Prints";
    my $font          = "Small";<commit_msg>bitmap length was being calculated wrongly<commit_after>package Bio::EnsEMBL::GlyphSet::prints;
use strict;
use vars qw(@ISA);
use Bio::EnsEMBL::GlyphSet;
@ISA = qw(Bio::EnsEMBL::GlyphSet);
use Bio::EnsEMBL::Glyph::Rect;
use Bio::EnsEMBL::Glyph::Text;
use Bio::EnsEMBL::Glyph::Composite;
use Bump;

sub init_label {
    my ($this) = @_;

    my $label = new Bio::EnsEMBL::Glyph::Text({
	'text'      => 'Prints',
	'font'      => 'Small',
	'absolutey' => 1,
    });
    $this->label($label);
}

sub _init {
    my ($this) = @_;
    my %hash          = undef;
    my $protein       = $this->{'container'};
    my @bitmap        = undef;
    my $Config        = $this->{'config'};
    my $pix_per_bp    = $Config->transform->{'scalex'};
    my $bitmap_length = int($protein->length * $pix_per_bp);
    my $y             = 0;
    my $h             = 4;
    my $colour        = $Config->get($Config->script(), 'prints','col');
    my $caption       = "Prints";
    my $font          = "Small";
{'fraction_non_alphanumeric': 0.19308208569953536, 'fraction_numerical': 0.003097573567372225, 'mean_word_length': 2.6497175141242937, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 24, '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': '1198554', 'n_tokens_mistral': 755, 'n_tokens_neox': 718, 'n_words': 150}