<commit_before><?php

function Streams_0_8_7_Streams_mysql()
{
	$app = Q::app();
	$communityId = Users::communityId();
	
	$stream = array(
		'publisherId' => $communityId, 
		'name' => "Streams/images/",
		'type' => 'Streams/template', 
		'title' => 'Image Gallery',
		'icon' => 'default',
		'content' => '',
		'attributes' => null,
		'readLevel' => Streams::$READ_LEVEL['messages'], 
		'writeLevel' => Streams::$WRITE_LEVEL['close'], 
		'adminLevel' => Streams::$ADMIN_LEVEL['invite']
	);
	$access = array(
		'publisherId' => $communityId, 
		'streamName' => "Streams/images/",
		'ofUserId' => '',
		'grantedByUserId' => null,
		'ofContactLabel' => "$app/admins",
		'readLevel' => Streams::$READ_LEVEL['messages'], 
		'writeLevel' => Streams::$WRITE_LEVEL['close'], 
		'adminLevel' => Streams::$ADMIN_LEVEL['invite']
	);
	Streams_Stream::insert($stream)->execute();
	Streams_Access::insert($access)->execute();
	$stream['name'] = $access['streamName'] = 'Streams/image/';
	$stream['icon'] = 'Streams/image';
	$stream['title'] = 'Untitled Image';<commit_msg>Made Streams templates global, not just for community<commit_after><?php

function Streams_0_8_7_Streams_mysql()
{
	$app = Q::app();
	$communityId = Users::communityId();
	
	$stream = array(
		'publisherId' => '', 
		'name' => "Streams/images/",
		'type' => 'Streams/template', 
		'title' => 'Image Gallery',
		'icon' => 'default',
		'content' => '',
		'attributes' => null,
		'readLevel' => Streams::$READ_LEVEL['messages'], 
		'writeLevel' => Streams::$WRITE_LEVEL['close'], 
		'adminLevel' => Streams::$ADMIN_LEVEL['invite']
	);
	$access = array(
		'publisherId' => '', 
		'streamName' => "Streams/images/",
		'ofUserId' => '',
		'grantedByUserId' => null,
		'ofContactLabel' => "$app/admins",
		'readLevel' => Streams::$READ_LEVEL['messages'], 
		'writeLevel' => Streams::$WRITE_LEVEL['close'], 
		'adminLevel' => Streams::$ADMIN_LEVEL['invite']
	);
	Streams_Stream::insert($stream)->execute();
	Streams_Access::insert($access)->execute();
	$stream['name'] = $access['streamName'] = 'Streams/image/';
	$stream['icon'] = 'Streams/image';
	$stream['title'] = 'Untitled Image';
{'fraction_non_alphanumeric': 0.22893258426966293, 'fraction_numerical': 0.0028089887640449437, 'mean_word_length': 5.762658227848101, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 43, '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': '2560529', 'n_tokens_mistral': 815, 'n_tokens_neox': 771, 'n_words': 116}