<commit_before>/* global sinon */
var R = require('ramda')
var fa = require('fluent-arguments')
var ARG_RETURN_VAL = 'returnVal'
var ARG_RETURN_THIS = 'returnThis'

var setMethodToStub = R.curry(function (object, methodName) {
  object[ methodName ] = sinon.stub()
})

function configureStub (object, params) {
  if (params.hasOwnProperty(ARG_RETURN_THIS)) {<commit_msg>fix(Dependencies): Import sinon instead of relying on the global symbol<commit_after>var R = require('ramda')
var fa = require('fluent-arguments')
var sinon = require('sinon')
var ARG_RETURN_VAL = 'returnVal'
var ARG_RETURN_THIS = 'returnThis'

var setMethodToStub = R.curry(function (object, methodName) {
  object[ methodName ] = sinon.stub()
})

function configureStub (object, params) {
  if (params.hasOwnProperty(ARG_RETURN_THIS)) {
{'fraction_non_alphanumeric': 0.12623762376237624, 'fraction_numerical': 0.0, 'mean_word_length': 6.223214285714286, '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': '3531971', 'n_tokens_mistral': 268, 'n_tokens_neox': 269, 'n_words': 67}