<commit_before>var fs = require("fs")
var path = require("path")

var build = require("./commands/build")
var env = require("./commands/env")
var help = require("./commands/help")
var init = require("./commands/init")
var install = require("./commands/install")
var run = require("./commands/run")

var libdir = path.resolve(path.dirname(process.argv[1]) + "/..")
var libmod = libdir + (fs.existsSync(libdir + "/node_modules") ? "/node_modules" : "/..")
var command = process.argv[2]
var context = path.resolve(process.argv[3] || "")
var target = process.argv[3] && path.resolve(process.argv[3])

if (command === "help") help(libdir, 0)
else if (command === "env") console.error(env())
else if (command === "init") init(libdir)
else if (command === "install") install()
else if (command === "build") build.entry(libdir, libmod, context)
else if (command === "watch") build.watch(libdir, libmod, context)
else if (command === "run" && target) run(target)
else if (command === "version") console.log(help.version(libdir))
else help(libdir, 1)<commit_msg>Fix env command<commit_after>var fs = require("fs")
var path = require("path")

var build = require("./commands/build")
var env = require("./commands/env")
var help = require("./commands/help")
var init = require("./commands/init")
var install = require("./commands/install")
var run = require("./commands/run")

var libdir = path.resolve(path.dirname(process.argv[1]) + "/..")
var libmod = libdir + (fs.existsSync(libdir + "/node_modules") ? "/node_modules" : "/..")
var command = process.argv[2]
var context = path.resolve(process.argv[3] || "")
var target = process.argv[3] && path.resolve(process.argv[3])

if (command === "help") help(libdir, 0)
if (command === "version") {
    console.log(help.version(libdir))
    process.exit(0)
}

var envvar = env()

if (command === "env") console.error(envvar)
else if (command === "init") init(libdir)
else if (command === "install") install()
else if (command === "build") build.entry(libdir, libmod, context)
else if (command === "watch") build.watch(libdir, libmod, context)
else if (command === "run" && target) run(target)
else help(libdir, 1)
{'fraction_non_alphanumeric': 0.20410065237651445, 'fraction_numerical': 0.006989748369058714, 'mean_word_length': 5.116809116809117, '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': '5340997', 'n_tokens_mistral': 700, 'n_tokens_neox': 694, 'n_words': 185}