<commit_before>'use strict';

function require2(moduleName) {
	var pat = "require(process.cwd() + " + "'\\\\node_modules\\\\" + moduleName + "');";
	console.log('PATH: ' + pat);
    var reac = eval(pat);	
	return reac;
};

var fs           = require('fs');
var path         = require('path');

if (!fs.existsSync(process.cwd() + "/node_modules") ) {
    copyFolderRecursiveSync(path.join(__dirname, "../node_modules")  , process.cwd() );
}
const mkdirSync = function (dirPath) {
  try {
    fs.mkdirSync(dirPath)
  } catch (err) {
    //if (err.code !== 'EEXIST') throw err
  }
}
if (!fs.existsSync(process.cwd() + "/node_modules/sqlite3/lib/binding/node-v48-win32-ia32/node_sqlite3.node") ) {
	mkdirSync(process.cwd() + "/node_modules/sqlite3/lib/binding");
	mkdirSync(process.cwd() + "/node_modules/sqlite3/lib/binding/node-v48-win32-ia32");
    copyFileSync(	path.join(__dirname, "../node_win32/node_sqlite3.noderename"),
						process.cwd() + "/node_modules/sqlite3/lib/binding/node-v48-win32-ia32/node_sqlite3.node") ;
}

if (!fs.existsSync(process.cwd() + "/node_modules/leveldown/build/Release/leveldown.node") ) {
	mkdirSync(process.cwd() + "/node_modules/leveldown/build/");
	mkdirSync(process.cwd() + "/node_modules/leveldown/build/Release");
    copyFileSync(	path.join(__dirname, "../node_win32/leveldown.noderename"),
						process.cwd() + "/node_modules/leveldown/build/Release/leveldown.node") ;
}
var leveldown = require2('leveldown')

var PouchDB = require('pouchdb')
var url          = require('url');
var net          = require('net');
var unzip        = require('unzip');
var postgresdb   = require('pg');
var ip           = require("ip");
var program      = require('commander');
var drivers      = new Object();
var connections  = new Object();
var queries      = new Object();
var express      = require('express')<commit_msg>PouchDB Bug fix for Windows<commit_after>'use strict';

function require2(moduleName) {
	var pat = "require(process.cwd() + " + "'\\\\node_modules\\\\" + moduleName + "');";
	console.log('PATH: ' + pat);
    var reac = eval(pat);	
	return reac;
};

var fs           = require('fs');
var path         = require('path');

if (!fs.existsSync(process.cwd() + "/node_modules") ) {
    copyFolderRecursiveSync(path.join(__dirname, "../node_modules")  , process.cwd() );
}
const mkdirSync = function (dirPath) {
  try {
    fs.mkdirSync(dirPath)
  } catch (err) {
    //if (err.code !== 'EEXIST') throw err
  }
}
if (!fs.existsSync(process.cwd() + "/node_modules/sqlite3/lib/binding/node-v48-win32-ia32/node_sqlite3.node") ) {
	mkdirSync(process.cwd() + "/node_modules/sqlite3/lib/binding");
	mkdirSync(process.cwd() + "/node_modules/sqlite3/lib/binding/node-v48-win32-ia32");
    copyFileSync(	path.join(__dirname, "../node_win32/node_sqlite3.noderename"),
						process.cwd() + "/node_modules/sqlite3/lib/binding/node-v48-win32-ia32/node_sqlite3.node") ;
}

if (!fs.existsSync(process.cwd() + "/node_modules/leveldown/build/Release/leveldown.node") ) {
	mkdirSync(process.cwd() + "/node_modules/leveldown/build/");
	mkdirSync(process.cwd() + "/node_modules/leveldown/build/Release");
    copyFileSync(	path.join(__dirname, "../node_win32/leveldown.noderename"),
						process.cwd() + "/node_modules/leveldown/build/Release/leveldown.node") ;

	//to fix a bug on windows
	mkdirSync(process.cwd() + "/build");
    copyFileSync(	path.join(__dirname, "../node_win32/leveldown.noderename"),
						process.cwd() + "/build/leveldown.node") ;
					
}
var leveldown = require2('leveldown')

var PouchDB = require('pouchdb')
var url          = require('url');
var net          = require('net');
var unzip        = require('unzip');
var postgresdb   = require('pg');
var ip           = require("ip");
var program      = require('commander');
var drivers      = new Object();
var connections  = new Object();
var queries      = new Object();
var express      = require('express')
{'fraction_non_alphanumeric': 0.18307338276655588, 'fraction_numerical': 0.016364101252876503, 'mean_word_length': 3.7246376811594204, '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': '3162387', 'n_tokens_mistral': 1415, 'n_tokens_neox': 1345, 'n_words': 224}