<commit_before>process.env.NODE_ENV = process.env.NODE_ENV || 'development';

module.exports = function(grunt) {
    var EXPORT_NAME = 'Dable';
    var path = require('path');
    
    var mainWrapperTemplate = [
    '(function (module) {', '<%= src %>', '})(function (root) {',
        'return Object.defineProperty({}, \'exports\', {',
            'set: function (i) { root[\'' + EXPORT_NAME + '\'] = i; },',
            'get: function () { return root[\'' + EXPORT_NAME + '\']; }',
        '});',
    '}(this));\n'].join('\n');

    var requireStubs = [
        'var $$modules = {}',
        'var defineModule = function (name, exporter) { $$modules[name] = { exporter: exporter, ready: false }; };',
        'var require = function (name) {',
            'var m = $$modules[name];',<commit_msg>define AMD at build time<commit_after>process.env.NODE_ENV = process.env.NODE_ENV || 'development';

module.exports = function(grunt) {
    var EXPORT_NAME = 'Dable';
    var path = require('path');
    
    var mainWrapperTemplate = [
    '(function (module) {', '<%= src %>', '})(function (root) {',
        'var defineAMD = function (m) {',
            'if (typeof define === \'function\' && define.amd) {',
                'define([], function () { return m; });',
            '}',
        '};',
        'return Object.defineProperty({}, \'exports\', {',
            'set: function (i) { root[\'' + EXPORT_NAME + '\'] = i; defineAMD(i); },',
            'get: function () { return root[\'' + EXPORT_NAME + '\']; }',
        '});',
    '}(this));\n'].join('\n');

    var requireStubs = [
        'var $$modules = {}',
        'var defineModule = function (name, exporter) { $$modules[name] = { exporter: exporter, ready: false }; };',
        'var require = function (name) {',
            'var m = $$modules[name];',
{'fraction_non_alphanumeric': 0.22155030236393622, 'fraction_numerical': 0.0, 'mean_word_length': 2.5271317829457365, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, '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': '7075617', 'n_tokens_mistral': 572, 'n_tokens_neox': 570, 'n_words': 125}