<commit_before>/**
 * @name Balance Operations
 * @description This module exposes functions
 *              related to the `/balance/operations` path.
 *
 * @module balanceOperations
 **/

import { cond, has, T, curry, both } from 'ramda'

import routes from '../routes'
import request from '../request'

const findOne = curry((opts, body) =>
  request.get(opts, routes.balanceOperations.details(body.id), {})
)

const findAll = curry((opts, pagination) =>
  request.get(opts, routes.balanceOperations.base, pagination || {})
)

const findRecipients = curry((opts, body) =><commit_msg>balanceOperations: refactor pagination parameter<commit_after>/**
 * @name Balance Operations
 * @description This module exposes functions
 *              related to the `/balance/operations` path.
 *
 * @module balanceOperations
 **/

import { cond, has, T, curry, both } from 'ramda'

import routes from '../routes'
import request from '../request'

const findOne = curry((opts, body) =>
  request.get(opts, routes.balanceOperations.details(body.id), {})
)

const findAll = curry((opts, body) =>
  request.get(opts, routes.balanceOperations.base, body || {})
)

const findRecipients = curry((opts, body) =>
{'fraction_non_alphanumeric': 0.14476987447698744, 'fraction_numerical': 0.0, 'mean_word_length': 4.2, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 9, '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': '1061025', 'n_tokens_mistral': 352, 'n_tokens_neox': 350, 'n_words': 101}