<commit_before><?php
$i = 0;
if ( $posts->have_posts() ): ?>
	<?php if ( ! empty( $instance['title'] ) ) {
		echo $before_title . esc_html( $instance['title'] ) . $after_title;
	}
	?>
	<div class="row newspaper-x-layout-c-row">
		<?php while ( $posts->have_posts() ) : $posts->the_post();
			$i ++;
			$cat         = get_the_category( $post->ID );
			$cat_link    = get_category_link( $cat[0]->term_id );
			$cat         = $cat[0]->name;
			$image = '<img class="attachment-newspaper-x-recent-post-big size-newspaper-x-recent-post-big wp-post-image" alt="" src="' . get_template_directory_uri() . '/assets/images/picture_placeholder.jpg" />';
			if ( has_post_thumbnail() ) {
				$image = get_the_post_thumbnail( get_the_ID(), 'newspaper-x-recent-post-big' );
			}

			$image_obj    = array( 'id' => get_the_ID(), 'image' => $image );
			$new_image    = apply_filters( 'newspaper_x_widget_image', $image_obj );
			$allowed_tags = array(
				'img'      => array(
					'data-srcset' => true,
					'data-src'    => true,
					'srcset'      => true,
					'sizes'       => true,
					'src'         => true,
					'class'       => true,<commit_msg>Newspaper - PHP error<commit_after><?php
$i = 0;
if ( $posts->have_posts() ): ?>
	<?php if ( ! empty( $instance['title'] ) ) {
		echo $before_title . esc_html( $instance['title'] ) . $after_title;
	}
	?>
	<div class="row newspaper-x-layout-c-row">
		<?php while ( $posts->have_posts() ) : $posts->the_post();
			$i ++;
			$cat         = get_the_category();
			$cat_link    = get_category_link( $cat[0]->term_id );
			$cat         = $cat[0]->name;
			$image = '<img class="attachment-newspaper-x-recent-post-big size-newspaper-x-recent-post-big wp-post-image" alt="" src="' . get_template_directory_uri() . '/assets/images/picture_placeholder.jpg" />';
			if ( has_post_thumbnail() ) {
				$image = get_the_post_thumbnail( get_the_ID(), 'newspaper-x-recent-post-big' );
			}

			$image_obj    = array( 'id' => get_the_ID(), 'image' => $image );
			$new_image    = apply_filters( 'newspaper_x_widget_image', $image_obj );
			$allowed_tags = array(
				'img'      => array(
					'data-srcset' => true,
					'data-src'    => true,
					'srcset'      => true,
					'sizes'       => true,
					'src'         => true,
					'class'       => true,
{'fraction_non_alphanumeric': 0.19745502413339183, 'fraction_numerical': 0.0026327336551118913, 'mean_word_length': 2.9310344827586206, 'pattern_counts': {'":': 0, '<': 13, '<?xml version=': 0, '>': 40, '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': '511972', 'n_tokens_mistral': 963, 'n_tokens_neox': 846, 'n_words': 142}