<commit_before>var _curry1 = require('./internal/_curry1');


/**
 * Accepts a function `fn` and returns a function that guards invocation of `fn` such that
 * `fn` can only ever be called once, no matter how many times the returned function is
 * invoked.
 *
 * @func
 * @memberOf R
 * @category Function
 * @sig (a... -> b) -> (a... -> b)
 * @param {Function} fn The function to wrap in a call-only-once wrapper.
 * @return {Function} The wrapped function.<commit_msg>once/docs: mention that first result is returned later<commit_after>var _curry1 = require('./internal/_curry1');


/**
 * Accepts a function `fn` and returns a function that guards invocation of `fn` such that
 * `fn` can only ever be called once, no matter how many times the returned function is
 * invoked. The first value calculated is returned in subsequent invocations.
 *
 * @func
 * @memberOf R
 * @category Function
 * @sig (a... -> b) -> (a... -> b)
 * @param {Function} fn The function to wrap in a call-only-once wrapper.
 * @return {Function} The wrapped function.
{'fraction_non_alphanumeric': 0.12320916905444126, 'fraction_numerical': 0.0038204393505253103, 'mean_word_length': 3.576419213973799, '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': '5120672', 'n_tokens_mistral': 302, 'n_tokens_neox': 296, 'n_words': 137}