<commit_before>/*global describe,it*/
'use strict';


global.hexo = require('./fake-hexo.js');

require('../index.js');

var expect = require('chai').expect,
  should = require('chai').should();

// jshint
should.should.exists;

if (typeof hexo !== 'undefined') {
  console.log('loading fake-hexo module');
}


describe('fake-hexo', function() {
  it('should be functional', function() {
    should.exist(hexo);
    hexo.extend.should.exists;
    hexo.extend.helper.should.exists;
    hexo.extend.helper.register.should.be.a.function;
    hexo.extend.helper.list.should.be.a.function;
    expect('hexo').to.exists;
  });
});


describe('hexo-plugin-multilanguage', function() {
  var helper = hexo.extend.helper;
<commit_msg>Rework test, hexo as var rather than global<commit_after>/*global describe,it*/
'use strict';

var hexo = require('./fake-hexo.js');

require('../index.js');

var expect = require('chai').expect,
  should = require('chai').should();

// jshint
should.should.exists;

if (typeof hexo !== 'undefined') {
  console.log('loading fake-hexo module');
}


describe('fake-hexo', function() {
  it('should be functional', function() {
    should.exist(hexo);
    hexo.extend.should.exists;
    hexo.extend.helper.should.exists;
    hexo.extend.helper.register.should.be.a.function;
    hexo.extend.helper.list.should.be.a.function;
    expect('hexo').to.exists;
  });
});


describe('hexo-plugin-multilanguage', function() {
  var helper = hexo.extend.helper;

{'fraction_non_alphanumeric': 0.18699186991869918, 'fraction_numerical': 0.0, 'mean_word_length': 4.040955631399317, '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': '7472381', 'n_tokens_mistral': 512, 'n_tokens_neox': 501, 'n_words': 84}