<commit_before>/*
 * Format for Selenium Remote Control Perl client.
 */

var subScriptLoader = Components.classes["@mozilla.org/moz/jssubscript-loader;1"].getService(Components.interfaces.mozIJSSubScriptLoader);
subScriptLoader.loadSubScript('chrome://selenium-ide/content/formats/remoteControl.js', this);

this.name = "perl-rc";

// method name will not be used in this format
function testMethodName(testName) {
	return testName;
}

var originalFormatCommands = formatCommands;
formatCommands = function(commands) {
	this.tests = 0;
	var lines = originalFormatCommands(commands);
	if (this.tests == 0) {
		lines += addIndent("pass;\n");
	}
	return lines;
}

var formatter = this;

string = function(value) {
	if (value != null) {
		value = value.replace(/\\/g, '\\\\');
		value = value.replace(/\'/g, '\\\'');
		value = value.replace(/\r/g, '\\r');
		value = value.replace(/\n/g, '\\n');
		return '\'' + value + '\'';
	} else {
		return '\'\'';
	}
}

variableName = function(value) {
	return "$" + value;
}

concatString = function(array) {
	return array.join(" . ");
}

function assertTrue(expression) {
	if (formatter.assertOrVerifyFailureOnNext) {
		return expression.toString() + " or die;";
	} else {
		formatter.tests++;<commit_msg>replaced single auote to double qoute<commit_after>/*
 * Format for Selenium Remote Control Perl client.
 */

var subScriptLoader = Components.classes["@mozilla.org/moz/jssubscript-loader;1"].getService(Components.interfaces.mozIJSSubScriptLoader);
subScriptLoader.loadSubScript('chrome://selenium-ide/content/formats/remoteControl.js', this);

this.name = "perl-rc";

// method name will not be used in this format
function testMethodName(testName) {
	return testName;
}

var originalFormatCommands = formatCommands;
formatCommands = function(commands) {
	this.tests = 0;
	var lines = originalFormatCommands(commands);
	if (this.tests == 0) {
		lines += addIndent("pass;\n");
	}
	return lines;
}

var formatter = this;

string = function(value) {
	if (value != null) {
		value = value.replace(/\\/g, '\\\\');
		value = value.replace(/\'/g, '\\\'');
		value = value.replace(/\r/g, '\\r');
		value = value.replace(/\n/g, '\\n');
		return "'" + value + "'";
	} else {
		return "'";
	}
}

variableName = function(value) {
	return "$" + value;
}

concatString = function(array) {
	return array.join(" . ");
}

function assertTrue(expression) {
	if (formatter.assertOrVerifyFailureOnNext) {
		return expression.toString() + " or die;";
	} else {
		formatter.tests++;
{'fraction_non_alphanumeric': 0.17379145025968837, 'fraction_numerical': 0.0023971234518577705, 'mean_word_length': 4.152263374485597, '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': '6642934', 'n_tokens_mistral': 871, 'n_tokens_neox': 840, 'n_words': 174}