<commit_before>const fs = require('fs');

let xlua = null;
exports.getXlua = function getXlua() {
  return xlua;
};

exports.initXlua = function initXlua(xlua_) {
  const Analyser = require('./analyser');
  const ctx = fs.readFileSync('./electron-src/editor-extensions/lua/apis/xluaApi.lua', 'utf8');
  xlua = new Analyser(ctx);
};<commit_msg>fixed intellisense in dist mode<commit_after>const fs = require('fs');
const path = require('path');

let xlua = null;
exports.getXlua = function getXlua() {
  return xlua;
};

exports.initXlua = function initXlua(xlua_) {
  const Analyser = require('./analyser');
  const ctx = fs.readFileSync(path.join(__dirname, 'apis/xluaApi.lua'), 'utf8');
  xlua = new Analyser(ctx);
};
{'fraction_non_alphanumeric': 0.1627260083449235, 'fraction_numerical': 0.0027816411682892906, 'mean_word_length': 5.0, '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': '7047512', 'n_tokens_mistral': 254, 'n_tokens_neox': 254, 'n_words': 56}