<commit_before><?php
/**
 * RSS2 Feed Template for displaying RSS2 Posts feed.
 *
 * @package WordPress
 */

header( 'Content-Type: ' . feed_content_type( 'rss-http' ) . '; charset=' . get_option( 'blog_charset' ), true );
$more = 1;

echo '<?xml version="1.0" encoding="'.get_option('blog_charset').'"?'.'>'; ?>
<rss version="2.0"
	xmlns:atom="http://www.w3.org/2005/Atom"
	<?php do_action('rss2_ns'); ?>
>

<channel>
	<title><?php echo apply_filters( 'podlove_feed_title', '' ); ?></title>
	<link><?php bloginfo_rss( 'url' ) ?></link>
	<description><?php echo apply_filters( 'podlove_rss_feed_description', get_bloginfo_rss( 'description' ) ) ?></description>
	<lastBuildDate><?php echo mysql2date( 'D, d M Y H:i:s +0000', get_lastpostmodified( 'GMT' ), false ); ?></lastBuildDate>
	<?php do_action( 'rss2_head' ); ?>
	<?php while( have_posts()) : the_post(); ?>
	<item>
		<title><?php the_title_rss() ?></title>
		<link><?php the_permalink() ?></link>
		<pubDate><?php echo mysql2date( 'D, d M Y H:i:s +0000', get_post_time( 'Y-m-d H:i:s', true ), false ); ?></pubDate>
		<guid isPermaLink="false"><?php echo htmlspecialchars( get_the_guid() ); ?></guid>
		<?php 
			$episode =  \Podlove\Model\Episode::find_one_by_post_id(get_the_ID());
			$contributors = \Podlove\Modules\Contributors\EpisodeContribution::find_all_by_episode_id($episode->id);
			foreach ($contributors as $list_number => $contributor) {
				$contributor_details = $contributor->getContributor();
				echo "		<contributor>\n";
				echo "			<name>".$contributor_details->publicname."</name>\n";
				echo "			<uri>".$contributor_details->guid."</uri>\n";
				echo "		</contributor>\n";
			}
		?>
	<?php rss_enclosure(); ?>
	<?php do_action( 'rss2_item' ); ?>
	</item><commit_msg>Filter non-public profile<commit_after><?php
/**
 * RSS2 Feed Template for displaying RSS2 Posts feed.
 *
 * @package WordPress
 */

header( 'Content-Type: ' . feed_content_type( 'rss-http' ) . '; charset=' . get_option( 'blog_charset' ), true );
$more = 1;

echo '<?xml version="1.0" encoding="'.get_option('blog_charset').'"?'.'>'; ?>
<rss version="2.0"
	xmlns:atom="http://www.w3.org/2005/Atom"
	<?php do_action('rss2_ns'); ?>
>

<channel>
	<title><?php echo apply_filters( 'podlove_feed_title', '' ); ?></title>
	<link><?php bloginfo_rss( 'url' ) ?></link>
	<description><?php echo apply_filters( 'podlove_rss_feed_description', get_bloginfo_rss( 'description' ) ) ?></description>
	<lastBuildDate><?php echo mysql2date( 'D, d M Y H:i:s +0000', get_lastpostmodified( 'GMT' ), false ); ?></lastBuildDate>
	<?php do_action( 'rss2_head' ); ?>
	<?php while( have_posts()) : the_post(); ?>
	<item>
		<title><?php the_title_rss() ?></title>
		<link><?php the_permalink() ?></link>
		<pubDate><?php echo mysql2date( 'D, d M Y H:i:s +0000', get_post_time( 'Y-m-d H:i:s', true ), false ); ?></pubDate>
		<guid isPermaLink="false"><?php echo htmlspecialchars( get_the_guid() ); ?></guid>
		<?php 
			$episode =  \Podlove\Model\Episode::find_one_by_post_id(get_the_ID());
			$contributors = \Podlove\Modules\Contributors\EpisodeContribution::find_all_by_episode_id($episode->id);
			foreach ($contributors as $list_number => $contributor) {
				$contributor_details = $contributor->getContributor("showpublic=1");
				if($contributor_details->showpublic == 1) {
					echo "		<contributor>\n";
					echo "			<name>".$contributor_details->publicname."</name>\n";
					echo "			<uri>".$contributor_details->guid."</uri>\n";
					echo "		</contributor>\n";
				}
			}
		?>
	<?php rss_enclosure(); ?>
	<?php do_action( 'rss2_item' ); ?>
	</item>
{'fraction_non_alphanumeric': 0.21077610273590172, 'fraction_numerical': 0.014517029592406477, 'mean_word_length': 4.991638795986622, 'pattern_counts': {'":': 0, '<': 87, '<?xml version=': 2, '>': 98, 'https://': 0, 'lorem ipsum': 0, 'www.': 2, 'xml': 4}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 4, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '6476612', 'n_tokens_mistral': 1449, 'n_tokens_neox': 1348, 'n_words': 245}