<commit_before><?php
include '_include.php';

setContentTypeXML();

echo '<?xml version="1.0" encoding="UTF-8"?>' . PHP_EOL;
echo '<urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9">' . PHP_EOL;

echo '	<url>' . PHP_EOL;
echo '		<loc>' . getAbsoluteLink() . '</loc>' . PHP_EOL;
echo '		<lastmod>' . date('c', strtotime("now")) . '</lastmod>' . PHP_EOL;
echo '	</url>' . PHP_EOL;

// echo '	<url>' . PHP_EOL;
// echo '		<loc>' . getAbsoluteLink('index.php') . '</loc>' . PHP_EOL;
// echo '		<lastmod>' . date('c', strtotime("now")) . '</lastmod>' . PHP_EOL;
// echo '	</url>' . PHP_EOL;

echo '	<url>' . PHP_EOL;
echo '		<loc>' . getAbsoluteLink('blog.php') . '</loc>' . PHP_EOL;
echo '		<lastmod>' . date('c', strtotime("now")) . '</lastmod>' . PHP_EOL;
echo '		<changefreq>daily</changefreq>' . PHP_EOL;
echo '	</url>' . PHP_EOL;

foreach (getBlogPostFolders() as $blogPostFolder) {
	
	setBlogPostId(basename($blogPostFolder));
	readBlogPostConfig();
	
// 	$lastmodConfig = filemtime('content/blog/' . getBlogPostId() . '/config.json');
// 	$lastmodContent = filemtime('content/blog/' . getBlogPostId() . '/content.html');
// 	$lastmod = $lastmodConfig > $lastmodContent ? $lastmodConfig : $lastmodContent;
	
	echo '	<url>' . PHP_EOL;
	echo '		<loc>' . getAbsoluteLink(getBlogPostLink()) . '</loc>' . PHP_EOL;
// 	echo '		<lastmod>' . getBlogPostDate('c') . '</lastmod>' . PHP_EOL;
// 	echo '		<lastmod>' . date ('c', $lastmod) . '</lastmod>' . PHP_EOL;
	echo '		<lastmod>' . getBlogPostDateModified('c') . '</lastmod>' . PHP_EOL;
	echo '	</url>' . PHP_EOL;
}<commit_msg>sitemap tweaks<commit_after><?php
include '_include.php';

setContentTypeXML();

echo '<?xml version="1.0" encoding="UTF-8"?>' . PHP_EOL;
echo '<urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9">' . PHP_EOL;

echo '	<url>' . PHP_EOL;
echo '		<loc>' . getAbsoluteLink() . '/</loc>' . PHP_EOL;
// echo '		<lastmod>' . date('c', strtotime("now")) . '</lastmod>' . PHP_EOL;
echo '	</url>' . PHP_EOL;

echo '	<url>' . PHP_EOL;
echo '		<loc>' . getAbsoluteLink(getIndexLink()) . '</loc>' . PHP_EOL;
// echo '		<lastmod>' . date('c', strtotime("now")) . '</lastmod>' . PHP_EOL;
echo '	</url>' . PHP_EOL;

echo '	<url>' . PHP_EOL;
echo '		<loc>' . getAbsoluteLink(getBlogLink()) . '</loc>' . PHP_EOL;
// echo '		<lastmod>' . date('c', strtotime("now")) . '</lastmod>' . PHP_EOL;
// echo '		<changefreq>daily</changefreq>' . PHP_EOL;
echo '	</url>' . PHP_EOL;

foreach (getBlogPostFolders() as $blogPostFolder) {
	
	setBlogPostId(basename($blogPostFolder));
	readBlogPostConfig();
	
// 	$lastmodConfig = filemtime('content/blog/' . getBlogPostId() . '/config.json');
// 	$lastmodContent = filemtime('content/blog/' . getBlogPostId() . '/content.html');
// 	$lastmod = $lastmodConfig > $lastmodContent ? $lastmodConfig : $lastmodContent;
	
	echo '	<url>' . PHP_EOL;
	echo '		<loc>' . getAbsoluteLink(getBlogPostLink()) . '</loc>' . PHP_EOL;
// 	echo '		<lastmod>' . getBlogPostDate('c') . '</lastmod>' . PHP_EOL;
// 	echo '		<lastmod>' . date ('c', $lastmod) . '</lastmod>' . PHP_EOL;
// 	echo '		<lastmod>' . getBlogPostDateModified('c') . '</lastmod>' . PHP_EOL;
	echo '	</url>' . PHP_EOL;
}
{'fraction_non_alphanumeric': 0.23479357075323037, 'fraction_numerical': 0.003151591553734636, 'mean_word_length': 3.82370820668693, 'pattern_counts': {'":': 0, '<': 69, '<?xml version=': 2, '>': 69, 'https://': 0, 'lorem ipsum': 0, 'www.': 2, 'xml': 4}, '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': '5002222', 'n_tokens_mistral': 1311, 'n_tokens_neox': 1278, 'n_words': 229}