<commit_before>#!/usr/bin/env node
var fs = require('fs'),
  exec = require('child_process').exec,
  path = require('path');

var methods = {
  init: function (path) {
    if (!path) {
      console.log('No app name given\n');
      this.comment();
    } else {
      console.log('installing Genie into ' + path);
      fs.exists(path, function (exists) {
        if (exists) {
          console.log(path + ' already exists');
        } else {
          fs.mkdirSync('./' + path);
          exec('cp -R ' + __dirname + '/../src/all/ ' + path, function (err, out) {
            if (err) {
              console.log('error', err);
            } else {
              console.log('Success!');
            }
          });
        }
      });
    }
  },
  help : function(argument) {
    console.log('Genie is frameworl for express.');
    this.comment();
  }
  comment: function () {
    console.log('init <name> - Generate a new app called <name>');
  }
};

!(function (args) {
  var cmd = args.shift();
  if (!cmd) {
    methods.help();
  } else {
    methods[cmd] && methods[cmd].apply(methods, args);
  }
})(process.argv.slice(2));
<commit_msg>Update bin/genie.js<commit_after>#!/usr/bin/env node
var fs = require('fs'),
  exec = require('child_process').exec,
  path = require('path');

var methods = {
  init: function (path) {
    if (!path) {
      console.log('No app name given\n');
      this.comment();
    } else {
      console.log('installing Genie into ' + path);
      fs.exists(path, function (exists) {
        if (exists) {
          console.log(path + ' already exists');
        } else {
          fs.mkdirSync('./' + path);
          exec('cp -R ' + __dirname + '/../src/all/ ' + path, function (err, out) {
            if (err) {
              console.log('error', err);
            } else {
              console.log('Success!');
            }
          });
        }
      });
    }
  },
  help : function(argument) {
    console.log('Genie is frameworl for express.');
    this.comment();
  },
  comment: function () {
    console.log('init <name> - Generate a new app called <name>');
  }
};

!(function (args) {
  var cmd = args.shift();
  if (!cmd) {
    methods.help();
  } else {
    methods[cmd] && methods[cmd].apply(methods, args);
  }
})(process.argv.slice(2));

{'fraction_non_alphanumeric': 0.18360226777147842, 'fraction_numerical': 0.0008722197993894462, 'mean_word_length': 2.018421052631579, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 7, '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': '47637', 'n_tokens_mistral': 737, 'n_tokens_neox': 732, 'n_words': 165}