<commit_before>#!/usr/bin/env perl
use strict;
use warnings;
use autodie;
use Getopt::Long;

#quick and dirty script to combine a list of assembly stats tab files into a simple csv file where each row is one strain


my ($files,$output) = prepare_inputs();


my @strains = sort { $a <=> $b } keys %{$files};


#get first file so we can determine the header
my $first = shift @strains;
my $top_header;
my $second_header;



open my $out,'>',$output;
process($first,$files->{$first},$out,1);


foreach my $name( @strains) {
    process($name,$files->{$name},$out);
}



close $out;


exit;
<commit_msg>compare with cmp instead of numeric..<commit_after>#!/usr/bin/env perl
use strict;
use warnings;
use autodie;
use Getopt::Long;

#quick and dirty script to combine a list of assembly stats tab files into a simple csv file where each row is one strain


my ($files,$output) = prepare_inputs();


my @strains = sort { $a cmp $b } keys %{$files};


#get first file so we can determine the header
my $first = shift @strains;
my $top_header;
my $second_header;



open my $out,'>',$output;
process($first,$files->{$first},$out,1);


foreach my $name( @strains) {
    process($name,$files->{$name},$out);
}



close $out;


exit;

{'fraction_non_alphanumeric': 0.14787581699346405, 'fraction_numerical': 0.0016339869281045752, 'mean_word_length': 4.518018018018018, 'pattern_counts': {'":': 0, '<': 4, '<?xml version=': 0, '>': 10, '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': '7240596', 'n_tokens_mistral': 431, 'n_tokens_neox': 405, 'n_words': 152}