<commit_before>window.SQLjs_driver = function () {
	
	var db = null;

	var splitStatement = function (statements)
	{
		return statements.split(/;\s*\r?\n|$/);
	}

	this.buildSchema = function (args) {
		
		try {
	
			/* 
			 * Closure used to handle both cases of when the sql.js library
			 * has already been loaded, or when it has not yet been.	
			 */
			var jsBuildSchema = function () {
				
				db = SQL.open();
				$.each(splitStatement(args["ddl"]), function (i, statement) {
					db.exec(statement);
				});				
				
				args["success"]();
			}
			
			//  If the sql.js code isn't yet loaded, do it now.
			if (window.SQL === undefined)
			{
				$.getScript("javascripts/sql.js", function (script, textStatus, jqXHR) {
					jsBuildSchema();
				});	
			}
			else<commit_msg>Handling browsers (like IE9) which don't work with SQL.js<commit_after>window.SQLjs_driver = function () {
	
	var db = null;

	var splitStatement = function (statements)
	{
		return statements.split(/;\s*\r?\n|$/);
	}

	this.buildSchema = function (args) {
		
		try {
	
			/* 
			 * Closure used to handle both cases of when the sql.js library
			 * has already been loaded, or when it has not yet been.	
			 */
			var jsBuildSchema = function () {
				
				db = SQL.open();
				$.each(splitStatement(args["ddl"]), function (i, statement) {
					db.exec(statement);
				});				
				
				args["success"]();
			}
			
			//  If the sql.js code isn't yet loaded, do it now.
			if (window.SQL === undefined)
			{
				$.getScript("javascripts/sql.js", function (script, textStatus, jqXHR) {
					jsBuildSchema();
				}).fail(function(jqxhr, settings, exception){
					args["error"]("Your browser does not work with SQL.js.  Try using a different browser (Chrome, Firefox, IE 10, etc...), or a newer version of your current one.");
				});	
			}
			else
{'fraction_non_alphanumeric': 0.14426229508196722, 'fraction_numerical': 0.001639344262295082, 'mean_word_length': 2.5972495088408643, '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': '3072674', 'n_tokens_mistral': 748, 'n_tokens_neox': 579, 'n_words': 171}