<commit_before>
module.exports = require('bindings')({
  compiled: 'dist',
  try: [
    
    // first try binaries in ./build folder, prefer debug builds
    [ 'module_root', 'build', 'Debug',    'bindings' ],
    [ 'module_root', 'build', 'Release',  'bindings' ],

    // finally fallback to a dummy javascript implementation
    [ 'module_root', 'compiled', 'dummy.js' ],
  ]
});

// mixin LED SDK constants...
var constants = require(__dirname+'/dist/constants');
Object.getOwnPropertyNames(constants).forEach(function (key) {
  module.exports[key] = constants[key];
});

// mixin keynames...
var keynames = require(__dirname+'/dist/keyname');
Object.getOwnPropertyNames(keynames).forEach(function (key) {
  module.exports[key] = keynames[key];
});<commit_msg>Updated index to safely combine paths.<commit_after>var path = require('path');

module.exports = require('bindings')({
  compiled: 'dist',
  try: [
    
    // first try binaries in ./build folder, prefer debug builds
    [ 'module_root', 'build', 'Debug',    'bindings' ],
    [ 'module_root', 'build', 'Release',  'bindings' ],

    // finally fallback to a dummy javascript implementation
    [ 'module_root', 'compiled', 'dummy.js' ],
  ]
});

// mixin LED SDK constants...
var constants = require(path.join(__dirname, 'dist', 'constants'));
Object.getOwnPropertyNames(constants).forEach(function (key) {
  module.exports[key] = constants[key];
});

// mixin keynames...
var keynames = require(path.join(__dirname, 'dist', 'keyname'));
Object.getOwnPropertyNames(keynames).forEach(function (key) {
  module.exports[key] = keynames[key];
});
{'fraction_non_alphanumeric': 0.17339962709757614, 'fraction_numerical': 0.0, 'mean_word_length': 4.348837209302325, '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': '3881277', 'n_tokens_mistral': 502, 'n_tokens_neox': 501, 'n_words': 117}