<commit_before>var tape = require("tape"),
    gridding = require("../");

tape(".prefix() should return the default var prefix value", function(test) {
  var grid = gridding.gridding();
  test.equal(grid.prefix(), "");
  test.end();
});

tape(".prefix('_') has changed and should return the right prefix value", function(test) {
  var grid = gridding.gridding().prefix("_");
  test.equal(grid.prefix(), "_");
  test.end();
});

tape(".prefix('_') has changed and should return the right prefix value", function(test) {
  var grid = gridding.gridding().prefix("__").mode("grid");
  test.equal(typeof grid([1, 2, 3])[0]["x"], "undefined");
  test.equal(typeof grid([1, 2, 3])[0]["__x"], "number");
  test.end();
});<commit_msg>More prefix tests<commit_after>var tape = require("tape"),
    gridding = require("../");

tape(".prefix() should return the default var prefix value", function(test) {
  var grid = gridding.gridding();
  test.equal(grid.prefix(), "");
  test.end();
});

tape(".prefix('_') has changed and should return the right prefix value", function(test) {
  var grid = gridding.gridding().prefix("_");
  test.equal(grid.prefix(), "_");
  test.end();
});

tape(".prefix('_') has changed and should return the right prefix value", function(test) {
  var grid = gridding.gridding().prefix("__").mode("grid");
  test.equal(typeof grid([1, 2, 3])[0]["x"], "undefined");
  test.equal(typeof grid([1, 2, 3])[0]["__x"], "number");

  var grid = gridding.gridding().prefix("").mode("grid");
  test.equal(typeof grid([1, 2, 3])[0]["x"], "number");
  test.equal(typeof grid([1, 2, 3])[0]["__x"], "undefined");

  var grid = gridding.gridding().prefix("_").mode("grid");
  test.equal(typeof grid([1, 2, 3])[0]["x"], "undefined");
  test.equal(typeof grid([1, 2, 3])[0]["__x"], "undefined");
  test.equal(typeof grid([1, 2, 3])[0]["_x"], "number");

  test.end();
});

tape(".prefix() should work with all modes", function(test) {
  var grid = gridding.gridding().prefix("");

  grid.modes().forEach(function(mode) {
    grid.mode(mode);
    test.equal(typeof grid([1, 2, 3])[0]["x"], "number");
  });

   test.end();
});
{'fraction_non_alphanumeric': 0.2391713747645951, 'fraction_numerical': 0.018832391713747645, 'mean_word_length': 4.985915492957746, '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': '3700039', 'n_tokens_mistral': 744, 'n_tokens_neox': 719, 'n_words': 171}