<commit_before>
var fs = require('fs');
var os = require('os');

var BrigCore = null;
try {
	BrigCore = require('../build/Release/brig.node');
} catch(err) {}

if (!BrigCore) {

	var apiVer = process.versions.modules;
	var arch = process.arch;

	// Support ARM architecture
	if (arch == 'arm') {
		arch += 'v' + process.config.variables;
		if (os.endianness() == 'LE') {
			arch += 'l';
		} else {
			arch += 'b';
		}
	}

	if (!BrigCore) {
		try {
			// Try to use the last version
			BrigCore = require('../native/' + process.platform + '-' + arch + '-' + apiVer + '/brig.node');
		} catch(err) {
			throw new Error('Please use \'node-gyp rebuild\' to compile binary by yourself.');
		}
	}
}

module.exports = BrigCore;<commit_msg>Fixed a bug that incorrect arm version we get<commit_after>
var fs = require('fs');
var os = require('os');

var BrigCore = null;
try {
	BrigCore = require('../build/Release/brig.node');
} catch(err) {}

if (!BrigCore) {

	var apiVer = process.versions.modules;
	var arch = process.arch;

	// Support ARM architecture
	if (arch == 'arm') {
		arch += 'v' + process.config.variables.arm_version;
		if (os.endianness() == 'LE') {
			arch += 'l';
		} else {
			arch += 'b';
		}
	}

	if (!BrigCore) {
		try {
			// Try to use the last version
			BrigCore = require('../native/' + process.platform + '-' + arch + '-' + apiVer + '/brig.node');
		} catch(err) {
			throw new Error('Please use \'node-gyp rebuild\' to compile binary by yourself.');
		}
	}
}

module.exports = BrigCore;
{'fraction_non_alphanumeric': 0.1889920424403183, 'fraction_numerical': 0.0, 'mean_word_length': 3.056451612903226, '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': '1241659', 'n_tokens_mistral': 579, 'n_tokens_neox': 535, 'n_words': 143}