<commit_before>[
	'bson/binary_parser',
	
	'commands/base_command', 'commands/db_command', 'commands/delete_command',
	'commands/get_more_command', 'commands/insert_command', 'commands/kill_cursor_command',
	'commands/query_command', 'commands/update_command',
	
	'responses/mongo_reply',
	
	'admin', 'collection', 'connection', 'cursor', 'db',
	
	'goog/math/integer', 'goog/math/long', 'crypto/md5',
	'gridfs/chunk', 'gridfs/gridstore'
].forEach(function(path){
	var module = require('./' + path);
	for (var i in module)
		exports[i] = module[i];
});

// Add both the BSON Pure classes and the native ones
var BSONPure = exports.BSONPure = require('./bson/bson');
var BSONNative = exports.BSONNative = require('../../external-libs/bson/bson');<commit_msg>Added try catch to ensure driver works without native bson parser<commit_after>var sys = require('sys')

// Add both the BSON Pure classes and the native ones
var BSONPure = exports.BSONPure = require('./bson/bson');
var BSONNative = null
try {
  BSONNative = exports.BSONNative = require('../../external-libs/bson/bson');
} catch(err) {
  sys.puts("native library not built")
}

[
	'bson/binary_parser',
	
	'commands/base_command', 'commands/db_command', 'commands/delete_command',
	'commands/get_more_command', 'commands/insert_command', 'commands/kill_cursor_command',
	'commands/query_command', 'commands/update_command',
	
	'responses/mongo_reply',
	
	'admin', 'collection', 'connection', 'cursor', 'db',
	
	'goog/math/integer', 'goog/math/long', 'crypto/md5',
	'gridfs/chunk', 'gridfs/gridstore'
].forEach(function(path){
	var module = require('./' + path);
	for (var i in module)
		exports[i] = module[i];
});
{'fraction_non_alphanumeric': 0.1728468899521531, 'fraction_numerical': 0.0011961722488038277, 'mean_word_length': 5.2894736842105265, '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': '7350593', 'n_tokens_mistral': 582, 'n_tokens_neox': 554, 'n_words': 121}