<commit_before><article>
<section>
<h4>Related Content</h4>

<?php 
//$args = array( 'category__in => 6870, 'tag__in' => array( 'tag1', 'tag2' ), 'showposts' => 2 );

    $orig_post = $post;
    global $post;
    $tags = wp_get_post_tags($post->ID);
    $tag_ids = array();
	foreach($tags as $individual_tag){ $tag_ids[] = $individual_tag->term_id;}

	$cats = wp_get_post_categories($post->ID);
    $cat_ids = array();
	foreach($cats as $individual_cat){ $cat_ids[] = $individual_cat;}


 if(!empty($tag_ids) || !empty($cat_ids)){
		if(empty($tag_ids)){ 
			$args=array(
			'post__not_in' => array($post->ID),
			'posts_per_page'=>5, // Number of related posts to display.
			'ignore_sticky_posts'=>1,
			'post_type' => array( 'whitepapers' ,'ercs' ,'webinars' ,'special-reports','post' ),  
			'category__in ' => $cat_ids,
			'cat' =>  '-11583'
			);
		 }
		 
		if(empty($cat_ids)){ 
	
			$args=array(
			'post__not_in' => array($post->ID),
			'posts_per_page'=>5, // Number of related posts to display.
			'ignore_sticky_posts'=>1,
			'post_type' => array( 'whitepapers' ,'ercs' ,'webinars' ,'special-reports','post' ),  
			'tag__in' => $tag_ids,
			'cat' => '-11583'
			);

		 }	
	
	} else {

		$args=array(
		'post__not_in' => array($post->ID),
		'posts_per_page'=>5, // Number of related posts to display.
		'ignore_sticky_posts'=>1,
		'cat' => '-11583',
		'post_type' => array( 'whitepapers' ,'ercs' ,'webinars' ,'special-reports', 'events', 'post' ),  
		'tax_query' => array(
			'relation' => 'OR',
			array(
				'category__in ' => $cat_ids,'cat' => '-11583'
			),
			array(
				'tag__in' => $tag_ids
			)
		)
		 
		);
		
	}	<commit_msg>sidebar -accillary +Nancy Requests<commit_after><article>
<section>
<h4>Related Content</h4>

<?php 
//$args = array( 'category__in => 6870, 'tag__in' => array( 'tag1', 'tag2' ), 'showposts' => 2 );

    $orig_post = $post;
    global $post;
    $tags = wp_get_post_tags($post->ID);
    $tag_ids = array();
	foreach($tags as $individual_tag){ $tag_ids[] = $individual_tag->term_id;}

	$cats = wp_get_post_categories($post->ID);
    $cat_ids = array();
	foreach($cats as $individual_cat){ $cat_ids[] = $individual_cat;}


 if(!empty($tag_ids) || !empty($cat_ids)){

		if(!empty($cat_ids)){ 
			$args=array(
			'post__not_in' => array($post->ID),
			'posts_per_page'=>5, // Number of related posts to display.
			'ignore_sticky_posts'=>1,
			'post_type' => array( 'whitepapers' ,'ercs' ,'webinars' ,'special-reports','post' ),  
			'category__in ' => $cat_ids,
			'cat' =>  '-11583'
			);
		 } else if(!empty($tag_ids)){ 
	
			$args=array(
			'post__not_in' => array($post->ID),
			'posts_per_page'=>5, // Number of related posts to display.
			'ignore_sticky_posts'=>1,
			'post_type' => array( 'whitepapers' ,'ercs' ,'webinars' ,'special-reports','post' ),  
			'tag__in' => $tag_ids,
			'cat' => '-11583'
			);

		 }	

	
	} else {

		$args=array(
		'post__not_in' => array($post->ID),
		'posts_per_page'=>5, // Number of related posts to display.
		'ignore_sticky_posts'=>1,
		'cat' => '-11583',
		'post_type' => array( 'whitepapers' ,'ercs' ,'webinars' ,'special-reports', 'events', 'post' ),  
		'tax_query' => array(
			'relation' => 'OR',
			array(
				'category__in ' => $cat_ids,'cat' => '-11583'
			),
			array(
				'tag__in' => $tag_ids
			)
		)
		 
		);
		
	}	
{'fraction_non_alphanumeric': 0.2135102533172497, 'fraction_numerical': 0.021109770808202654, 'mean_word_length': 3.7521489971346704, 'pattern_counts': {'":': 0, '<': 13, '<?xml version=': 0, '>': 73, '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': '137694', 'n_tokens_mistral': 1526, 'n_tokens_neox': 1311, 'n_words': 236}