<commit_before>
if( ! JSHC.Compiler )JSHC.Compiler = {};

////////////////////////////////////////////////////////////////////////////////

JSHC.Compiler = function(modulePrefix){
    this.flags = {};
    this.fileSystem = {};
    this.path = [];
    if( location !== undefined && location.href !== undefined ){
	this.path.push(location.href.substr(0, location.href.lastIndexOf("/") + 1) + "hslib/");
    }
    this.modulePrefix = modulePrefix;
    this.modules = {};   // mapping from module names to modules

    this.warnings = [];
    this.errors = [];
    this.onError = function(err){eval(this.getAllJSCode());
        this.errors.push(err);
    };
    this.onWarning = function(warn){<commit_msg>add user haskell file path<commit_after>
if( ! JSHC.Compiler )JSHC.Compiler = {};

////////////////////////////////////////////////////////////////////////////////

JSHC.Compiler = function(modulePrefix){
    this.flags = {};
    this.fileSystem = {};
    this.path = [];
    if( location !== undefined && location.href !== undefined ){
	this.path.push(location.href.substr(0, location.href.lastIndexOf("/") + 1) + "hslib/");
	this.path.push(location.href.substr(0, location.href.lastIndexOf("/") + 1) + "hsusr/");
    }
    this.modulePrefix = modulePrefix;
    this.modules = {};   // mapping from module names to modules

    this.warnings = [];
    this.errors = [];
    this.onError = function(err){eval(this.getAllJSCode());
        this.errors.push(err);
    };
    this.onWarning = function(warn){
{'fraction_non_alphanumeric': 0.26657824933687, 'fraction_numerical': 0.003978779840848806, 'mean_word_length': 2.14375, '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': '5770677', 'n_tokens_mistral': 444, 'n_tokens_neox': 440, 'n_words': 75}