<commit_before>local Fragment = require 'npge.model.Fragment'
local Sequence = require 'npge.model.Sequence'

describe("model.fragment", function()
    it("creates fragment", function()
        local s = Sequence("test_name", "ATGC")
        local f = Fragment(s, 0, 3, 1)
        assert.are.equal(f:seq(), s)
        assert.are.equal(f:start(), 0)
        assert.are.equal(f:stop(), 3)
        assert.are.equal(f:ori(), 1)
    end)
end)
<commit_msg>use require 'npge.model' in fragment_spec<commit_after>local model = require 'npge.model'

describe("model.fragment", function()
    it("creates fragment", function()
        local s = model.Sequence("test_name", "ATGC")
        local f = model.Fragment(s, 0, 3, 1)
        assert.are.equal(f:seq(), s)
        assert.are.equal(f:start(), 0)
        assert.are.equal(f:stop(), 3)
        assert.are.equal(f:ori(), 1)
    end)
end)

{'fraction_non_alphanumeric': 0.16685584562996594, 'fraction_numerical': 0.01362088535754824, 'mean_word_length': 3.121495327102804, 'pattern_counts': {'":': 0, '<': 3, '<?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': '5690622', 'n_tokens_mistral': 313, 'n_tokens_neox': 294, 'n_words': 66}