<commit_before>var _ = require('underscore');
var jsyaml = require('js-yaml');
var queue = require('queue-async');

var Backbone = require('backbone');
var File = require('../models/file');
var Folder = require('../models/folder');

var cookie = require('../cookie');
var util = require('../util');
var ignore = require('ignore');

/*
 * placeholderValues {object} mapping of placeholders, ie {CURRENT_USER: 'sally'}
 * initialValue {string} default value possibly containing placeholder
 */
function replacePlaceholders (placeholderValues, initialValue) {
  var result = initialValue;
  if (result) {<commit_msg>Check for string before running String.replace<commit_after>var _ = require('underscore');
var jsyaml = require('js-yaml');
var queue = require('queue-async');

var Backbone = require('backbone');
var File = require('../models/file');
var Folder = require('../models/folder');

var cookie = require('../cookie');
var util = require('../util');
var ignore = require('ignore');

/*
 * placeholderValues {object} mapping of placeholders, ie {CURRENT_USER: 'sally'}
 * initialValue {string} default value possibly containing placeholder
 */
function replacePlaceholders (placeholderValues, initialValue) {
  var result = initialValue;
  if (result && typeof result === 'string') {
{'fraction_non_alphanumeric': 0.1582622187742436, 'fraction_numerical': 0.0, 'mean_word_length': 5.45, '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': '6852927', 'n_tokens_mistral': 348, 'n_tokens_neox': 345, 'n_words': 108}