<commit_before>// var app = require('app');  // Module to control application life.
// var BrowserWindow = require('browser-window');  // Module to create native browser window.
var fs = require('fs')
// var packageFile = require('./package.json');


//COFFEESCRIPT
var coffee = require('coffee-script');
// console.log(coffee);

var coffeePath='/lib/', jsPath='/src/'

if (process.platform == 'win32') {
  coffeePath = __dirname+coffeePath;
  jsPath = __dirname+jsPath;

  //coffeePath.replace(/\//g,'\\');
  //jsPath.replace(/\//g,'\\');
} else {
  coffeePath = '.'+coffeePath;
  jsPath = '.'+jsPath;
}


compileToCoffe = function(file_path,file_name) {
  // console.log("compileToCoffe: "+file_path+" name: "+file_name);
  var file_name_js = file_name.slice(0,file_name.length-6)+'js';
  // console.log(file_name_js);
  var data=fs.readFileSync(file_path,'utf8');
  fs.writeFileSync(jsPath+file_name_js,coffee.compile(data));
};

files = fs.readdirSync(coffeePath);
for(var i=0;i<files.length;i++) {
  var file = files[i];
  // console.log("compile: "+file);
  compileToCoffe(coffeePath+file,file);
}

//LESS
var lessPath='/less/', cssPath='/css/'
if (process.platform == 'win32') {
  lessPath = __dirname+lessPath;
  cssPath = __dirname+cssPath;
} else {
  lessPath = '.'+lessPath;
  cssPath = '.'+cssPath;
}
var less = require('less');
files = fs.readdirSync(lessPath);
for(var i=0;i<files.length;i++) {
  var file = files[i];
  var cssFile = file.slice(0,file.length-4)+'css';
  // console.log("compile: "+file);
  var fileDate = fs.readFileSync(lessPath+file,'utf8');
  // console.log(fileDate);
  less.render(fileDate,function (e,output) {
    //console.log(output); //maby use output.imports?
    fs.writeFileSync(cssPath+cssFile,output.css,'utf8');
  });
}

//Start src/main.js (lib/main.coffee)
require(jsPath+'main');<commit_msg>better Fix some win32 issues<commit_after>// var app = require('app');  // Module to control application life.
// var BrowserWindow = require('browser-window');  // Module to create native browser window.
var fs = require('fs')
// var packageFile = require('./package.json');


//COFFEESCRIPT
var coffee = require('coffee-script');
// console.log(coffee);

var coffeePath=__dirname+'/lib/', jsPath=__dirname+'/src/'

// if (process.platform == 'win32') {
//   coffeePath = __dirname+coffeePath;
//   jsPath = __dirname+jsPath;
//
//   //coffeePath.replace(/\//g,'\\');
//   //jsPath.replace(/\//g,'\\');
// } else {
//   coffeePath = '.'+coffeePath;
//   jsPath = '.'+jsPath;
// }


compileToCoffe = function(file_path,file_name) {
  // console.log("compileToCoffe: "+file_path+" name: "+file_name);
  var file_name_js = file_name.slice(0,file_name.length-6)+'js';
  // console.log(file_name_js);
  var data=fs.readFileSync(file_path,'utf8');
  fs.writeFileSync(jsPath+file_name_js,coffee.compile(data));
};

files = fs.readdirSync(coffeePath);
for(var i=0;i<files.length;i++) {
  var file = files[i];
  // console.log("compile: "+file);
  compileToCoffe(coffeePath+file,file);
}

//LESS
var lessPath=__dirname+'/less/', cssPath=__dirname+'/css/'
// if (process.platform == 'win32') {
//   lessPath = __dirname+lessPath;
//   cssPath = __dirname+cssPath;
// } else {
//   lessPath = '.'+lessPath;
//   cssPath = '.'+cssPath;
// }
var less = require('less');
files = fs.readdirSync(lessPath);
for(var i=0;i<files.length;i++) {
  var file = files[i];
  var cssFile = file.slice(0,file.length-4)+'css';
  // console.log("compile: "+file);
  var fileDate = fs.readFileSync(lessPath+file,'utf8');
  // console.log(fileDate);
  less.render(fileDate,function (e,output) {
    //console.log(output); //maby use output.imports?
    fs.writeFileSync(cssPath+cssFile,output.css,'utf8');
  });
}

//Start src/main.js (lib/main.coffee)
require(jsPath+'main');
{'fraction_non_alphanumeric': 0.2033271719038817, 'fraction_numerical': 0.0073937153419593345, 'mean_word_length': 4.239280774550484, 'pattern_counts': {'":': 0, '<': 7, '<?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': '3640916', 'n_tokens_mistral': 1427, 'n_tokens_neox': 1391, 'n_words': 233}