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

const { utils } = require('lamassu-coins')

const common = require('./common')

module.exports = {setup}

const coinRec = utils.getCryptoCurrency('XMR')

function setup (dataDir) {
  common.firewall([coinRec.defaultPort])
  const auth = `lamassuserver:${common.randomPass()}`
  const config = buildConfig(auth)
  common.writeFile(path.resolve(dataDir, coinRec.configFile), config)
  const cmd = `/usr/local/bin/${coinRec.daemon} --data-dir ${dataDir} --config-file ${dataDir}/${coinRec.configFile}`
  const walletCmd = `/usr/local/bin/${coinRec.wallet} --stagenet --rpc-login ${auth} --daemon-host 127.0.0.1 --daemon-port 18081 --trusted-daemon --daemon-login ${auth} --rpc-bind-port 18082 --wallet-dir ${dataDir}/wallets`
  common.writeSupervisorConfig(coinRec, cmd, walletCmd)
}

function buildConfig (auth) {
  return `rpc-login=${auth}
stagenet=0
restricted-rpc=1
db-sync-mode=safe
out-peers=20
in-peers=20
prune-blockchain=1
`
}
<commit_msg>fix: xmr daemon and wallet config flags<commit_after>const path = require('path')

const { utils } = require('lamassu-coins')

const common = require('./common')

module.exports = {setup}

const coinRec = utils.getCryptoCurrency('XMR')

function setup (dataDir) {
  common.firewall([coinRec.defaultPort])
  const auth = `lamassuserver:${common.randomPass()}`
  const config = buildConfig(auth)
  common.writeFile(path.resolve(dataDir, coinRec.configFile), config)
  const cmd = `/usr/local/bin/${coinRec.daemon} --no-zmq --data-dir ${dataDir} --config-file ${dataDir}/${coinRec.configFile}`
  const walletCmd = `/usr/local/bin/${coinRec.wallet} --rpc-login ${auth} --daemon-host 127.0.0.1 --daemon-port 18081 --trusted-daemon --daemon-login ${auth} --rpc-bind-port 18082 --wallet-dir ${dataDir}/wallets`
  common.writeSupervisorConfig(coinRec, cmd, walletCmd)
}

function buildConfig (auth) {
  return `rpc-login=${auth}
stagenet=0
restricted-rpc=1
db-sync-mode=safe
out-peers=20
in-peers=20
prune-blockchain=1
`
}

{'fraction_non_alphanumeric': 0.1694915254237288, 'fraction_numerical': 0.022931206380857428, 'mean_word_length': 4.834302325581396, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 2, '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': '4086834', 'n_tokens_mistral': 731, 'n_tokens_neox': 718, 'n_words': 136}