<commit_before>var path = process.argv[2]
if (!path) {
   console.log("Please specify a path")
   return
}

require.main.__mainComponentPath = path
var result = require('maker')._o(module)(path)
if (result._init) {
    result._init(process.argv.slice(3))
}

console.log(result)

// yargs
// can print usage (we should gen)
// can give example (gen?)
// describe (can desribe opts)<commit_msg>abs and rel paths fixes<commit_after>var cwd = process.cwd()
var path = process.argv[2]

if (!path) {
   console.log("Please specify a path")
   return
}

//
if (path[0] === '/') {
    path = path.substring(1)
} else {
    path = cwd + '/' + path    
}
//

require.main.__mainComponentPath = path
var result = require('maker')._o(module)(path)
if (result._init) {
    result._init(process.argv.slice(3))
}

console.log(result)

// yargs
// can print usage (we should gen)
// can give example (gen?)
// describe (can desribe opts)
{'fraction_non_alphanumeric': 0.16503800217155265, 'fraction_numerical': 0.006514657980456026, 'mean_word_length': 3.5643564356435644, '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': '5464382', 'n_tokens_mistral': 319, 'n_tokens_neox': 316, 'n_words': 82}