<commit_before>var fs = require('fs');

var home = process.env.HOME || process.env.USERPROFILE;
var configFile = home + "/.ealertapirc";
var defaultConfig = {
  "port" : 3000,
  "es_host" : "localhost",
  "es_port" : "9200",
  "path" : "./rules/",
  "index": "rulez",
  "type" : "rule"
};

try{
  fs.statSync(configFile);
}
catch(exception){
  fs.writeFileSync(configFile, JSON.stringify(defaultConfig));
}

var config = JSON.parse( fs.readFileSync(configFile) );
module.exports = config;<commit_msg>change config paht to /etc/ealertapirc.conf<commit_after>var fs = require('fs');

//var home = process.env.HOME || process.env.USERPROFILE;
var configFile = "/etc/ealertapirc.conf";
var defaultConfig = {
  "port" : 3000,
  "es_host" : "localhost",
  "es_port" : "9200",
  "path" : "./rules/",
  "index": "rulez",
  "type" : "rule"
};

try{
  fs.statSync(configFile);
}
catch(exception){
  fs.writeFileSync(configFile, JSON.stringify(defaultConfig));
}

var config = JSON.parse( fs.readFileSync(configFile) );
module.exports = config;
{'fraction_non_alphanumeric': 0.18489835430784124, 'fraction_numerical': 0.015488867376573089, 'mean_word_length': 4.6502732240437155, 'pattern_counts': {'":': 2, '<': 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': '7279331', 'n_tokens_mistral': 395, 'n_tokens_neox': 378, 'n_words': 74}