<commit_before>// Wrapper module unoconv, convert supported office files to pdf
// unoconv must be present on system

var exec = require('child_process').exec;

module.exports = {
  generatePdf: function(filename, next) {
    exec('unoconv -f pdf ' + filename, function (error, stdout, stderr) {
      if (error) return next(error);
      return next(null, 'pdf of ' + filename + ' has been successfully generated.' );
    });
  }
};<commit_msg>escaping fix<commit_after>// Wrapper module unoconv, convert supported office files to pdf
// unoconv must be present on system

var exec = require('child_process').exec;

module.exports = {
  generatePdf: function(filename, next) {
    exec('unoconv -f pdf "' + filename +'"', function (error, stdout, stderr) {
      if (error) return next(error);
      return next(null, 'pdf of ' + filename + ' has been successfully generated.' );
    });
  }
};
{'fraction_non_alphanumeric': 0.13072625698324022, 'fraction_numerical': 0.0, 'mean_word_length': 3.740740740740741, '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': '6040709', 'n_tokens_mistral': 266, 'n_tokens_neox': 264, 'n_words': 89}