<commit_before>'use strict'

const query = `
  match (address:Address {id: {address}})
  with address
  match (address)-[outputs:Outputs]-(outputsIndex)-[pointer:Unspent]-(transaction)
  where outputs.id={currency} or outputs.default
  return collect(transaction.id + '::' + pointer.id) as transactions
`

module.exports = {
  string: query.replace(/\n/g, '').trim(),
  parser(result) {
    return {
      transactions: result.get('transactions')
    }
  }
}<commit_msg>feat(queries): added support for multiple currencies per address<commit_after>'use strict'

const query = `
  match (address:Address {id: {address}})
  with address, {currencies} as currencies
  match (address)-[index:Outputs]-(outputsIndex)-[pointer:Unspent]-(transaction)
  where index.id in currencies or index.default and length(currencies)=0
  return collect(transaction.id + '::' + pointer.id) as transactions
`

module.exports = {
  string: query.replace(/\n/g, '').trim(),
  parser(result) {
    return {
      transactions: result.get('transactions')
    }
  }
}
{'fraction_non_alphanumeric': 0.15369836695485112, 'fraction_numerical': 0.0009606147934678194, 'mean_word_length': 4.455497382198953, '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': '2734198', 'n_tokens_mistral': 329, 'n_tokens_neox': 321, 'n_words': 72}