<commit_before><?php
namespace Cetera;
include_once('common_bo.php');
header('Content-type: application/json; charset=UTF-8');

$exclude = -1;
if (isset($_GET['exclude'])) $exclude = (int)$_GET['exclude'];
$rule = Util::get('rule');
$nolink = Util::get('nolink', TRUE);
$only = Util::get('only');
$materials = Util::get('materials', TRUE);
$nocatselect = Util::get('nocatselect', TRUE);
$norootselect = Util::get('norootselect', TRUE);
$exclude_mat = Util::get('exclude_mat', TRUE);
$matsort = Util::get('matsort');

$nodes = [];
$node = $_REQUEST['node'];

if ($only) {
	$od = ObjectDefinition::findById($only); 
	$only = $od->id;	
}

if ($user->hasRight(GROUP_CONTENT)) {
    $nodes[] = array(
        'text' => 'root',<commit_msg>bug fix<commit_after><?php
namespace Cetera;
include_once('common_bo.php');
header('Content-type: application/json; charset=UTF-8');

$exclude = -1;
if (isset($_GET['exclude'])) $exclude = (int)$_GET['exclude'];
$rule = Util::get('rule');
$nolink = Util::get('nolink', TRUE);
$only = Util::get('only');
$materials = Util::get('materials', TRUE);
$nocatselect = Util::get('nocatselect', TRUE);
$norootselect = Util::get('norootselect', TRUE);
$exclude_mat = Util::get('exclude_mat', TRUE);
$matsort = Util::get('matsort');

$nodes = [];
$node = $_REQUEST['node'];

if ($only) {
	$od = ObjectDefinition::findById($only); 
	$only = $od->id;	
}

if (!$user->hasRight(GROUP_CONTENT)) {
    $nodes[] = array(
        'text' => 'root',
{'fraction_non_alphanumeric': 0.2402464065708419, 'fraction_numerical': 0.0027378507871321013, 'mean_word_length': 6.614583333333333, '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': '207273', 'n_tokens_mistral': 544, 'n_tokens_neox': 526, 'n_words': 98}