<commit_before>'use strict'

process.env.NODE_ENV = 'standalone'
if (!process.env.DEBUG) process.env.DEBUG = '*'

process.env.COZY_FIELDS = '{}'

const filename = process.argv[2] || 'index.js'

// assign default value of replay to bloody which cancels it
process.env.REPLAY = process.env.REPLAY ? process.env.REPLAY : 'bloody'
require('replay')

require(require('path').resolve(filename))<commit_msg>fix: regression in standalone mode for the folder path<commit_after>'use strict'

process.env.NODE_ENV = 'standalone'
if (!process.env.DEBUG) process.env.DEBUG = '*'

process.env.COZY_FIELDS = JSON.stringify({
  folder_to_save: '.'
})

const filename = process.argv[2] || 'index.js'

// assign default value of replay to bloody which cancels it
process.env.REPLAY = process.env.REPLAY ? process.env.REPLAY : 'bloody'
require('replay')

require(require('path').resolve(filename))
{'fraction_non_alphanumeric': 0.15034168564920272, 'fraction_numerical': 0.002277904328018223, 'mean_word_length': 5.2785714285714285, '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': '2721006', 'n_tokens_mistral': 299, 'n_tokens_neox': 290, 'n_words': 65}