<commit_before>import envPaths from 'env-paths';
import _debug from 'debug';
import { join } from './utils/path';
import getStaging from './utils/get-staging';
import { reporter } from './reporter';

import { Env } from './types';

const paths = envPaths('vba-blocks', { suffix: '' });

const cache = paths.cache;
const root = join(__dirname, '../');

const env: Env = {
  isWindows: process.platform === 'win32',
  cwd: process.cwd(),
  values: process.env,

  ...paths, // data, config, cache, log, temp
  addins: join(root, 'addins/build'),
  scripts: join(root, 'run-scripts'),
  bin: join(root, 'bin'),
  registry: join(cache, 'registry'),
  packages: join(cache, 'packages'),
  sources: join(cache, 'sources'),
  staging: getStaging(cache),

  reporter,
  debug: id => _debug(id),
  silent: false
};

export default env;<commit_msg>Move staging to temp directory<commit_after>import envPaths from 'env-paths';
import _debug from 'debug';
import { join } from './utils/path';
import getStaging from './utils/get-staging';
import { reporter } from './reporter';

import { Env } from './types';

const paths = envPaths('vba-blocks', { suffix: '' });

const cache = paths.cache;
const root = join(__dirname, '../');

const env: Env = {
  isWindows: process.platform === 'win32',
  cwd: process.cwd(),
  values: process.env,

  ...paths, // data, config, cache, log, temp
  addins: join(root, 'addins/build'),
  scripts: join(root, 'run-scripts'),
  bin: join(root, 'bin'),
  registry: join(cache, 'registry'),
  packages: join(cache, 'packages'),
  sources: join(cache, 'sources'),
  staging: getStaging(paths.temp),

  reporter,
  debug: id => _debug(id),
  silent: false
};

export default env;
{'fraction_non_alphanumeric': 0.18080094228504123, 'fraction_numerical': 0.002355712603062426, 'mean_word_length': 4.243827160493828, 'pattern_counts': {'":': 0, '<': 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': '3453029', 'n_tokens_mistral': 558, 'n_tokens_neox': 553, 'n_words': 161}