<commit_before><?php
	$title = (!empty($_GET['title'])) ? ": ".html_entity_decode(urldecode($_GET['title'])) : "" ;
	echo "<".'?xml version="1.0" encoding="utf-8"?'.">\r";
?>
<feed xmlns="http://www.w3.org/2005/Atom">
	<title><?php echo fix($config->name.$title); ?></title>
<?php if (!empty($config->description)): ?>
	<subtitle><?php echo fix($config->description); ?></subtitle>
<?php endif; ?>
	<id><?php echo fix(self_url()); ?></id>
	<updated><?php echo date("c", $latest_timestamp); ?></updated>
	<link href="<?php echo fix(self_url(), true); ?>" rel="self" type="application/atom+xml" />
	<link href="<?php echo fix($config->url, true); ?>" />
	<generator uri="http://chyrp.net/" version="<?php echo CHYRP_VERSION; ?>">Chyrp</generator>
<?php
	foreach ($posts->paginated as $post) {
		$updated = ($post->updated) ? $post->updated_at : $post->created_at ;

		$tagged = substr(strstr(url("id/".$post->id."/"), "//"), 2);
		$tagged = str_replace("#", "/", $tagged);
		$tagged = preg_replace("/(".preg_quote(parse_url($post->url(), PHP_URL_HOST)).")/",
		                       "\\1,".when("Y-m-d", $updated).":",
		                       $tagged,
		                       1);

		$feed_url = $trigger->filter($url, "feed_url", $post);
		$url = $post->url();
		$title = $post->title();

		if (!$post->user()->no_results)
			$author = fallback($post->user()->full_name, $post->user()->login, true);
		else
			$author = __("Guest");
?>
	<entry>
		<title type="html"><?php echo fix(fallback($title, ucfirst($post->feather), true)); ?></title>
		<id>tag:<?php echo $tagged; ?></id>
		<updated><?php echo when("c", $updated); ?></updated>
		<published><?php echo when("c", $post->created_at); ?></published>
		<link rel="alternate" type="<?php echo $theme->type; ?>" href="<?php echo $feed_url; ?>" />
		<author>
			<name><?php echo fix($author); ?></name>
<?php if (!empty($post->user()->website)): ?>
			<uri><?php echo fix($post->user()->website); ?></uri>
<?php endif; ?>
		</author>
		<content type="html">
			<?php echo fix($post->feed_content(), false); ?>
		</content>
<?php $trigger->call("feed_item", $post->id); ?>
	</entry>
<?php
	}
?></feed><commit_msg>Fixed feed links.<commit_after><?php
	$title = (!empty($_GET['title'])) ? ": ".html_entity_decode(urldecode($_GET['title'])) : "" ;
	echo "<".'?xml version="1.0" encoding="utf-8"?'.">\r";
?>
<feed xmlns="http://www.w3.org/2005/Atom">
	<title><?php echo fix($config->name.$title); ?></title>
<?php if (!empty($config->description)): ?>
	<subtitle><?php echo fix($config->description); ?></subtitle>
<?php endif; ?>
	<id><?php echo fix(self_url()); ?></id>
	<updated><?php echo date("c", $latest_timestamp); ?></updated>
	<link href="<?php echo fix(self_url(), true); ?>" rel="self" type="application/atom+xml" />
	<link href="<?php echo fix($config->url, true); ?>" />
	<generator uri="http://chyrp.net/" version="<?php echo CHYRP_VERSION; ?>">Chyrp</generator>
<?php
	foreach ($posts->paginated as $post) {
		$updated = ($post->updated) ? $post->updated_at : $post->created_at ;

		$tagged = substr(strstr(url("id/".$post->id."/"), "//"), 2);
		$tagged = str_replace("#", "/", $tagged);
		$tagged = preg_replace("/(".preg_quote(parse_url($post->url(), PHP_URL_HOST)).")/",
		                       "\\1,".when("Y-m-d", $updated).":",
		                       $tagged,
		                       1);

		$url = $post->url();
		$title = $post->title();

		$feed_url = $trigger->filter($url, "feed_url", $post);

		if (!$post->user()->no_results)
			$author = fallback($post->user()->full_name, $post->user()->login, true);
		else
			$author = __("Guest");
?>
	<entry>
		<title type="html"><?php echo fix(fallback($title, ucfirst($post->feather), true)); ?></title>
		<id>tag:<?php echo $tagged; ?></id>
		<updated><?php echo when("c", $updated); ?></updated>
		<published><?php echo when("c", $post->created_at); ?></published>
		<link rel="alternate" type="<?php echo $theme->type; ?>" href="<?php echo $feed_url; ?>" />
		<author>
			<name><?php echo fix($author); ?></name>
<?php if (!empty($post->user()->website)): ?>
			<uri><?php echo fix($post->user()->website); ?></uri>
<?php endif; ?>
		</author>
		<content type="html">
			<?php echo fix($post->feed_content(), false); ?>
		</content>
<?php $trigger->call("feed_item", $post->id); ?>
	</entry>
<?php
	}
?></feed>
{'fraction_non_alphanumeric': 0.27763674128779137, 'fraction_numerical': 0.005077313639510732, 'mean_word_length': 4.291819291819292, 'pattern_counts': {'":': 4, '<': 119, '<?xml version=': 2, '>': 177, 'https://': 0, 'lorem ipsum': 0, 'www.': 2, 'xml': 6}, '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': '609145', 'n_tokens_mistral': 1601, 'n_tokens_neox': 1535, 'n_words': 295}