<commit_before>
// Update a prepaid document, and the denormalized data on user documents
// Limits the properties allowed to be set, but does not perform validation on them. Use carefully!

// Usage
// ---------------
// In mongo shell
//
// > db.loadServerScripts();
// > updatePrepaid('<prepaid id string>', { endDate: "2017-07-01T00:00:00.000Z", maxRedeemers: 10, creator: '56141d0a7291607006ad8412' });

var updatePrepaid = function updatePrepaid(stringID, originalUpdate) {
  try {
    load('./bower_components/lodash/dist/lodash.js')<commit_msg>Update updatePrepaid lodash file path<commit_after>
// Update a prepaid document, and the denormalized data on user documents
// Limits the properties allowed to be set, but does not perform validation on them. Use carefully!

// Usage
// ---------------
// In mongo shell
//
// > db.loadServerScripts();
// > updatePrepaid('<prepaid id string>', { endDate: "2017-07-01T00:00:00.000Z", maxRedeemers: 10, creator: '56141d0a7291607006ad8412' });

var updatePrepaid = function updatePrepaid(stringID, originalUpdate) {
  try {
    load('./node_modules/lodash/dist/lodash.js')
{'fraction_non_alphanumeric': 0.1494661921708185, 'fraction_numerical': 0.0693950177935943, 'mean_word_length': 3.828326180257511, 'pattern_counts': {'":': 0, '<': 5, '<?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': '5512233', 'n_tokens_mistral': 401, 'n_tokens_neox': 350, 'n_words': 101}