<commit_before><?php

include_once("../../pimcore/cli/startup.php");

$backup = new Pimcore_Backup($backupFile);
$initInfo = $backup->init();


$stepMethodMapping = [
    "mysql-tables" => "mysqlTables",
    "mysql" => "mysqlData"
];


if(empty($initInfo["errors"])) {
    foreach ($initInfo["steps"] as $step) {
        if(!is_array($step[1])) {
            $step[1] = array();
        }

        if(array_key_exists($step[0], $stepMethodMapping)) {

            // skip these tables
            if(in_array($step[1]["name"], ["tracking_events", "cache", "cache_tags", "http_error_log", "versions", "edit_lock", "content_analysis", "content_index", "locks", "email_log"])) {
                continue;
            }

            verboseMessage("execute: " . $step[0] . " | with the following parameters: " . implode(",",$step[1]));
            $return = call_user_func_array([$backup, $stepMethodMapping[$step[0]]], $step[1]);
            if($return["filesize"]) {
                verboseMessage("current filesize of the backup is: " . $return["filesize"]);<commit_msg>updated create-dump script for demo-data<commit_after><?php

include_once("../../pimcore/cli/startup.php");

$backup = new Pimcore_Backup($backupFile);
$initInfo = $backup->init();


$stepMethodMapping = [
    "mysql-tables" => "mysqlTables",
    "mysql" => "mysqlData"
];


if(empty($initInfo["errors"])) {
    foreach ($initInfo["steps"] as $step) {
        if(!is_array($step[1])) {
            $step[1] = array();
        }

        if(array_key_exists($step[0], $stepMethodMapping)) {

            // skip these tables
            if(in_array($step[1]["name"], ["tracking_events", "cache", "cache_tags", "http_error_log", "versions", "edit_lock", "content_analysis", "content_index", "locks", "email_log", "tmp_store"])) {
                continue;
            }

            verboseMessage("execute: " . $step[0] . " | with the following parameters: " . implode(",",$step[1]));
            $return = call_user_func_array([$backup, $stepMethodMapping[$step[0]]], $step[1]);
            if($return["filesize"]) {
                verboseMessage("current filesize of the backup is: " . $return["filesize"]);
{'fraction_non_alphanumeric': 0.19513314967860423, 'fraction_numerical': 0.0073461891643709825, 'mean_word_length': 3.1268939393939394, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 9, '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': '227215', 'n_tokens_mistral': 694, 'n_tokens_neox': 675, 'n_words': 116}