<commit_before>{include file="documentHeader"}
<head>
	<title>{$source->name} - {PAGE_TITLE}</title>

	{include file='headInclude' sandbox=false}
	{* <link rel="alternate" type="application/rss+xml" href="index.php?page=Feed&amp;type=RSS2" title="RSS2" />
	<link rel="alternate" type="application/atom+xml" href="index.php?page=Feed&amp;type=Atom" title="Atom" /> *}
</head>
<body>
{include file='header' sandbox=false}

<div class="mainHeadline">
	<img src="{icon}indexL.png{/icon}" alt = "" />
	<div class="headlineContainer">
		<h2>{$source->name}</h2>
		<p></p>
	</div>
</div>

{if $userMessages|isset}{@$userMessages}{/if}

{if $builds|count > 0}
<div class="yform">
	<fieldset>
		<legend>
			{lang}pb.build.existingArchives{/lang}
		</legend>

		<div id="existingArchivesScroll">
			<table class="full">
				<thead>
					<tr>
						<th>
							{lang}pb.build.filename{/lang}
						</th>
						<th>
							{lang}pb.build.packageName{/lang}
						</th>
						<th>
							{lang}pb.build.packageVersion{/lang}
						</th>
						<th>
							{lang}pb.global.action{/lang}
						</th>
					</tr>
				</thead>

				<tbody>
					{foreach from=$builds item=build}
					<tr class="deletable">
						{assign var=filenameEncoded value=$build.filename|urlencode}
						<td>
							<a href="index.php?page=DownloadPackage&amp;sourceID={$source->sourceID}&amp;filename={$filenameEncoded}{@SID_ARG_2ND}">{$build.filename}</a>
						</td>
						<td>
							{$build.name}
						</td>
						<td>
							{$build.version}
						</td>
						<td class="sourceGo">
							<a href="index.php?action=DeleteArchive&amp;sourceID={$source->sourceID}&amp;filename={$filenameEncoded}{@SID_ARG_2ND}" class="deleteButton"><img src="{@RELATIVE_WCF_DIR}icon/deleteS.png" alt="{lang itemName=$build.name}pb.global.action.delete.sure{/lang}" title="{lang itemName=$build.name}pb.global.action.delete.sure{/lang}" longdesc="{lang itemName=$build.name}pb.global.action.delete.sure{/lang}" /></a>
						</td>
					</tr>
					{/foreach}
				</tbody>
			</table>
		</div>
	</fieldset>
</div>
{/if}

<form method="post" action="index.php?action=SetBuildOptions" class="yform columnar">
	<fieldset>
		<legend>{lang}pb.build.option.title{/lang}</legend>

		<div class="type-text">
			<label for="buildDirectory">{lang}pb.build.option.buildDirectory{/lang}</label>

			{$source->buildDirectory}
		</div>

		{if $source->scm != 'none'}
		<div class="type-text">
			<label for="revision">{lang}pb.build.option.revision{/lang}</label>

			{lang}pb.build.option.revision.{if $source->revision == $source->getHeadRevision()}current{else}outdated{/if}{/lang}
		</div>
		{/if}

		<div class="type-select">
			<label for="directory">{lang}pb.build.option.directories{/lang}</label>

			{if $directories|empty}
				{lang}pb.source.error.directories.noData{/lang}
			{else}
			<select name="directory" id="directory">
    				{htmloptions options=$directories selected=$currentDirectory}
			</select>
			{/if}
		</div>

		<div class="type-button">
			<input type="hidden" name="sourceID" value="{$source->sourceID}" />
			{@SID_INPUT_TAG}
			<input type="submit" name="changeBuildOptions" value="{lang}pb.build.option.change{/lang}" />

		</div>
	</fieldset>
</form>

<form method="post" action="index.php?action=Checkout" class="yform columnar">
	<fieldset>
		<legend>{lang}pb.source.checkout.title{/lang}</legend>
		{if $source->revision == $source->getHeadRevision()}<div class="warning">{lang}pb.source.checkout.isCurrent{/lang}</div>{/if}
		<div class="type-check">
			<input type="checkbox" name="rebuildPackageData" id="rebuildPackageData" value="1" />
			<label for="rebuildPackageData">{lang}pb.source.rebuildPackageData{/lang}</label>
		</div>

		<div class="type-button">
			<input type="hidden" name="sourceID" value="{$source->sourceID}" />
			{@SID_INPUT_TAG}
			<input type="submit" name="changeBuildOptions" value="{lang}pb.source.checkout.do{/lang}" />

		</div>
	</fieldset>
</form>

{if $currentDirectory === null}
<form method="post" action="index.php?form=PreferredPackage" class="yform columnar">
	<fieldset>
		<legend>{lang}pb.build.title{/lang}</legend>

		<div class="type-select">
			<label for="filename">{lang}pb.build.option.filename{/lang}</label>

			<select name="filename" id="filename">
    				{htmloptions options=$filenames selected=$currentFilename}
			</select>
		</div>
		<div class="type-check">
			<input type="checkbox" name="otherSources" id="otherSources" value="1" />
			<label for="otherSources">{lang}pb.build.option.otherSources{/lang}</label>
		</div>
		<div class="type-button">
			<input type="hidden" name="sourceID" value="{$source->sourceID}" />
			{@SID_INPUT_TAG}
			<input type="submit" name="buildPackage" value="{lang}pb.build.do{/lang}" /><commit_msg>Check of current directory corrected<commit_after>{include file="documentHeader"}
<head>
	<title>{$source->name} - {PAGE_TITLE}</title>

	{include file='headInclude' sandbox=false}
	{* <link rel="alternate" type="application/rss+xml" href="index.php?page=Feed&amp;type=RSS2" title="RSS2" />
	<link rel="alternate" type="application/atom+xml" href="index.php?page=Feed&amp;type=Atom" title="Atom" /> *}
</head>
<body>
{include file='header' sandbox=false}

<div class="mainHeadline">
	<img src="{icon}indexL.png{/icon}" alt = "" />
	<div class="headlineContainer">
		<h2>{$source->name}</h2>
		<p></p>
	</div>
</div>

{if $userMessages|isset}{@$userMessages}{/if}

{if $builds|count > 0}
<div class="yform">
	<fieldset>
		<legend>
			{lang}pb.build.existingArchives{/lang}
		</legend>

		<div id="existingArchivesScroll">
			<table class="full">
				<thead>
					<tr>
						<th>
							{lang}pb.build.filename{/lang}
						</th>
						<th>
							{lang}pb.build.packageName{/lang}
						</th>
						<th>
							{lang}pb.build.packageVersion{/lang}
						</th>
						<th>
							{lang}pb.global.action{/lang}
						</th>
					</tr>
				</thead>

				<tbody>
					{foreach from=$builds item=build}
					<tr class="deletable">
						{assign var=filenameEncoded value=$build.filename|urlencode}
						<td>
							<a href="index.php?page=DownloadPackage&amp;sourceID={$source->sourceID}&amp;filename={$filenameEncoded}{@SID_ARG_2ND}">{$build.filename}</a>
						</td>
						<td>
							{$build.name}
						</td>
						<td>
							{$build.version}
						</td>
						<td class="sourceGo">
							<a href="index.php?action=DeleteArchive&amp;sourceID={$source->sourceID}&amp;filename={$filenameEncoded}{@SID_ARG_2ND}" class="deleteButton"><img src="{@RELATIVE_WCF_DIR}icon/deleteS.png" alt="{lang itemName=$build.name}pb.global.action.delete.sure{/lang}" title="{lang itemName=$build.name}pb.global.action.delete.sure{/lang}" longdesc="{lang itemName=$build.name}pb.global.action.delete.sure{/lang}" /></a>
						</td>
					</tr>
					{/foreach}
				</tbody>
			</table>
		</div>
	</fieldset>
</div>
{/if}

<form method="post" action="index.php?action=SetBuildOptions" class="yform columnar">
	<fieldset>
		<legend>{lang}pb.build.option.title{/lang}</legend>

		<div class="type-text">
			<label for="buildDirectory">{lang}pb.build.option.buildDirectory{/lang}</label>

			{$source->buildDirectory}
		</div>

		{if $source->scm != 'none'}
		<div class="type-text">
			<label for="revision">{lang}pb.build.option.revision{/lang}</label>

			{lang}pb.build.option.revision.{if $source->revision == $source->getHeadRevision()}current{else}outdated{/if}{/lang}
		</div>
		{/if}

		<div class="type-select">
			<label for="directory">{lang}pb.build.option.directories{/lang}</label>

			{if $directories|empty}
				{lang}pb.source.error.directories.noData{/lang}
			{else}
			<select name="directory" id="directory">
    				{htmloptions options=$directories selected=$currentDirectory}
			</select>
			{/if}
		</div>

		<div class="type-button">
			<input type="hidden" name="sourceID" value="{$source->sourceID}" />
			{@SID_INPUT_TAG}
			<input type="submit" name="changeBuildOptions" value="{lang}pb.build.option.change{/lang}" />

		</div>
	</fieldset>
</form>

<form method="post" action="index.php?action=Checkout" class="yform columnar">
	<fieldset>
		<legend>{lang}pb.source.checkout.title{/lang}</legend>
		{if $source->revision == $source->getHeadRevision()}<div class="warning">{lang}pb.source.checkout.isCurrent{/lang}</div>{/if}
		<div class="type-check">
			<input type="checkbox" name="rebuildPackageData" id="rebuildPackageData" value="1" />
			<label for="rebuildPackageData">{lang}pb.source.rebuildPackageData{/lang}</label>
		</div>

		<div class="type-button">
			<input type="hidden" name="sourceID" value="{$source->sourceID}" />
			{@SID_INPUT_TAG}
			<input type="submit" name="changeBuildOptions" value="{lang}pb.source.checkout.do{/lang}" />

		</div>
	</fieldset>
</form>

{if $currentDirectory !== null}
<form method="post" action="index.php?form=PreferredPackage" class="yform columnar">
	<fieldset>
		<legend>{lang}pb.build.title{/lang}</legend>

		<div class="type-select">
			<label for="filename">{lang}pb.build.option.filename{/lang}</label>

			<select name="filename" id="filename">
    				{htmloptions options=$filenames selected=$currentFilename}
			</select>
		</div>
		<div class="type-check">
			<input type="checkbox" name="otherSources" id="otherSources" value="1" />
			<label for="otherSources">{lang}pb.build.option.otherSources{/lang}</label>
		</div>
		<div class="type-button">
			<input type="hidden" name="sourceID" value="{$source->sourceID}" />
			{@SID_INPUT_TAG}
			<input type="submit" name="buildPackage" value="{lang}pb.build.do{/lang}" />
{'fraction_non_alphanumeric': 0.20618124672603458, 'fraction_numerical': 0.0018858040859088528, 'mean_word_length': 4.508366993652626, 'pattern_counts': {'":': 0, '<': 231, '<?xml version=': 0, '>': 259, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 4}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 2, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '369881', 'n_tokens_mistral': 4011, 'n_tokens_neox': 3397, 'n_words': 484}