<commit_before>#!/usr/bin/env perl
use strict;
use FindBin;
use lib "$FindBin::Bin/../lib";
require Sequenceretrieval;

if (@ARGV < 3) {
    die "Usage: 6.5-findsequences.pl fastafile sequencelist outfile\n";
}

my $fastafile = shift;
my $sequencelist = shift;
my $outfile = shift;

unless (-e $sequencelist) {
	die "File $sequencelist does not exist.\n";
}

open FH, "<", $sequencelist;
my @sequences = ();
while (my $line = readline FH) {
	chomp $line;
	push @sequences, $line;
}<commit_msg>fix usage message<commit_after>#!/usr/bin/env perl
use strict;
use FindBin;
use lib "$FindBin::Bin/../lib";
require Sequenceretrieval;

if (@ARGV < 3) {
    die "Usage: findsequences.pl fastafile sequencelist outfile\n";
}

my $fastafile = shift;
my $sequencelist = shift;
my $outfile = shift;

unless (-e $sequencelist) {
	die "File $sequencelist does not exist.\n";
}

open FH, "<", $sequencelist;
my @sequences = ();
while (my $line = readline FH) {
	chomp $line;
	push @sequences, $line;
}
{'fraction_non_alphanumeric': 0.16024340770791076, 'fraction_numerical': 0.004056795131845842, 'mean_word_length': 4.39344262295082, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 3, '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': '5793261', 'n_tokens_mistral': 398, 'n_tokens_neox': 367, 'n_words': 108}