<commit_before>#!/usr/bin/env lua

-- alnbox, alignment viewer based on the curses library
-- Copyright (C) 2015 <NAME>
-- See the LICENSE file for terms of use

local alnbox = require 'alnbox'

local fasta_fname = assert(arg[1])
local fasta_f = io.open(fasta_fname, 'r')
local aln = alnbox.readFasta(fasta_f)
fasta_f:close()
local parameters = alnbox.alignmentParameters(aln)
alnbox.alnbox(parameters)<commit_msg>show-fasta.lua: load luacov when testing<commit_after>#!/usr/bin/env lua

-- alnbox, alignment viewer based on the curses library
-- Copyright (C) 2015 <NAME>
-- See the LICENSE file for terms of use

if os.getenv('LOAD_LUACOV') then
    require 'luacov'
end

local alnbox = require 'alnbox'

local fasta_fname = assert(arg[1])
local fasta_f = io.open(fasta_fname, 'r')
local aln = alnbox.readFasta(fasta_f)
fasta_f:close()
local parameters = alnbox.alignmentParameters(aln)
alnbox.alnbox(parameters)
{'fraction_non_alphanumeric': 0.11597374179431072, 'fraction_numerical': 0.010940919037199124, 'mean_word_length': 5.224489795918367, 'pattern_counts': {'":': 0, '<': 5, '<?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': '7450073', 'n_tokens_mistral': 356, 'n_tokens_neox': 336, 'n_words': 91}