<commit_before><?php
// Initialization
require_once('tiki-setup.php');
include_once('lib/backups/backuplib.php');

// Check for admin permission
if($tiki_p_admin != 'y') {
    $smarty->assign('msg',tra("You dont have permission to use this feature"));
    $smarty->display("styles/$style_base/error.tpl");
    die;
}

if(isset($_REQUEST["generate"])) {
  $filename = md5($tikilib->genPass()).'.sql';
  $backuplib->backup_database("backups/$filename");
}

$smarty->assign('restore','n');
if(isset($_REQUEST["restore"])) {
  $smarty->assign('restore','y');
  $smarty->assign('restorefile',$_REQUEST["restore"]);	
}

if(isset($_REQUEST["rrestore"])) {
  $backuplib->restore_database("backups/".$_REQUEST["rrestore"]);	
}

if(isset($_REQUEST["remove"])) {<commit_msg>fixed bug: link to lib wrong<commit_after><?php
// Initialization
require_once('tiki-setup.php');
include_once('lib/backups/backupslib.php');

// Check for admin permission
if($tiki_p_admin != 'y') {
    $smarty->assign('msg',tra("You dont have permission to use this feature"));
    $smarty->display("styles/$style_base/error.tpl");
    die;
}

if(isset($_REQUEST["generate"])) {
  $filename = md5($tikilib->genPass()).'.sql';
  $backuplib->backup_database("backups/$filename");
}

$smarty->assign('restore','n');
if(isset($_REQUEST["restore"])) {
  $smarty->assign('restore','y');
  $smarty->assign('restorefile',$_REQUEST["restore"]);	
}

if(isset($_REQUEST["rrestore"])) {
  $backuplib->restore_database("backups/".$_REQUEST["rrestore"]);	
}

if(isset($_REQUEST["remove"])) {
{'fraction_non_alphanumeric': 0.23022049286640725, 'fraction_numerical': 0.0012970168612191958, 'mean_word_length': 6.715, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 19, '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': '1961481', 'n_tokens_mistral': 530, 'n_tokens_neox': 533, 'n_words': 67}