<commit_before>

function skipIfBranch(param){

	// jQuery
	//   https://sonarqube.com/issues#issues=AVl2B2tcoyrXF8JkMTQy

	function isArray(value){
		return Array.isArray(value)
	}


	var result;

	if (typeof param == 'string'){
		result = [param];
	}

	if (!isArray(result)){
		result = [];
	}

	// result is an array here, cannot be null/undefined
	return result.length;
}


function customAssert(param){

	// react
	//   https://sonarqube.com/issues#issues=AVjdI39UbWj_GMDPVsA8
	//   https://sonarqube.com/issues#issues=AVTMqSgftu4QdCAX4XJm

	function assertNotNull(value){
		if (value === null || value === undefined){
			throw new Error('value is null/undefined');
		}
	}


	var result;

	if (typeof param == 'string'){
		result = [param];
	}

	assertNotNull(result);

	// result cannot be null/undefined here
	return result.length;
}



function testWhile(tag, tmp){

	// https://sonarqube.com/issues#issues=AVnJW7_5Ybr9ugKerrQd

	var elem = 0;

	if (tag === "table"){
		elem = tmp;
	}

	var j = elem && elem.childNodes.length;

	while ( j-- ) {
		elem.removeChild(elem.firstChild);
	}
}



function doubleCondition(param, doSomething){

	// https://sonarqube.com/issues#issues=AVn7ordhaRqHwG08CTVt

	var a;

	if (param){
		a = [1];
	}

	doSomething(a);

	if(param){
		a.push(2);
	}

	return a;
}<commit_msg>double condition - change parameter<commit_after>

function skipIfBranch(param){

	// jQuery
	//   https://sonarqube.com/issues#issues=AVl2B2tcoyrXF8JkMTQy

	function isArray(value){
		return Array.isArray(value)
	}


	var result;

	if (typeof param == 'string'){
		result = [param];
	}

	if (!isArray(result)){
		result = [];
	}

	// result is an array here, cannot be null/undefined
	return result.length;
}


function customAssert(param){

	// react
	//   https://sonarqube.com/issues#issues=AVjdI39UbWj_GMDPVsA8
	//   https://sonarqube.com/issues#issues=AVTMqSgftu4QdCAX4XJm

	function assertNotNull(value){
		if (value === null || value === undefined){
			throw new Error('value is null/undefined');
		}
	}


	var result;

	if (typeof param == 'string'){
		result = [param];
	}

	assertNotNull(result);

	// result cannot be null/undefined here
	return result.length;
}



function testWhile(tag, tmp){

	// https://sonarqube.com/issues#issues=AVnJW7_5Ybr9ugKerrQd

	var elem = 0;

	if (tag === "table"){
		elem = tmp;
	}

	var j = elem && elem.childNodes.length;

	while ( j-- ) {
		elem.removeChild(elem.firstChild);
	}
}



function doubleCondition(param, doSomething){

	// https://sonarqube.com/issues#issues=AVn7ordhaRqHwG08CTVt

	var a;

	if (param){
		a = [1];
	}

	doSomething(param);

	if(param){
		a.push(2);
	}

	return a;
}
{'fraction_non_alphanumeric': 0.15173192771084337, 'fraction_numerical': 0.012801204819277108, 'mean_word_length': 3.5652920962199315, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 10, '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': '3788989', 'n_tokens_mistral': 1107, 'n_tokens_neox': 1017, 'n_words': 201}