<commit_before>{CaffeineScript} = Neptune
{log, formattedInspect} = Neptune.Art.StandardLib
{Parser} = CaffeineScript

{parseTests, parseTestSuite, illegalSyntaxTests} = require '../Helper'

module.exports = suite: parseTestSuite {
  sourceFiles:["source/CaffeineScript/foo"]
  # sourceRoot: "."
  },

  npm:
    basic:
      "&BabelBridge":   "require('babel-bridge');"
      "&babelBridge":   "require('babel-bridge');"
      "&babel_bridge":  "require('babel-bridge');"
      "&babel-bridge":  "require('babel-bridge');"

    pathed:
      "&ArtStandardLib/Types":  "require('art-standard-lib/Types');"

    asValue:
      "foo &BabelBridge":       "foo(require('babel-bridge'));"
      "&BabelBridge.Parser":    "require('babel-bridge').Parser;"

  local:
    basic:
      "&Lib":                   "require('./Lib');"
      "&Source":                "require('../../source');"

    reservedWords:
      "&package":               "require('../../package');"

    pathed:
      "&Perf/Perfs":            "require('../../perf/Perfs');"

    asValue:
      "foo &Perf/Perfs":        "foo(require('../../perf/Perfs'));"
      "&Perf/Perfs.foo":        "require('../../perf/Perfs').foo;"

  regressions:
    """
    import &ArtStandardLib
    &BabelBridge
    """: "require('babel-bridge');"

    """
    import &ArtStandardLib
    &BabelBridge
    foo
    """: "
      let foo;
      ({foo} = Caf.import([\"foo\"], [require('art-standard-lib'), global]));require('babel-bridge');
      foo;
      "

    "-> &Lib": "(function() {return require('./Lib');});"

    """
    &BabelBridge<commit_msg>TEST - updated to latest CaffeineMc module resolution<commit_after>{CaffeineScript} = Neptune
{log, formattedInspect} = Neptune.Art.StandardLib
{Parser} = CaffeineScript

{parseTests, parseTestSuite, illegalSyntaxTests} = require '../Helper'

module.exports = suite: parseTestSuite {
  sourceFiles:["source/CaffeineScript/foo"]
  # sourceRoot: "."
  },

  npm:
    basic:
      "&BabelBridge":   "require('babel-bridge');"
      "&babelBridge":   "require('babel-bridge');"
      "&babel_bridge":  "require('babel-bridge');"
      "&babel-bridge":  "require('babel-bridge');"

    pathed:
      "&ArtStandardLib/Types":  "require('art-standard-lib/Types');"

    asValue:
      "foo &BabelBridge":       "foo(require('babel-bridge'));"
      "&BabelBridge.Parser":    "require('babel-bridge').Parser;"

  local:
    basic:
      "&Lib":                   "require('./Lib');"
      "&Source":                "require('../');"

    reservedWords:
      "&package":               "require('../../package');"

    pathed:
      "&Perf/Perfs":            "require('../../perf/Perfs');"

    asValue:
      "foo &Perf/Perfs":        "foo(require('../../perf/Perfs'));"
      "&Perf/Perfs.foo":        "require('../../perf/Perfs').foo;"

  regressions:
    """
    import &ArtStandardLib
    &BabelBridge
    """: "require('babel-bridge');"

    """
    import &ArtStandardLib
    &BabelBridge
    foo
    """: "
      let foo;
      ({foo} = Caf.import([\"foo\"], [require('art-standard-lib'), global]));require('babel-bridge');
      foo;
      "

    "-> &Lib": "(function() {return require('./Lib');});"

    """
    &BabelBridge
{'fraction_non_alphanumeric': 0.2104936355169202, 'fraction_numerical': 0.0, 'mean_word_length': 2.517467248908297, 'pattern_counts': {'":': 32, '<': 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': '4325119', 'n_tokens_mistral': 1098, 'n_tokens_neox': 1025, 'n_words': 155}