<commit_before><?php
/**
 * 
 * @author <NAME> <<EMAIL>> and <NAME> <<EMAIL>>
 * @copyright Copyright &copy; 2008, Telaxus LLC
 * @license MIT
 * @version 1.0
 * @package epesi-Utils
 * @subpackage ChainedSelect
 */
if(!isset($_POST['values']) || !isset($_POST['dest_id']) || !isset($_POST['cid']))
	die('alert(\'Invalid request\')');
	
define('JS_OUTPUT',1);
define('CID',$_POST['cid']); 
define('READ_ONLY_SESSION',true);
require_once('../../../include.php');
ModuleManager::load_modules();

$_POST['values'] = json_decode($_POST['values']);
$_POST['parameters'] = json_decode($_POST['parameters']);
if (isset($_POST['defaults'])) $_POST['defaults'] = json_decode($_POST['defaults']);
else $_POST['defaults'] = null;
$_REQUEST['values'] = $_GET['values'] = $_POST['values'];
$_REQUEST['defaults'] = $_GET['defaults'] = $_POST['defaults'];
$_REQUEST['parameters'] = $_GET['parameters'] = $_POST['parameters'];

require_once($_SESSION['client']['utils_chainedselect'][$_POST['dest_id']]);
?><commit_msg>ChainedSelect - failsafe and bug tracking tool added<commit_after><?php
/**
 * 
 * @author <NAME> <<EMAIL>> and <NAME> <<EMAIL>>
 * @copyright Copyright &copy; 2008, Telaxus LLC
 * @license MIT
 * @version 1.0
 * @package epesi-Utils
 * @subpackage ChainedSelect
 */
if(!isset($_POST['values']) || !isset($_POST['dest_id']) || !isset($_POST['cid']))
	die('alert(\'Invalid request\')');
	
define('JS_OUTPUT',1);
define('CID',$_POST['cid']); 
define('READ_ONLY_SESSION',true);
require_once('../../../include.php');
ModuleManager::load_modules();

$_POST['values'] = json_decode($_POST['values']);
$_POST['parameters'] = json_decode($_POST['parameters']);
if (isset($_POST['defaults'])) $_POST['defaults'] = json_decode($_POST['defaults']);
else $_POST['defaults'] = null;
$_REQUEST['values'] = $_GET['values'] = $_POST['values'];
$_REQUEST['defaults'] = $_GET['defaults'] = $_POST['defaults'];
$_REQUEST['parameters'] = $_GET['parameters'] = $_POST['parameters'];

if (!isset($_SESSION['client']['utils_chainedselect'][$_POST['dest_id']])) {
	// bug tracking
	error_log(print_r($_POST,true)."\n-----------------------------------------\n".print_r($_SESSION['client']['utils_chainedselect'],true)."\n==============================================\n",3,'data/chainselect.log');
} else {
	require_once($_SESSION['client']['utils_chainedselect'][$_POST['dest_id']]);
}
?>
{'fraction_non_alphanumeric': 0.2808277027027027, 'fraction_numerical': 0.00633445945945946, 'mean_word_length': 7.371024734982332, 'pattern_counts': {'":': 0, '<': 17, '<?xml version=': 0, '>': 17, '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': '3850423', 'n_tokens_mistral': 740, 'n_tokens_neox': 728, 'n_words': 116}