<commit_before>var test = require('tap').test
var path = require('path')
var mkdirp = require('mkdirp')
//var createClient = require('manta-client')
//var mpath = '~~/stor/multi-fs-testing'

require('./zz-cleanup.js')

test('setup', function(t) {
  for (var i = 0; i < 11; i++) {
    mkdirp.sync(path.resolve(__dirname, 'fixtures/' + i))
  }

  t.pass('ok')
  t.end()
})
/*
test('manta setup', function(t) {
  var client = createClient()
  var need = 0
  for (var i = 9; i < 12; i++) (function(i) {
    need++
    client.mkdirp(mpath + '/' + i, done)
  })(i)

  function done(er) {
    if (er)
      throw er
    if (--need === 0) {
      t.pass('made all dirs')
      t.end()
      client.close()
    }
  }
})
*/
<commit_msg>putting back manta setup<commit_after>var test = require('tap').test
var path = require('path')
var mkdirp = require('mkdirp')
//var createClient = require('manta-client')
//var mpath = '~~/stor/multi-fs-testing'

require('./zz-cleanup.js')

test('setup', function(t) {
  for (var i = 0; i < 11; i++) {
    mkdirp.sync(path.resolve(__dirname, 'fixtures/' + i))
  }

  t.pass('ok')
  t.end()
})

test('manta setup', function(t) {
  var client = createClient()
  var need = 0
  for (var i = 9; i < 12; i++) (function(i) {
    need++
    client.mkdirp(mpath + '/' + i, done)
  })(i)

  function done(er) {
    if (er)
      throw er
    if (--need === 0) {
      t.pass('made all dirs')
      t.end()
      client.close()
    }
  }
})

{'fraction_non_alphanumeric': 0.2085048010973937, 'fraction_numerical': 0.010973936899862825, 'mean_word_length': 2.731457800511509, 'pattern_counts': {'":': 0, '<': 7, '<?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': '717655', 'n_tokens_mistral': 591, 'n_tokens_neox': 560, 'n_words': 135}