<commit_before>module.exports = ->
  # Project configuration
  @initConfig
    pkg: @file.readJSON 'package.json'

    # CoffeeScript compilation
    coffee:
      spec:
        options:
          bare: true
          transpile:
            presets: ['es2015']
        expand: true
        cwd: 'spec'
        src: ['**.coffee']
        dest: 'spec'
        ext: '.js'

    # Browser build of NoFlo
    noflo_browser:
      options:
        baseDir: './'
        webpack:
          externals:
            'repl': 'commonjs repl' # somewhere inside coffee-script
            'module': 'commonjs module' # somewhere inside coffee-script
            'child_process': 'commonjs child_process' # somewhere inside coffee-script
            'jison': 'commonjs jison'
            'should': 'commonjs should' # used by tests in octo
            'express': 'commonjs express' # used by tests in octo
            'highlight': 'commonjs highlight' # used by octo?
            'microflo-emscripten': 'commonjs microflo-emscripten' # optional?
            'acorn': 'commonjs acorn' # optional?
          module:
            rules: [
              test: /\.coffee$/
              use: ["coffee-loader"]
            ,
              test: /\.fbp$/
              use: ["fbp-loader"]
            ]
          resolve:
            extensions: [".coffee", ".js"]
          node:
            fs: "empty"
        ignores: [
          /bin\/coffee/
        ]
      main:
        files:
          'browser/noflo-runtime.js': ['entry.webpack.js']

    # Automated recompilation and testing when developing
    watch:
      files: ['spec/*.coffee', 'components/*.coffee']
      tasks: ['test']

    # BDD tests on Node.js
    mochaTest:
      nodejs:
        src: ['spec/*.coffee']
        options:<commit_msg>Make browser build as ES5<commit_after>module.exports = ->
  # Project configuration
  @initConfig
    pkg: @file.readJSON 'package.json'

    # CoffeeScript compilation
    coffee:
      spec:
        options:
          bare: true
          transpile:
            presets: ['es2015']
        expand: true
        cwd: 'spec'
        src: ['**.coffee']
        dest: 'spec'
        ext: '.js'

    # Browser build of NoFlo
    noflo_browser:
      options:
        baseDir: './'
        webpack:
          externals:
            'repl': 'commonjs repl' # somewhere inside coffee-script
            'module': 'commonjs module' # somewhere inside coffee-script
            'child_process': 'commonjs child_process' # somewhere inside coffee-script
            'jison': 'commonjs jison'
            'should': 'commonjs should' # used by tests in octo
            'express': 'commonjs express' # used by tests in octo
            'highlight': 'commonjs highlight' # used by octo?
            'microflo-emscripten': 'commonjs microflo-emscripten' # optional?
            'acorn': 'commonjs acorn' # optional?
          module:
            rules: [
              test: /noflo([\\]+|\/)lib([\\]+|\/)(.*)\.js$|noflo([\\]+|\/)components([\\]+|\/)(.*)\.js$|fbp-graph([\\]+|\/)lib([\\]+|\/)(.*)\.js$|noflo-runtime-([a-z]+)([\\]+|\/)(.*).js$/
              use: [
                loader: 'babel-loader'
                options:
                  presets: ['es2015']
              ]
            ,
              test: /\.coffee$/
              use: [
                loader: 'coffee-loader'
                options:
                  transpile:
                    presets: ['es2015']
              ]
            ,
              test: /\.fbp$/
              use: ["fbp-loader"]
            ]
          resolve:
            extensions: [".coffee", ".js"]
          node:
            fs: "empty"
        ignores: [
          /bin\/coffee/
        ]
      main:
        files:
          'browser/noflo-runtime.js': ['entry.webpack.js']

    # Automated recompilation and testing when developing
    watch:
      files: ['spec/*.coffee', 'components/*.coffee']
      tasks: ['test']

    # BDD tests on Node.js
    mochaTest:
      nodejs:
        src: ['spec/*.coffee']
        options:
{'fraction_non_alphanumeric': 0.13922488274500122, 'fraction_numerical': 0.004196494692668477, 'mean_word_length': 1.469226081657526, 'pattern_counts': {'":': 0, '<': 3, '<?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': '2590799', 'n_tokens_mistral': 1233, 'n_tokens_neox': 1169, 'n_words': 278}