<commit_before><?php

function Assets_0_3()
{
	$app = Q::app();
	$streamName = "Assets/plans";

	// if stream already exist - exit
	if (Streams_Stream::fetch($app, $app, $streamName)) {
		return;
	}

	Streams::create($app, $app, 'Streams/category', 
		array('name' => $streamName, 'title' => 'Subscription Plans')
	);
}

Assets_0_3();<commit_msg>Updated installation script where Assets/plans category created. Create Assets/access rows for admins.<commit_after><?php

function Assets_0_3()
{
	$app = Q::app();
	$streamName = "Assets/plans";

	// if stream already exist - exit
	if (Streams_Stream::fetch($app, $app, $streamName)) {
		return;
	}

	Streams::create($app, $app, 'Streams/category',
		array('name' => $streamName)
	);

	$adminLabels = array("Users/owners", "Users/admins", "Assets/admins");
	foreach ($adminLabels as $adminLabel) {
		$access = new Streams_Access();
		$access->publisherId = "";
		$access->streamName = $streamName;
		$access->ofContactLabel = $adminLabel;
		if ($access->retrieve()) {
			continue;
		}
		$access->readLevel = 40;
		$access->writeLevel = 40;
		$access->adminLevel = 40;
		$access->save();
	}
}

Assets_0_3();
{'fraction_non_alphanumeric': 0.18386816999132696, 'fraction_numerical': 0.012142237640936688, 'mean_word_length': 4.712871287128713, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 14, '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': '3106774', 'n_tokens_mistral': 446, 'n_tokens_neox': 417, 'n_words': 85}