<commit_before>import rc from 'rc'
import path from 'path'
import fs from 'fs'
import mkdirp from 'mkdirp'
import untildify from 'untildify'

const conf = rc('tickbin', {
  local: '~/.tickbin/data'
})

conf.local = untildify(conf.local)
conf.db = path.join(conf.local, 'data')

if (!fs.existsSync(conf.local)) {
  mkdirp.sync(conf.local)
}

export default conf
<commit_msg>Hot Fix: appening data directory twice for default path<commit_after>import rc from 'rc'
import path from 'path'
import fs from 'fs'
import mkdirp from 'mkdirp'
import untildify from 'untildify'

const conf = rc('tickbin', {
  local: '~/.tickbin'
})

conf.local = untildify(conf.local)
conf.db = path.join(conf.local, 'data')

if (!fs.existsSync(conf.local)) {
  mkdirp.sync(conf.local)
}

export default conf

{'fraction_non_alphanumeric': 0.140485312899106, 'fraction_numerical': 0.0, 'mean_word_length': 4.850746268656716, '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': '1299632', 'n_tokens_mistral': 287, 'n_tokens_neox': 282, 'n_words': 80}