<commit_before>var test = require('test');

test.assert(require('dot-slash') === 10, 'main with "./"');
test.assert(require('js-ext') === 20, 'main with ".js" extension');
test.assert(require('no-ext') === 30, 'main with no extension');

test.print('DONE', 'info');<commit_msg>Add test for requiring a package's main module without .js extension<commit_after>var test = require('test');

test.assert(require('dot-slash') === 10, 'main with "./"');
test.assert(require('js-ext') === 20, 'main with ".js" extension');
test.assert(require('no-ext') === 30, 'main with no extension');

test.assert(require('js-ext') === require("js-ext/a"), 'can require "main" without extension');

test.print('DONE', 'info');
{'fraction_non_alphanumeric': 0.23371104815864022, 'fraction_numerical': 0.0169971671388102, 'mean_word_length': 6.141414141414141, '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': '7180422', 'n_tokens_mistral': 236, 'n_tokens_neox': 222, 'n_words': 58}