<commit_before>const untildify = require('untildify')
const path = require('path')

const DEVMODE = !!(process.env['SCIENCEFAIR_DEVMODE'])

const dataroot = untildify(DEVMODE ? '~/.sciencefair_dev' : '~/.sciencefair')

module.exports = {
  // paths
  DATAROOT: dataroot,
  DATASOURCES_PATH: path.join(dataroot, 'datasources'),
  COLLECTION_PATH: path.join(dataroot, 'collection'),
  // colours
  BLUE: 'rgb(111, 174, 193)',
  YELLOW: 'rgb(202, 172, 77)',
  YELLOWFADE: 'rgba(202, 172, 77, 0.8)',<commit_msg>Store data in user documents directory (fixes #90)<commit_after>const path = require('path')

const { app } = require('electron').remote

const DEVMODE = !!(process.env['SCIENCEFAIR_DEVMODE'])

const docs = app.getPath('documents')
const dataroot = path.join(docs, DEVMODE ? 'sciencefair_dev' : 'sciencefair')

module.exports = {
  // paths
  DATAROOT: dataroot,
  DATASOURCES_PATH: path.join(dataroot, 'datasources'),
  COLLECTION_PATH: path.join(dataroot, 'collection'),
  // colours
  BLUE: 'rgb(111, 174, 193)',
  YELLOW: 'rgb(202, 172, 77)',
  YELLOWFADE: 'rgba(202, 172, 77, 0.8)',
{'fraction_non_alphanumeric': 0.170018281535649, 'fraction_numerical': 0.051188299817184646, 'mean_word_length': 5.329479768786127, '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': '7120160', 'n_tokens_mistral': 476, 'n_tokens_neox': 401, 'n_words': 86}