<commit_before><?php
/**
 * @package Pu-ente
 */
?>
<!-- content-single.php -->
<article id="post-<?php the_ID();?>" <?php post_class(); ?>>
	<header class="entry-header">
		<?php //the_title( '<h1 class="entry-title">', '</h1>' ); ?>

		<div class="entry-meta">
			<?php //pu_ente_posted_on(); ?>
		</div><!-- .entry-meta -->
	</header><!-- .entry-header -->

	<div class="entry-content">
		<?php the_content(); ?>
		<div class="entry-text">
			<div id="project-title">
				<p><strong><?php the_title(); ?></strong>	</p>
				<?php $posttags = get_the_tags();
					if ($posttags) {
					  echo "<p>";
					  foreach($posttags as $tag) {
					    echo $tag->name . ' '; 
					  }
					  echo "</p>";
					} 
				?>
			</div>
			<div id="project-text">		
				<?php the_excerpt(); ?>	
			</div>
			<div class="clear"></div>
		</div>
		<div id="pagination-menu" >
			<ul>
				<li>
					<?php 
						$next_post = get_next_post(true, '', 'category');
						if ( is_a( $next_post , 'WP_Post' ) ) { ?>
						  	<div id="square-next" data-href="<?php echo get_permalink( $next_post->ID ); ?>" class="clickable-square">
						  		<svg style='width: 100%; height: 100%;'>
	    							<line x1="0%" y1="50%" x2="50%" y2="50%" style="stroke:rgb(0,0,0);stroke-width:5"/>
								</svg>
							</div>
						<?php }
					?>
				</li>
				<li><div id="scroll-up" class="clickable-square">
						<svg style='width: 100%; height: 100%;'>
	    					<line x1="50%" y1="0%" x2="50%" y2="50%" style="stroke:rgb(0,0,0);stroke-width:5"/>
						</svg>
					</div>
				</li>
				<li>
					<?php 
						$previous_post = get_previous_post( true, '', 'category' );
						if ( is_a( $previous_post , 'WP_Post' ) ) { ?>
						  	<div id="square-previous" data-href="<?php echo get_permalink( $previous_post->ID ); ?>" class="clickable-square">
						  		<svg style='width: 100%; height: 100%;'>
	    							<line x1="50%" y1="50%" x2="100%" y2="50%" style="stroke:rgb(0,0,0);stroke-width:5"/>
								</svg>
						  	</div>
						<?php }
					?>
				</li>
			</ul>				
		</div>
		<div id="related-posts" >
			<?php related_posts(); ?>
		</div>
	</div><!-- .entry-content -->

	<footer class="entry-footer">
		<?php //pu_ente_entry_footer(); ?>
	</footer><!-- .entry-footer -->
</article><!-- #post-## --><commit_msg>Make 1st and last post accessible from the projects menu<commit_after><?php
/**
 * @package Pu-ente
 */
?>
<!-- content-single.php -->
<article id="post-<?php the_ID();?>" <?php post_class(); ?>>
	<header class="entry-header">
		<?php //the_title( '<h1 class="entry-title">', '</h1>' ); ?>

		<div class="entry-meta">
			<?php //pu_ente_posted_on(); ?>
		</div><!-- .entry-meta -->
	</header><!-- .entry-header -->

	<div class="entry-content">
		<?php the_content(); ?>
		<div class="entry-text">
			<div id="project-title">
				<p><strong><?php the_title(); ?></strong>	</p>
				<?php $posttags = get_the_tags();
					if ($posttags) {
					  echo "<p>";
					  foreach($posttags as $tag) {
					    echo $tag->name . ' '; 
					  }
					  echo "</p>";
					} 
				?>
			</div>
			<div id="project-text">		
				<?php the_excerpt(); ?>	
			</div>
			<div class="clear"></div>
		</div>
		<div id="pagination-menu" >
			<ul>
				<li>
					<?php 
						$next_post = get_next_post(true, '', 'category');
						if ( is_a( $next_post , 'WP_Post' ) ) { 
							$next_post = $next_post->ID;
						} else { 
							$category = get_the_category();
							$args = array( 'numberposts' => 1, 'category' => $category[0]->cat_ID, 'order' => 'ASC' );
							$post = get_posts( $args );
							$next_post = $post[0]->ID;
						} 
					?>
						  	<div id="square-next" data-href="<?php echo get_permalink(); ?>" class="clickable-square">
								<svg style='width: 100%; height: 100%;'>
	    							<line x1="0%" y1="50%" x2="50%" y2="50%" style="stroke:rgb(0,0,0);stroke-width:5"/>
								</svg>
							</div>					
				</li>
				<li><div id="scroll-up" class="clickable-square">
						<svg style='width: 100%; height: 100%;'>
	    					<line x1="50%" y1="0%" x2="50%" y2="50%" style="stroke:rgb(0,0,0);stroke-width:5"/>
						</svg>
					</div>
				</li>
				<li>
					<?php 
						$previous_post = get_previous_post( true, '', 'category' );
						if ( is_a( $previous_post , 'WP_Post' ) ) { 
							$previous_post = $previous_post->ID;
						} else {
							$category = get_the_category();
							$args = array( 'numberposts' => 1, 'category' => $category[0]->cat_ID, 'order' => 'DESC' );
							$post = get_posts( $args );
							$previous_post = $post[0]->ID;
						} 
					?>				
						  	<div id="square-previous" data-href="<?php echo get_permalink( $previous_post ); ?>" class="clickable-square">						  		
								<svg style='width: 100%; height: 100%;'>
		    							<line x1="50%" y1="50%" x2="100%" y2="50%" style="stroke:rgb(0,0,0);stroke-width:5"/>
									</svg>
							</div>
				</li>
			</ul>				
		</div>
		<div id="related-posts" >
			<?php related_posts(); ?>
		</div>
	</div><!-- .entry-content -->

	<footer class="entry-footer">
		<?php //pu_ente_entry_footer(); ?>
	</footer><!-- .entry-footer -->
</article><!-- #post-## -->
{'fraction_non_alphanumeric': 0.2435546875, 'fraction_numerical': 0.0275390625, 'mean_word_length': 2.502735978112175, 'pattern_counts': {'":': 0, '<': 153, '<?xml version=': 0, '>': 169, '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': '3172591', 'n_tokens_mistral': 2525, 'n_tokens_neox': 1908, 'n_words': 360}