<commit_before>var exec = require('child_process').exec;
var os = require('os');
var fs = require('fs');
var https = require('https');
var mkdirp = require('mkdirp');
var unzip = require('unzip');
var terminal = require('child_process').exec;
var clicolour = require('cli-color');

exports.start = function start(callback) {
  if(os.type() === "Windows_NT"){
    // start mongo
    // download if not Here
    // and exec
    // TODO: Make work in order
    fs.stat('./packages/mongo', function (err) {
      if(err){
        var terminal = require('child_process').spawn('bash', ['./scripts/getmongo.sh']);

        terminal.stdout.on('data', function (data) {
            console.log('stdout: ' + data);
        });

        terminal.stderr.on('data', function (data) {
            console.log('stderr: ' + data);
        });

        terminal.on('exit', function (code) {
            console.log('Done with '  + code);
        });

        setTimeout(function() {
          console.log("Downloading MongoDB...");
        }, 2000000);
      } else {
        // stary DB
        var m = require('child_process').spawn('bash', ['./scripts/mongo.sh']);

        m.on('exit', function (code) {
            console.log(clicolour.cyanBright("webOS ") + clicolour.magentaBright("database ") + "Database started with "+code);
        });

        setTimeout(function() {
          console.log("Starting MongoDB...");
        }, 2000000);
      };
    });
  } else {
    callback("EOS", "Not windows");
  };
}<commit_msg>Add mongo<commit_after>var exec = require('child_process').exec;
var os = require('os');
var fs = require('fs');
var https = require('https');
var mkdirp = require('mkdirp');
var unzip = require('unzip');
var terminal = require('child_process').exec;
var clicolour = require('cli-color');

exports.start = function start(callback) {
  if(os.type() === "Windows_NT"){
    // start mongo
    // download if not Here
    // and exec
    // TODO: Make work in order
    fs.stat('./packages/mongo', function (err) {
      if(err){
        if(process.env.DOCKER === undefined || false){
          if(os.type() === "Darwin"){
            var terminal = require('child_process').spawn('bash', ['./scripts/getmongoosx.sh']);
            terminal.stdout.on('data', function (data) {
                console.log('stdout: ' + data);
            });

            terminal.stderr.on('data', function (data) {
                console.log('stderr: ' + data);
            });

            terminal.on('exit', function (code) {
                console.log('Done with '  + code);
            });

            setTimeout(function() {
              console.log("Downloading MongoDB...");
            }, 2000000);
          } else if(os.type() === "Windows_NT"){
            var terminal = require('child_process').spawn('bash', ['./scripts/getmongo.sh']);
            terminal.stdout.on('data', function (data) {
                console.log('stdout: ' + data);
            });

            terminal.stderr.on('data', function (data) {
                console.log('stderr: ' + data);
            });

            terminal.on('exit', function (code) {
                console.log('Done with '  + code);
            });

            setTimeout(function() {
              console.log("Downloading MongoDB...");
            }, 2000000);
          } else {
            console.log(clicolour.cyanBright("webOS ") + clicolour.magentaBright("database ") + "Sorry, you will need to start your own DB as their as so many distributions of Linux ");
          };
        } else {
          var terminal = require('child_process').spawn('bash', ['docker run mongo']);
        }

        terminal.stdout.on('data', function (data) {
            console.log('stdout: ' + data);
        });

        terminal.stderr.on('data', function (data) {
            console.log('stderr: ' + data);
        });

        terminal.on('exit', function (code) {
            console.log('Done with '  + code);
        });

        setTimeout(function() {
          console.log("Downloading MongoDB...");
        }, 2000000);
      } else {
        // start DB
        if(process.env.DOCKER === undefined || false){
          if(os.type() !== 'Linux'){
            var m = require('child_process').spawn('bash', ['./scripts/mongo.sh']);

            m.on('exit', function (code) {
                console.log(clicolour.cyanBright("webOS ") + clicolour.magentaBright("database ") + "Database started with "+code);
            });

            setTimeout(function() {
              console.log("Starting MongoDB...");
            }, 2000000);
          } else {
            console.log(clicolour.cyanBright("webOS ") + clicolour.magentaBright("database ") + "Sorry, but MongoDB is not stored locally as it was not downloaded");
          };
        } else {
          var terminal = require('child_process').spawn('bash', ['docker run mongo']);
        };
      };
    });
  } else {
    callback("EOS", "Not windows");
  };
}
{'fraction_non_alphanumeric': 0.17315409309791333, 'fraction_numerical': 0.008426966292134831, 'mean_word_length': 2.0771604938271606, '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': 7, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '469856', 'n_tokens_mistral': 1482, 'n_tokens_neox': 1407, 'n_words': 295}