<commit_before><?php
require_once '../mysql.class.php';
$_mysql = new mysql;

$_mysql->connect_db();
$_mysql->query("INSERT INTO konto (1500, 636.0, 1045);");
$_mysql->query("INSERT INTO konto (1510, 4984.30, 1052);");

function func($sql) {
	while ($row = mysql_metch_row($sql)) {
		if ($row['value'] < 0) {
			return false;
		}
	}
	return true;
}

$funcObject = &func($sql);

$_mysql->transaction('
	UPDATE SET value=value+34579.84 WHERE userid = 1045;
	UPDATE SET value=value-34579.84 WHERE userid = 1052;
	SELECT id, value, userid FROM konto;
', $funcObject);
?><commit_msg>The functionname ist mysql_fetch_row and not mysql_metch_row<commit_after><?php
require_once '../mysql.class.php';
$_mysql = new mysql;

$_mysql->connect_db();
$_mysql->query("INSERT INTO konto (1500, 636.0, 1045);");
$_mysql->query("INSERT INTO konto (1510, 4984.30, 1052);");

function func($sql) {
	while ($row = mysql_fetch_row($sql)) {
		if ($row['value'] < 0) {
			return false;
		}
	}
	return true;
}

$funcObject = &func($sql);

$_mysql->transaction('
	UPDATE SET value=value+34579.84 WHERE userid = 1045;
	UPDATE SET value=value-34579.84 WHERE userid = 1052;
	SELECT id, value, userid FROM konto;
', $funcObject);
?>
{'fraction_non_alphanumeric': 0.17955112219451372, 'fraction_numerical': 0.08146300914380715, 'mean_word_length': 4.990049751243781, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 13, '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': '6302925', 'n_tokens_mistral': 516, 'n_tokens_neox': 439, 'n_words': 112}