<commit_before>{if $hasVideo}
<script type="text/javascript" src="ext/video-js/video.js"></script>
<script type="text/javascript">
	$(document).ready(function() {
        	$("video").VideoJS()
        });
</script>
<style type="text/css">
	@import url("ext/video-js/video-js.css");
</style>

<!-- Begin VideoJS -->
<div class="video-js-box">
	<!-- Using the Video for Everybody Embed Code http://camendesign.com/code/video_for_everybody -->
        <video id="video_1" class="video-js" width="{$fileInfo->video->transcode->{360}->width}" height="360" controls="controls" preload="auto" poster="?action=getCacheObject&amp;id={$fileInfo->_id}&amp;type=thumbnail_360">
        	<source src="?action=getCacheObject&amp;id={$fileInfo->_id}&amp;type=transcode_360" type='video/webm; codecs="vp8, vorbis"' />
        </video>
        <!-- Download links provided for devices that can't play video in the browser. -->
        <p class="vjs-no-video"><strong>Download Video:</strong>
        	<a href="?action=getCacheObject&amp;id={$fileInfo->_id}&amp;type=transcode_360">WebM</a>,
                <!-- Support VideoJS by keeping this link. -->
                <a href="http://videojs.com">HTML5 Video Player</a> by VideoJS
        </p>
</div>
<!-- End VideoJS -->
{elseif $hasStill}
	<img width="{$fileInfo->video->thumbnail->{360}->width}" height="360" src="?action=getCacheObject&amp;id={$fileInfo->_id}&amp;type=thumbnail_360" alt="Video Still" title="Video Still">
{/if}

<div id="fileInfo">
	<form method="post">
		<input type="hidden" name="id" value="{$fileInfo->_id}" />
		<input type="hidden" name="action" value="updateFileInfo">

		<table class="fileInfo">
			<tr>
				<th>Name {if $isOwner}<img src="i/pencil.png" alt="Edit" />{/if}</th>
				<td>
					<span class="showView">{$fileInfo->fileName}</span>
					<input class="editView" type="text" size="50" name="fileName" value="{$fileInfo->fileName}"/>
				</td>
			</tr>

			<tr>
				<th>Size</th>
				<td>
					{$fileInfo->fileSize|to_human_size}
				</td>
			</tr>

                        <tr>
                                <th>Date</th>
                                <td>
                                        {$fileInfo->fileDate|date_format:"%d %b  %H:%M"}
                                </td>
                        </tr>

			<tr>
				<th>Tags {if $isOwner}<img src="i/pencil.png" alt="Edit" />{/if}</th>
				<td>
					<span class="showView">
					{foreach $fileInfo->fileTags as $tag} 
						<a href="?action=showFiles&tag={$tag}">{$tag}</a>
					{/foreach}
					</span>
					<input class="editView" type="text" size="50" name="fileTags" value="{', '|implode:$fileInfo->fileTags}" />
				</td>
			</tr>

			<tr>
				<th>License {if $isOwner}<img src="i/pencil.png" alt="Edit" />{/if}</th>
				<td>
					<span class="showView">
 	                                	{if $fileInfo->fileLicense != 'none'}
                                        		<img src="i/{$fileInfo->fileLicense}.png" alt="{$allLicenses[$fileInfo->fileLicense]}" />
						{else}
							<em>No License Specified</em>
                                        	{/if}
					</span>
					{html_options class="editView" name='fileLicense' options=$allLicenses selected=$fileInfo->fileLicense}
				</td>
			</tr>

			<tr>
				<th>Description {if $isOwner}<img src="i/pencil.png" alt="Edit" />{/if}</th>
				<td>
					<span class="showView">{$fileInfo->fileDescription}</span>
					<textarea class="editView" name="fileDescription" rows="5" cols="55">{$fileInfo->fileDescription}</textarea>
				</td>
			</tr>

			{if $isOwner && $groupShare && !empty($userGroups)}
                        <tr>
				<th>Group Sharing</th>
				<td>
        	                	{html_checkboxes name='fileGroups' options=$userGroups selected=$fileInfo->fileGroups}
				</td>
			</tr>
			{/if}

			{if $isOwner && $emailShare}
                        <tr>
				<th>Email Invites {if $isOwner}<img src="i/pencil.png" alt="Edit" />{/if}</th>
				<td>
					<span class="showView">{', '|implode:array_values((array)$fileInfo->fileTokens)}</span>				
					<textarea class="editView" rows="5" cols="55" name="fileTokens">{', '|implode:array_values((array)$fileInfo->fileTokens)}</textarea>
				</td>
			</tr>
			{/if}

			<tr><commit_msg>restore transcoding status, make editing of licenses work (better)<commit_after>{if $hasVideo}
<script type="text/javascript" src="ext/video-js/video.js"></script>
<script type="text/javascript">
	$(document).ready(function() {
        	$("video").VideoJS()
        });
</script>
<style type="text/css">
	@import url("ext/video-js/video-js.css");
</style>

<!-- Begin VideoJS -->
<div class="video-js-box">
	<!-- Using the Video for Everybody Embed Code http://camendesign.com/code/video_for_everybody -->
        <video id="video_1" class="video-js" width="{$fileInfo->video->transcode->{360}->width}" height="360" controls="controls" preload="auto" poster="?action=getCacheObject&amp;id={$fileInfo->_id}&amp;type=thumbnail_360">
        	<source src="?action=getCacheObject&amp;id={$fileInfo->_id}&amp;type=transcode_360" type='video/webm; codecs="vp8, vorbis"' />
        </video>
        <!-- Download links provided for devices that can't play video in the browser. -->
        <p class="vjs-no-video"><strong>Download Video:</strong>
        	<a href="?action=getCacheObject&amp;id={$fileInfo->_id}&amp;type=transcode_360">WebM</a>,
                <!-- Support VideoJS by keeping this link. -->
                <a href="http://videojs.com">HTML5 Video Player</a> by VideoJS
        </p>
</div>
<!-- End VideoJS -->
{elseif $hasStill}
	<img width="{$fileInfo->video->thumbnail->{360}->width}" height="360" src="?action=getCacheObject&amp;id={$fileInfo->_id}&amp;type=thumbnail_360" alt="Video Still" title="Video Still">
{/if}

<div id="fileInfo">
	<form method="post">
		<input type="hidden" name="id" value="{$fileInfo->_id}" />
		<input type="hidden" name="action" value="updateFileInfo">

		<table class="fileInfo">
			<tr>
				<th>Name {if $isOwner}<img src="i/pencil.png" alt="Edit" />{/if}</th>
				<td>
					<span class="showView">{$fileInfo->fileName}</span>
					<input class="editView" type="text" size="50" name="fileName" value="{$fileInfo->fileName}"/>
				</td>
			</tr>

			<tr>
				<th>Size</th>
				<td>
					{$fileInfo->fileSize|to_human_size}
				</td>
			</tr>

                        <tr>
                                <th>Date</th>
                                <td>
                                        {$fileInfo->fileDate|date_format:"%d %b  %H:%M"}
                                </td>
                        </tr>

			<tr>
				<th>Tags {if $isOwner}<img src="i/pencil.png" alt="Edit" />{/if}</th>
				<td>
					<span class="showView">
					{foreach $fileInfo->fileTags as $tag} 
						<a href="?action=showFiles&tag={$tag}">{$tag}</a>
					{/foreach}
					</span>
					<input class="editView" type="text" size="50" name="fileTags" value="{', '|implode:$fileInfo->fileTags}" />
				</td>
			</tr>

			<tr>
				<th>License {if $isOwner}<img src="i/pencil.png" alt="Edit" />{/if}</th>
				<td>
					<span class="showView">
 	                                	{if $fileInfo->fileLicense != 'none'}
                                        		<img src="i/{$fileInfo->fileLicense}.png" alt="{$allLicenses[$fileInfo->fileLicense]}" />
						{else}
							<em>No License Specified</em>
                                        	{/if}
					</span>
					<span class="editView">
						{html_options name='fileLicense' options=$allLicenses selected=$fileInfo->fileLicense}
					</span>
				</td>
			</tr>

			<tr>
				<th>Description {if $isOwner}<img src="i/pencil.png" alt="Edit" />{/if}</th>
				<td>
					<span class="showView">{$fileInfo->fileDescription}</span>
					<textarea class="editView" name="fileDescription" rows="5" cols="55">{$fileInfo->fileDescription}</textarea>
				</td>
			</tr>

			{if isset($fileInfo->video) && $fileInfo->video->transcodeStatus != 'DONE'}
		        <tr>
                    		<th>Transcode</th>
                        	<td>
                                        {if $fileInfo->video->transcodeStatus == 'PROGRESS'}
                                                <em>{$fileInfo->video->transcodeProgress}%</em>
					{elseif $fileInfo->video->transcodeStatus == 'WAITING'}
						<em>Waiting</em>
                                        {/if}
	                        </td>
        	        </tr>
			{/if}   

			{if $isOwner && $groupShare && !empty($userGroups)}
                        <tr>
				<th>Group Sharing</th>
				<td>
        	                	{html_checkboxes name='fileGroups' options=$userGroups selected=$fileInfo->fileGroups}
				</td>
			</tr>
			{/if}

			{if $isOwner && $emailShare}
                        <tr>
				<th>Email Invites {if $isOwner}<img src="i/pencil.png" alt="Edit" />{/if}</th>
				<td>
					<span class="showView">{', '|implode:array_values((array)$fileInfo->fileTokens)}</span>				
					<textarea class="editView" rows="5" cols="55" name="fileTokens">{', '|implode:array_values((array)$fileInfo->fileTokens)}</textarea>
				</td>
			</tr>
			{/if}

			<tr>
{'fraction_non_alphanumeric': 0.19870386643233742, 'fraction_numerical': 0.00812829525483304, 'mean_word_length': 2.4751908396946565, 'pattern_counts': {'":': 0, '<': 225, '<?xml version=': 0, '>': 290, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 17, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '5676598', 'n_tokens_mistral': 3462, 'n_tokens_neox': 2973, 'n_words': 516}