<commit_before>var tape = require('tape')
var memdb = require('memdb')
var os = require('os')
var path = require('path')
var fs = require('fs')
var mkdirp = require('mkdirp')
var hyperdrive = require('../')

tape('select file', function (t) {
  var drive = hyperdrive(memdb())
  var driveClone = hyperdrive(memdb())

  var archive = drive.add('.')
  archive.appendFile(__filename, 'test.js', function (err) {
    t.error(err, 'no error')
    archive.finalize(function (err) {
      t.error(err, 'no error')
      var tmp = path.join(os.tmpdir(), 'hyperdrive-' + process.pid + '-' + Date.now())<commit_msg>remove unused dep in test<commit_after>var tape = require('tape')
var memdb = require('memdb')
var os = require('os')
var path = require('path')
var fs = require('fs')
var hyperdrive = require('../')

tape('select file', function (t) {
  var drive = hyperdrive(memdb())
  var driveClone = hyperdrive(memdb())

  var archive = drive.add('.')
  archive.appendFile(__filename, 'test.js', function (err) {
    t.error(err, 'no error')
    archive.finalize(function (err) {
      t.error(err, 'no error')
      var tmp = path.join(os.tmpdir(), 'hyperdrive-' + process.pid + '-' + Date.now())
{'fraction_non_alphanumeric': 0.1855583543240974, 'fraction_numerical': 0.0, 'mean_word_length': 4.16017316017316, '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': '1022717', 'n_tokens_mistral': 401, 'n_tokens_neox': 399, 'n_words': 104}