<commit_before><?php

	require_once("config.php");
	
	$settings = $Podcast->getSettings();
	$domain = $settings["Domain"];
	
	if (isset($_GET["episode"]) && is_numeric($_GET["episode"])) {
		$current_episode = new Episode("PKA_" . $Podcast->padEpisodeNumber($_GET["episode"]), $con);
		$canonical = $domain . "episode/" . $current_episode->getNumber();
		$source = "get";
	} else {
		$current_episode = new Episode($Podcast->getLatestEpisode(), $con);
		$canonical = $domain;
		$source = "latest";
	}
	
	$guests = $current_episode->getGuests();
	if ($guests == "") {
		$guests = "Nobody";
	} elseif (strpos($guests, ",") !== FALSE) {
		$guests_explosion = explode(",", $guests);
		
		if (count($guests_explosion) > 2) {
			$guests_explosion[count($guests_explosion) - 1] = "and " . $guests_explosion[count($guests_explosion) - 1];
			$guests = join(", ", $guests_explosion);
		} else {
			$guests = join(" and ", $guests_explosion);
		}
	}
	
?>
<!DOCTYPE html>
<html lang="en">
	<head>
		<!-- Meta -->
		<meta charset="utf-8">
		<meta name="description" content="Three gamers discuss games, current events, and tell a few stories.">
		<base href="<?php echo $domain; ?>">
		<link rel="canonical" href="<?php echo $canonical; ?>">
		<title><?php if(!empty($_GET["episode"])) { echo "Episode #" . $current_episode->getNumber() . " &middot; "; } ?>Painkiller Already Archive</title>
		
		<!-- Open Graph -->
		<meta property="og:image" content="<?php echo $domain; ?>img/pka.png">
		<meta property="og:site_name" content="Painkiller Already Archive">
		
<?php
		if ($source == "get") {
?>
		<meta property="og:type" content="music.song">
		<meta property="og:title" content="Painkiller Already #<?php echo $current_episode->getNumber(); ?>">
		<meta property="og:description" content="Guests: <?php echo $guests; ?>">
		<meta property="og:url" content="<?php echo $domain; ?>episode/<?php echo $current_episode->getNumber(); ?>">
		<meta property="og:audio" content="http://media.blubrry.com/painkilleralready/archive.org/download/<?php echo $current_episode->getIdentifier(); ?>/<?php echo str_replace("_", "-", strtolower($current_episode->getIdentifier())); ?>.mp3"><commit_msg>Fixed title for episode 0<commit_after><?php

	require_once("config.php");
	
	$settings = $Podcast->getSettings();
	$domain = $settings["Domain"];
	
	if (isset($_GET["episode"]) && is_numeric($_GET["episode"])) {
		$current_episode = new Episode("PKA_" . $Podcast->padEpisodeNumber($_GET["episode"]), $con);
		$canonical = $domain . "episode/" . $current_episode->getNumber();
		$source = "get";
	} else {
		$current_episode = new Episode($Podcast->getLatestEpisode(), $con);
		$canonical = $domain;
		$source = "latest";
	}
	
	$guests = $current_episode->getGuests();
	if ($guests == "") {
		$guests = "Nobody";
	} elseif (strpos($guests, ",") !== FALSE) {
		$guests_explosion = explode(",", $guests);
		
		if (count($guests_explosion) > 2) {
			$guests_explosion[count($guests_explosion) - 1] = "and " . $guests_explosion[count($guests_explosion) - 1];
			$guests = join(", ", $guests_explosion);
		} else {
			$guests = join(" and ", $guests_explosion);
		}
	}
	
?>
<!DOCTYPE html>
<html lang="en">
	<head>
		<!-- Meta -->
		<meta charset="utf-8">
		<meta name="description" content="Three gamers discuss games, current events, and tell a few stories.">
		<base href="<?php echo $domain; ?>">
		<link rel="canonical" href="<?php echo $canonical; ?>">
		<title><?php if($source == "get") { echo "Episode #" . $current_episode->getNumber() . " &middot; "; } ?>Painkiller Already Archive</title>
		
		<!-- Open Graph -->
		<meta property="og:image" content="<?php echo $domain; ?>img/pka.png">
		<meta property="og:site_name" content="Painkiller Already Archive">
		
<?php
		if ($source == "get") {
?>
		<meta property="og:type" content="music.song">
		<meta property="og:title" content="Painkiller Already #<?php echo $current_episode->getNumber(); ?>">
		<meta property="og:description" content="Guests: <?php echo $guests; ?>">
		<meta property="og:url" content="<?php echo $domain; ?>episode/<?php echo $current_episode->getNumber(); ?>">
		<meta property="og:audio" content="http://media.blubrry.com/painkilleralready/archive.org/download/<?php echo $current_episode->getIdentifier(); ?>/<?php echo str_replace("_", "-", strtolower($current_episode->getIdentifier())); ?>.mp3">
{'fraction_non_alphanumeric': 0.21444954128440366, 'fraction_numerical': 0.002522935779816514, 'mean_word_length': 5.256814921090387, 'pattern_counts': {'":': 0, '<': 63, '<?xml version=': 0, '>': 85, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 14, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '2292582', 'n_tokens_mistral': 1665, 'n_tokens_neox': 1484, 'n_words': 298}