<commit_before>'use strict';

var Converter = require('..');
var fs = require('fs');

describe('Test from Mestrec Jcamp generator', function () {
git che
    it.only("NMR 1H spectrum", function () {

        var result = Converter.convert(fs.readFileSync(__dirname + "/data/mestrec/jcamp-256.jdx").toString(),
            {xy:true}
        );
        var data=result.spectra[0].data[0];
        console.log(data.x.length, Math.max(...data.x), Math.min(...data.x));
        console.log(data.y.length, Math.max(...data.y), Math.min(...data.y));
        result.ntuples.length.should.eql(3);
        result.twoD.should.be.true();
        result.contourLines.should.be.obj;

    });
});<commit_msg>fix test<commit_after>'use strict';

var Converter = require('..');
var fs = require('fs');

describe('Test from Mestrec Jcamp generator', function () {

    it("NMR 1H spectrum", function () {

        var result = Converter.convert(fs.readFileSync(__dirname + "/data/mestrec/jcamp-256.jdx").toString(),
            {xy:true}
        );
        var data=result.spectra[0].data[0];
        data.x.length.should.eql(256);
        data.y.length.should.eql(256);
        console.log(data.x.length, Math.max(...data.x), Math.min(...data.x));
        console.log(data.y.length, Math.max(...data.y), Math.min(...data.y));


    });
});
{'fraction_non_alphanumeric': 0.19969742813918306, 'fraction_numerical': 0.014372163388804841, 'mean_word_length': 2.695530726256983, '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': '6772765', 'n_tokens_mistral': 467, 'n_tokens_neox': 446, 'n_words': 70}