<commit_before><?php

//this script may only be included - so its better to die if called directly.
if (strpos($_SERVER["SCRIPT_NAME"],basename(__FILE__)) !== false) {
  header("location: index.php");
  exit;
}
global $user;

if ($user && isset($feature_tasks) && $feature_tasks == 'y' && isset($tiki_p_tasks) && $tiki_p_tasks == 'y') {
	global $tasklib;

	if (!is_object($tasklib)) {
		global $dbTiki;
		include "lib/tasks/tasklib.php";
	}
    $smarty->assign('ownurl', $tikilib->httpPrefix().$_SERVER["SCRIPT_NAME"].urlencode($_SERVER["QUERY_STRING"]));
	$user_groups = $tasklib->get_groups_to_user_with_permissions($user,'tiki_p_tasks_receive');

	if (isset($_REQUEST["modTasksSearch"])) {
		check_ticket('user-prefs');
        $user_group = $_REQUEST["user_group"];
		$tikilib->set_user_preference($user, 'tasks_modLastSelectedGroup', $user_group);<commit_msg>[FIX] missing ? in url-thx FrankP<commit_after><?php

//this script may only be included - so its better to die if called directly.
if (strpos($_SERVER["SCRIPT_NAME"],basename(__FILE__)) !== false) {
  header("location: index.php");
  exit;
}
global $user;

if ($user && isset($feature_tasks) && $feature_tasks == 'y' && isset($tiki_p_tasks) && $tiki_p_tasks == 'y') {
	global $tasklib;

	if (!is_object($tasklib)) {
		global $dbTiki;
		include "lib/tasks/tasklib.php";
	}
    $smarty->assign('ownurl', $tikilib->httpPrefix().$_SERVER["SCRIPT_NAME"].'?'.urlencode($_SERVER["QUERY_STRING"]));
	$user_groups = $tasklib->get_groups_to_user_with_permissions($user,'tiki_p_tasks_receive');

	if (isset($_REQUEST["modTasksSearch"])) {
		check_ticket('user-prefs');
        $user_group = $_REQUEST["user_group"];
		$tikilib->set_user_preference($user, 'tasks_modLastSelectedGroup', $user_group);
{'fraction_non_alphanumeric': 0.18493150684931506, 'fraction_numerical': 0.0, 'mean_word_length': 6.427966101694915, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 11, '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': '5375106', 'n_tokens_mistral': 631, 'n_tokens_neox': 615, 'n_words': 105}