<commit_before>package Bio::EnsEMBL::DBSQL::ChromosomeStatsAdaptor;

use strict;
use vars qw(@ISA);
use Bio::EnsEMBL::DBSQL::BaseAdaptor;
use Bio::EnsEMBL::ChromosomeStats;

@ISA = qw(Bio::EnsEMBL::DBSQL::BaseAdaptor);


sub get_stats_per_chromosome_type
{

    my ($self,$chromosome)=@_;

    $self->throw("I need a chromosome") unless defined $chromosome;

    my $query="select chromosome_id,id,name,species_id,known_genes,unknown_genes,snps,length 
               from chromosome where chromosome_id='$chromosome'";

    my $sth = $self->db->prepare($query);
    my $res = $sth->execute();

    my ($chr_id,$id,$name,$species,$known_genes,$unknown_genes,$snps,$length);

    $sth->bind_columns(undef,\$chr_id,\$id,\$name,\$species,\$known_genes,\$unknown_genes,\$snps,\$length);

    my @density_array;

    while( $sth->fetch() ) {
	my $cs=Bio::EnsEMBL::ChromosomeStats->new();
	$cs->chromosome_id($chr_id);
	$cs->id($id);
	$cs->name($name);<commit_msg>changed method name<commit_after>package Bio::EnsEMBL::DBSQL::ChromosomeStatsAdaptor;

use strict;
use vars qw(@ISA);
use Bio::EnsEMBL::DBSQL::BaseAdaptor;
use Bio::EnsEMBL::ChromosomeStats;

@ISA = qw(Bio::EnsEMBL::DBSQL::BaseAdaptor);


sub get_stats_per_chromosome
{

    my ($self,$chromosome)=@_;

    $self->throw("I need a chromosome") unless defined $chromosome;

    my $query="select chromosome_id,id,name,species_id,known_genes,unknown_genes,snps,length 
               from chromosome where chromosome_id='$chromosome'";

    my $sth = $self->db->prepare($query);
    my $res = $sth->execute();

    my ($chr_id,$id,$name,$species,$known_genes,$unknown_genes,$snps,$length);

    $sth->bind_columns(undef,\$chr_id,\$id,\$name,\$species,\$known_genes,\$unknown_genes,\$snps,\$length);

    my @density_array;

    while( $sth->fetch() ) {
	my $cs=Bio::EnsEMBL::ChromosomeStats->new();
	$cs->chromosome_id($chr_id);
	$cs->id($id);
	$cs->name($name);
{'fraction_non_alphanumeric': 0.18883672404799165, 'fraction_numerical': 0.0, 'mean_word_length': 5.777385159010601, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 23, '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': '6032145', 'n_tokens_mistral': 805, 'n_tokens_neox': 712, 'n_words': 99}