<commit_before><?php
include_once Path::resolve ( "ULICMS_ROOT/lib/formatter.php" );
$acl = new ACL ();
if (! $acl->hasPermission ( "install_packages" )) {
	noperms ();
} else {
	if (StringHelper::isNotNullOrEmpty ( $_REQUEST ["file"] ) and endsWith ( $_REQUEST ["file"], ".sin" )) {
		$tempfile = Path::resolve ( "ULICMS_TMP/" . basename ( $_REQUEST ["file"] ) );
		if (file_exists ( $tempfile )) {
			$pkg = new SinPackageInstaller ( $tempfile );
			$installable = $pkg->isInstallable ();
			$errors = $pkg->getErrors ();
			
			$id = $pkg->getProperty ( "id" );
			$version = $pkg->getProperty ( "version" );
			$name = $pkg->getProperty ( "name" );
			$description = $pkg->getProperty ( "description" );
			$compatible_from = $pkg->getProperty ( "compatible_from" );
			$compatible_to = $pkg->getProperty ( "compatible_to" );
			$dependencies = $pkg->getProperty ( "dependencies" );
			$license = $pkg->getProperty ( "license" );
			$screenshot = $pkg->getProperty ( "screenshot" );
			$size = intval ( $pkg->getSize () );
			$size = formatSizeUnits ( $size );
			?>
<h1><?php
			
			Template::escape ( $id );
			?></h1>
<table>
			<?php
			if ($name) {
				?>
			<tr>
		<td><strong><?php translate("name")?></strong></td>
		<td><?php Template::escape($name)?></td>
	</tr>		
			<?php }?>
				
			<tr>
		<td><strong><?php translate("version")?></strong></td>
		<td><?php Template::escape($version)?></td>
	</tr>
	<tr>
		<td><strong><?php translate("size")?></strong></td>
		<td><?php Template::escape($size)?></td>
	</tr>	
	
			<?php<commit_msg>screenshot wieder eingefügt<commit_after><?php
include_once Path::resolve ( "ULICMS_ROOT/lib/formatter.php" );
$acl = new ACL ();
if (! $acl->hasPermission ( "install_packages" )) {
	noperms ();
} else {
	if (StringHelper::isNotNullOrEmpty ( $_REQUEST ["file"] ) and endsWith ( $_REQUEST ["file"], ".sin" )) {
		$tempfile = Path::resolve ( "ULICMS_TMP/" . basename ( $_REQUEST ["file"] ) );
		if (file_exists ( $tempfile )) {
			$pkg = new SinPackageInstaller ( $tempfile );
			$installable = $pkg->isInstallable ();
			$errors = $pkg->getErrors ();
			
			$id = $pkg->getProperty ( "id" );
			$version = $pkg->getProperty ( "version" );
			$name = $pkg->getProperty ( "name" );
			$description = $pkg->getProperty ( "description" );
			$compatible_from = $pkg->getProperty ( "compatible_from" );
			$compatible_to = $pkg->getProperty ( "compatible_to" );
			$dependencies = $pkg->getProperty ( "dependencies" );
			$license = $pkg->getProperty ( "license" );
			$screenshot = $pkg->getProperty ( "screenshot" );
			$size = intval ( $pkg->getSize () );
			$size = formatSizeUnits ( $size );
			?>
<h1><?php
			
			Template::escape ( $id );
			?></h1>
<table>
			<?php
			if ($name) {
				?>
			<tr>
		<td><strong><?php translate("name")?></strong></td>
		<td><?php Template::escape($name)?></td>
	</tr>		
			<?php }?>
				
			<tr>
		<td><strong><?php translate("version")?></strong></td>
		<td><?php Template::escape($version)?></td>
	</tr>
	<tr>
		<td><strong><?php translate("size")?></strong></td>
		<td><?php Template::escape($size)?></td>
	</tr>	
	<?php
			
			if ($screenshot) {
				?>
				<tr>
		<td></td>
		<td><img src="data:<?php Template::escape($screenshot);?>"
			alt="Screenshot" class="responsive-image"></td>
	</tr>
				<?php } ?>
			<?php
{'fraction_non_alphanumeric': 0.23100211928549802, 'fraction_numerical': 0.0012110202845897668, 'mean_word_length': 3.865979381443299, 'pattern_counts': {'":': 0, '<': 89, '<?xml version=': 0, '>': 113, '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': '7460029', 'n_tokens_mistral': 1310, 'n_tokens_neox': 1181, 'n_words': 211}