<commit_before><div class="wrap">
	<div id="icon-options-general" class="icon32"></div>
	<h2>Hoy Brightcove Media Importer Plugin</h2>
	
	<div id="poststuff">
		<div id="post-body" class="metabox-holder columns-2">
			<!-- main content -->
			<div id="post-body-content">
				<div class="meta-box-sortables ui-sortable">
					<div class="postbox">
						<div class="inside">
							<h3>Current Options</h3>
							<p><?php _e( 'Tag to use on Brightcove videos that are ready to publish', 'hoy-brightcove-importer' ); ?>: "<strong><?php _e( $hoy_brightcove_importer_ready_tag, 'hoy-brightcove-importer' ); ?></strong>"</p>
							<pre style="display: none;"><?php var_dump( $options ); ?></pre>

							<form name="hoy_brightcove_importer_reset_options_form" method="post" action="">
								<input type="hidden" name="hoy_brightcove_importer_reset_options_form_submitted" value="Y">
								<p>	
									<?php submit_button( 'Reset Options', $type = 'delete', $name = 'hoy_brightcove_importer_reset_options_form_submit', $wrap = true, $other_attributes = null ); ?>
								</p>
							</form>
						</div> <!-- .inside -->
					</div> <!-- .postbox -->

<?php if( !isset( $hoy_brightcove_importer_api_key ) || $hoy_brightcove_importer_api_key == '' ): ?>
					<div class="postbox">
						<h3><span>Let's get started!</span></h3>
						<div class="inside">
							<form name="hoy_brightcove_importer_api_key_form" method="post" action="">
								<input type="hidden" name="hoy_brightcove_importer_api_key_form_submitted" value="Y">
								<table class="form-table">
									<tr valign="top">
										<td scope="row">
											<label for="hoy_brightcove_importer_api_key"><?php _e( 'Brightcove Media API Key'); ?></label>
										</td>
										<td>
											<input name="hoy_brightcove_importer_api_key" id="hoy_brightcove_importer_api_key" type="text" value="" class="regular-text" />
										</td>
									</tr>
								</table>
								<p>	
									<input class="button-primary" type="submit" name="hoy_brightcove_importer_api_key_form_submit" value="<?php _e( 'Save', 'hoy-brightcove-importer' ); ?>" /> 
								</p>
							</form>
						</div> <!-- .inside -->
					</div> <!-- .postbox -->
<?php else: ?>
					<div class="postbox">
						<form name="hoy_brightcove_importer_update_videos_form" method="post" action="">
							<input type="hidden" name="hoy_brightcove_importer_update_videos_form_submitted" value="Y">
							<p>	
								<input class="button-primary" type="submit" name="hoy_brightcove_importer_update_videos_submit" value="<?php _e( 'Get New Videos', 'hoy-brightcove-importer' ); ?>" /> 
							</p>
						</form>
						<form name="hoy_brightcove_importer_create_posts_form" method="post" action="">
							<input type="hidden" name="hoy_brightcove_importer_create_posts_form_submitted" value="Y">
							<p>	
								<input class="button-primary" type="submit" name="hoy_brightcove_importer_create_posts_submit" value="<?php _e( 'Import Videos to Posts', 'hoy-brightcove-importer' ); ?>" /> 
							</p>
						</form>
						<h3>
							<span><?php _e( 'New Brightcove Videos', 'hoy-brightcove-importer' ); ?> (<?php echo count( $hoy_brightcove_importer_new_videos ); ?>)</span>
						</h3>
						<span><?php _e( 'Last Update:', 'hoy-brightcove-importer' ); ?> <?php if( $hoy_brightcove_importer_last_updated == 0) { _e( 'Never', 'hoy-brightcove-importer' ); } else { echo date( 'r T', (int) $hoy_brightcove_importer_last_updated ); } ?></span>
						<div class="inside">
<?php if ( count( $hoy_brightcove_importer_new_videos ) > 0 ) : ?>
							<table id="new_videos" class="display">
								<thead>
									<tr>
										<th>Video ID</th>
										<th>Thumbnail</th>
										<th>Name</th>
										<th>Tags</th>
										<th>Last Modified</th>
									</tr>
								</thead>
								<tbody>
<?php for( $i = 0; $i < count( $hoy_brightcove_importer_new_videos ); $i++ ): ?>
<?php 
	$video = $hoy_brightcove_importer_new_videos[$i];
?>
									<tr>
										<td><?php echo $video['id']; ?></td>
										<td><div style="max-width: 120px;"><img style="width: 100%;" src="<?php echo $video['thumbnailURL']; ?>"></div></td>
										<td><?php echo $video['name']; ?></td>
										<td><?php echo implode( ', ', $video['tags'] ); ?></td>
										<td><?php echo date( 'c', (int) ( $video['lastModifiedDate'] / 1000.0 ) ); ?></td>
									</tr>
<?php endfor; ?>
								</tbody>
							</table>
<?php endif; ?><!-- // if ( count( $hoy_brightcove_importer_new_videos ) > 0 ) -->
						</div> <!-- .inside -->
						<h3>
							<span><?php _e( 'Imported Brightcove Videos', 'hoy-brightcove-importer' ); ?> (<?php echo count( $hoy_brightcove_importer_imported_videos ); ?>)</span>
						</h3>
						<span><?php _e( 'Last Import:', 'hoy-brightcove-importer' ); ?> <?php if( $hoy_brightcove_importer_last_imported == 0) { _e( 'Never', 'hoy-brightcove-importer' ); } else { echo date( 'r T', (int) $hoy_brightcove_importer_last_imported ); } ?></span>
						<div class="inside">
<?php if ( count( $hoy_brightcove_importer_imported_videos ) > 0 ) : ?>
							<table id="imported_videos" class="display">
								<thead>
									<tr>
										<th>Video ID</th>
										<th>Thumbnail</th>
										<th>Name</th>
										<th>Tags</th>
										<th>Last Modified</th>
										<th>Post ID</th>
									</tr>
								</thead>
								<tbody>
<?php for( $i = 0; $i < count( $hoy_brightcove_importer_imported_videos ); $i++ ): ?>
<?php 
	$video = $hoy_brightcove_importer_imported_videos[$i]['video'];
	$new_post = $hoy_brightcove_importer_imported_videos[$i]['post'];
?>
									<tr>
										<td><?php echo $video['id']; ?></td>
										<td><div style="max-width: 120px;"><img style="width: 100%;" src="<?php echo $video['thumbnailURL']; ?>"></div></td>
										<td><?php echo $video['name']; ?></td>
										<td><?php echo implode( ', ', $video['tags'] ); ?></td>
										<td><?php echo date( 'c', (int) ( $video['lastModifiedDate'] / 1000.0 ) ); ?></td>
										<td>
											<?php if ( $new_post ) : ?>
												<a href="<?php echo get_permalink( $new_post['id'] ); ?>"><?php echo $new_post['id']; ?></a>
											<?php else: ?>
												Not imported!
											<?php endif; ?>
										</td>
									</tr>
<?php endfor; ?>
								</tbody>
							</table>
<?php endif; ?><!-- // if ( count( $hoy_brightcove_importer_imported_videos ) > 0 ) -->
						</div> <!-- .inside -->
					</div> <!-- .postbox -->
<?php if( $display_json == true ): ?>
					<div class="postbox">
						<h3><span>JSON Feed</span></h3>
						<div class="inside">
							<pre><code><?php var_dump( $hoy_brightcove_importer_videos ); ?></code></pre>
						</div> <!-- .inside -->
					</div> <!-- .postbox -->
<?php endif; // if( $display_json ) ?>
<?php endif; // if( !isset( $hoy_brightcove_importer_api_key ) ... ?><commit_msg>Make all displayed strings in options page translatable.<commit_after><div class="wrap">
	<div id="icon-options-general" class="icon32"></div>
	<h2><?php _e( 'Hoy Brightcove Media Importer Plugin', 'hoy-brightcove-importer' ); ?></h2>
	
	<div id="poststuff">
		<div id="post-body" class="metabox-holder columns-2">
			<!-- main content -->
			<div id="post-body-content">
				<div class="meta-box-sortables ui-sortable">
					<div class="postbox">
						<div class="inside">
							<h3><?php _e( 'Current Options', 'hoy-brightcove-importer' ); ?></h3>
							<p><?php _e( 'Tag to use on Brightcove videos that are ready to publish', 'hoy-brightcove-importer' ); ?>: "<strong><?php echo $hoy_brightcove_importer_ready_tag; ?></strong>"</p>
							<pre style="display: none;"><?php var_dump( $options ); ?></pre>

							<form name="hoy_brightcove_importer_reset_options_form" method="post" action="">
								<input type="hidden" name="hoy_brightcove_importer_reset_options_form_submitted" value="Y">
								<p>	
									<?php
										submit_button(
												__( 'Reset Options', 'hoy-brightcove-importer' ),
												$type = 'delete',
												$name = 'hoy_brightcove_importer_reset_options_form_submit',
												$wrap = true,
												$other_attributes = null
											);
									?>
								</p>
							</form>
						</div> <!-- .inside -->
					</div> <!-- .postbox -->

<?php if( !isset( $hoy_brightcove_importer_api_key ) || $hoy_brightcove_importer_api_key == '' ): ?>
					<div class="postbox">
						<h3><span><?php _e( "Let's get started!", 'hoy-brightcove-importer' ); ?></span></h3>
						<div class="inside">
							<form name="hoy_brightcove_importer_api_key_form" method="post" action="">
								<input type="hidden" name="hoy_brightcove_importer_api_key_form_submitted" value="Y">
								<table class="form-table">
									<tr valign="top">
										<td scope="row">
											<label for="hoy_brightcove_importer_api_key"><?php _e( 'Brightcove Media API Key'); ?></label>
										</td>
										<td>
											<input name="hoy_brightcove_importer_api_key" id="hoy_brightcove_importer_api_key" type="text" value="" class="regular-text" />
										</td>
									</tr>
								</table>
								<p>	
									<input class="button-primary" type="submit" name="hoy_brightcove_importer_api_key_form_submit" value="<?php _e( 'Save', 'hoy-brightcove-importer' ); ?>" /> 
								</p>
							</form>
						</div> <!-- .inside -->
					</div> <!-- .postbox -->
<?php else: ?>
					<div class="postbox">
						<form name="hoy_brightcove_importer_update_videos_form" method="post" action="">
							<input type="hidden" name="hoy_brightcove_importer_update_videos_form_submitted" value="Y">
							<p>	
								<input class="button-primary" type="submit" name="hoy_brightcove_importer_update_videos_submit" value="<?php _e( 'Get New Videos', 'hoy-brightcove-importer' ); ?>" /> 
							</p>
						</form>
						<form name="hoy_brightcove_importer_create_posts_form" method="post" action="">
							<input type="hidden" name="hoy_brightcove_importer_create_posts_form_submitted" value="Y">
							<p>	
								<input class="button-primary" type="submit" name="hoy_brightcove_importer_create_posts_submit" value="<?php _e( 'Import Videos to Posts', 'hoy-brightcove-importer' ); ?>" /> 
							</p>
						</form>
						<h3>
							<span><?php _e( 'New Brightcove Videos', 'hoy-brightcove-importer' ); ?> (<?php echo count( $hoy_brightcove_importer_new_videos ); ?>)</span>
						</h3>
						<span><?php _e( 'Last Update:', 'hoy-brightcove-importer' ); ?> <?php if( $hoy_brightcove_importer_last_updated == 0) { _e( 'Never', 'hoy-brightcove-importer' ); } else { echo date( 'r T', (int) $hoy_brightcove_importer_last_updated ); } ?></span>
						<div class="inside">
<?php if ( count( $hoy_brightcove_importer_new_videos ) > 0 ) : ?>
							<table id="new_videos" class="display">
								<thead>
									<tr>
										<th><?php _e( 'Video ID', 'hoy-brightcove-importer' ); ?></th>
										<th><?php _e( 'Thumbnail', 'hoy-brightcove-importer' ); ?></th>
										<th><?php _e( 'Name', 'hoy-brightcove-importer' ); ?></th>
										<th><?php _e( 'Tags', 'hoy-brightcove-importer' ); ?></th>
										<th><?php _e( 'Last Modified', 'hoy-brightcove-importer' ); ?></th>
									</tr>
								</thead>
								<tbody>
<?php for( $i = 0; $i < count( $hoy_brightcove_importer_new_videos ); $i++ ): ?>
<?php $video = $hoy_brightcove_importer_new_videos[$i]; ?>
									<tr>
										<td><?php echo $video['id']; ?></td>
										<td><div style="max-width: 120px;"><img style="width: 100%;" src="<?php echo $video['thumbnailURL']; ?>"></div></td>
										<td><?php echo $video['name']; ?></td>
										<td><?php echo implode( ', ', $video['tags'] ); ?></td>
										<td><?php echo date( 'c', (int) ( $video['lastModifiedDate'] / 1000.0 ) ); ?></td>
									</tr>
<?php endfor; ?>
								</tbody>
							</table>
<?php endif; ?><!-- // if ( count( $hoy_brightcove_importer_new_videos ) > 0 ) -->
						</div> <!-- .inside -->
						<h3>
							<span><?php _e( 'Imported Brightcove Videos', 'hoy-brightcove-importer' ); ?> (<?php echo count( $hoy_brightcove_importer_imported_videos ); ?>)</span>
						</h3>
						<span><?php _e( 'Last Import:', 'hoy-brightcove-importer' ); ?> <?php if( $hoy_brightcove_importer_last_imported == 0) { _e( 'Never', 'hoy-brightcove-importer' ); } else { echo date( 'r T', (int) $hoy_brightcove_importer_last_imported ); } ?></span>
						<div class="inside">
<?php if ( count( $hoy_brightcove_importer_imported_videos ) > 0 ) : ?>
							<table id="imported_videos" class="display">
								<thead>
									<tr>
										<th><?php _e( 'Video ID', 'hoy-brightcove-importer' ); ?></th>
										<th><?php _e( 'Thumbnail', 'hoy-brightcove-importer' ); ?></th>
										<th><?php _e( 'Name', 'hoy-brightcove-importer' ); ?></th>
										<th><?php _e( 'Tags', 'hoy-brightcove-importer' ); ?></th>
										<th><?php _e( 'Last Modified', 'hoy-brightcove-importer' ); ?></th>
										<th><?php _e( 'Post ID', 'hoy-brightcove-importer' ); ?></th>
									</tr>
								</thead>
								<tbody>
<?php for( $i = 0; $i < count( $hoy_brightcove_importer_imported_videos ); $i++ ): ?>
<?php 
	$video = $hoy_brightcove_importer_imported_videos[$i]['video'];
	$new_post = $hoy_brightcove_importer_imported_videos[$i]['post'];
?>
									<tr>
										<td><?php echo $video['id']; ?></td>
										<td><div style="max-width: 120px;"><img style="width: 100%;" src="<?php echo $video['thumbnailURL']; ?>"></div></td>
										<td><?php echo $video['name']; ?></td>
										<td><?php echo implode( ', ', $video['tags'] ); ?></td>
										<td><?php echo date( 'c', (int) ( $video['lastModifiedDate'] / 1000.0 ) ); ?></td>
										<td>
											<?php if ( $new_post ) : ?>
												<a href="<?php echo get_permalink( $new_post['id'] ); ?>"><?php echo $new_post['id']; ?></a>
											<?php else: ?>
												<?php _e( 'Not imported!', 'hoy-brightcove-importer' ); ?>
											<?php endif; ?>
										</td>
									</tr>
<?php endfor; ?>
								</tbody>
							</table>
<?php endif; ?><!-- // if ( count( $hoy_brightcove_importer_imported_videos ) > 0 ) -->
						</div> <!-- .inside -->
					</div> <!-- .postbox -->
<?php if( $display_json == true ): ?>
					<div class="postbox">
						<h3><span><?php _e( 'JSON Feed', 'hoy-brightcove-importer' ); ?></span></h3>
						<div class="inside">
							<pre><code><?php var_dump( $hoy_brightcove_importer_videos ); ?></code></pre>
						</div> <!-- .inside -->
					</div> <!-- .postbox -->
<?php endif; // if( $display_json ) ?>
<?php endif; // if( !isset( $hoy_brightcove_importer_api_key ) ... ?>
{'fraction_non_alphanumeric': 0.20537914043252123, 'fraction_numerical': 0.006159321105940323, 'mean_word_length': 2.960162601626016, 'pattern_counts': {'":': 0, '<': 471, '<?xml version=': 0, '>': 475, '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': '1978136', 'n_tokens_mistral': 7146, 'n_tokens_neox': 5286, 'n_words': 992}