<commit_before>/**
 * Forked from https://github.com/oschrenk/node-pdflatex/
 */

var util = require('util');
var path = require('path');
var fs = require('fs');
var exec = require('child_process').exec;

/*
 PDFlatex class
*/
// constructor
function PDFlatex(inputPath) {
  // default settings
  this.outputDirectory = __server + '_texFiles';
  this.inputPath = inputPath;
  this.filename = inputPath.split('/').pop().split('.')[0];
  //console.log(this.filename);
};

PDFlatex.prototype.outputDir = function(path) {
  this.outputDirectory = path;
  return this;
};

PDFlatex.prototype.compile = function(_callback) {
  if (this.inputPath && this.inputPath.length > 0) {
    var command = "pdflatex -interaction nonstopmode -output-directory " + this.outputDirectory + " '" + this.inputPath + "'";
    //console.log(command);
    var parent = this;<commit_msg>oeffne pdflatex mit Windowskomp. Pfadnamen<commit_after>/**
 * Forked from https://github.com/oschrenk/node-pdflatex/
 */

var util = require('util');
var path = require('path');
var fs = require('fs');
var exec = require('child_process').exec;

/*
 PDFlatex class
*/
// constructor
function PDFlatex(inputPath) {
  // default settings
  this.outputDirectory = __server + '_texFiles';
  this.inputPath = inputPath;
  this.filename = inputPath.split('/').pop().split('.')[0];
  //console.log(this.filename);
};

PDFlatex.prototype.outputDir = function(path) {
  this.outputDirectory = path;
  return this;
};

PDFlatex.prototype.compile = function(_callback) {
  if (this.inputPath && this.inputPath.length > 0) {
    var command = "pdflatex -interaction nonstopmode -output-directory " + this.outputDirectory.replace(/\\/g, '/') + " " + this.inputPath.replace(/\\/g, '/') + "";
    //console.log(command);
    var parent = this;
{'fraction_non_alphanumeric': 0.1738401341531582, 'fraction_numerical': 0.0022358859698155395, 'mean_word_length': 4.02808988764045, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 5, 'https://': 2, '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': '3594463', 'n_tokens_mistral': 595, 'n_tokens_neox': 591, 'n_words': 113}