<commit_before><?php
  // error_reporting(E_ALL);

  $brand = "Travelscope";
	$title = $brand . " – Interactive worldmap of visa-free travel – A Chrome Experiment";
	$description = "A visual exploration of the travel freedom attached to passports";
  $visa_requirements_folder = "data/visa_requirements";


  require __DIR__ . '/../vendor/autoload.php';
  $dotenv = new Dotenv\Dotenv(__DIR__ . '/../');
  $dotenv->load();

  define('URL', getenv('URL'));
	define('CDN_URL', getenv('CDN_URL'));

  $package = file_get_contents('../package.json');
  $package = json_decode($package, true);
	define('VERSION', $package['version']);

	$detect = new Mobile_Detect;
	$isDesktop = !$detect->isMobile() && !$detect->isTablet();

	// get most recent visa requirements filename:
	function getLatestVisaRequirementsFilename($path) {
		$latest_ctime = 0;
		$latest_filename = '';
		$d = dir($path);
		while (false !== ($entry = $d->read())) {
		  $filepath = "{$path}/{$entry}";
		  // could do also other checks than just checking whether the entry is a file
		  if (is_file($filepath) && filectime($filepath) > $latest_ctime) {
		    $latest_ctime = filectime($filepath);
		    $latest_filename = $entry;
		  }
		}
		return [$latest_ctime, $latest_filename];
	}

	$data = getLatestVisaRequirementsFilename($visa_requirements_folder);
	$latest_visa_requirements_filename = $visa_requirements_folder . "/" . $data[1];

?><!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="utf-8">
    <title><?=$title?></title>

    <meta http-equiv="content-type" content="text/html; charset=utf-8" />
  	<meta http-equiv="expires" content="0" />
  	<meta http-equiv="Content-Language" content="en" />

  	<meta name="description" content="<?=$description?>" />
  	<meta name="keywords" content="travel, scope, power, passport, pass, reisepass, visa, visa-free, country, world, freedom, movement" />

  	<meta name="language" content="english, en" />
  	<meta name="revisit-after" content="1 day" />

  	<meta name="robots" content="index, follow" />

  	<meta http-equiv="X-UA-Compatible" content="chrome=1">

  	<meta name="viewport" content="width=device-width, user-scalable=no, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0">
  	<meta name="apple-mobile-web-app-capable" content="yes">
  	<meta name="apple-mobile-web-app-status-bar-style" content="black">

  	<meta property="og:site_name" content="<?=$brand?>" />
  	<meta property="og:description" content="<?=$title?>" />
  	<meta property="og:type" content="website" />
  	<meta property="og:image" content="//cdn.markuslerner.com/wordpress/wp-content/uploads/2016/04/travelscope_4k_1_cropped-640x400@2x.png" />

    <!-- HTML5 shim, for IE6-8 support of HTML5 elements -->
    <!--[if lt IE 9]>
      <script src="//html5shim.googlecode.com/svn/trunk/html5.js"></script>
    <![endif]-->

    <!-- HTML5 shim and Respond.js for IE8 support of HTML5 elements and media queries -->
    <!-- WARNING: Respond.js doesn't work if you view the page via file:// -->
    <!--[if lt IE 9]>
    <script>
      (function(){
        var ef = function(){};
        window.console = window.console || {log:ef,warn:ef,error:ef,dir:ef};
      }());
    </script>
    <script src="//cdnjs.cloudflare.com/ajax/libs/html5shiv/3.7.2/html5shiv.min.js"></script>
    <script src="//cdnjs.cloudflare.com/ajax/libs/html5shiv/3.7.2/html5shiv-printshiv.min.js"></script>
    <script src="//cdnjs.cloudflare.com/ajax/libs/es5-shim/3.4.0/es5-shim.js"></script>
    <script src="//cdnjs.cloudflare.com/ajax/libs/es5-shim/3.4.0/es5-sham.js"></script>
    <script src="//oss.maxcdn.com/respond/1.4.2/respond.min.js"></script>
    <![endif]-->

    <link rel="canonical" href="<?=URL?>" />

    <link rel="apple-touch-icon" href="apple-touch-icon.png" />
  	<link rel="shortcut icon" href="favicon.ico" type="image/x-icon" />

    <link rel="preload" href="//fonts.googleapis.com/css?family=Open+Sans:300italic,400italic,600italic,300,600,400" as="style" />
    <link rel="preload" href="<?=CDN_URL?>assets/fonts/fonts.css?v=<?=VERSION?>" as="style" /><commit_msg>Fix favicon urls<commit_after><?php
  // error_reporting(E_ALL);

  $brand = "Travelscope";
	$title = $brand . " – Interactive worldmap of visa-free travel – A Chrome Experiment";
	$description = "A visual exploration of the travel freedom attached to passports";
  $visa_requirements_folder = "data/visa_requirements";


  require __DIR__ . '/../vendor/autoload.php';
  $dotenv = new Dotenv\Dotenv(__DIR__ . '/../');
  $dotenv->load();

  define('URL', getenv('URL'));
	define('CDN_URL', getenv('CDN_URL'));

  $package = file_get_contents('../package.json');
  $package = json_decode($package, true);
	define('VERSION', $package['version']);

	$detect = new Mobile_Detect;
	$isDesktop = !$detect->isMobile() && !$detect->isTablet();

	// get most recent visa requirements filename:
	function getLatestVisaRequirementsFilename($path) {
		$latest_ctime = 0;
		$latest_filename = '';
		$d = dir($path);
		while (false !== ($entry = $d->read())) {
		  $filepath = "{$path}/{$entry}";
		  // could do also other checks than just checking whether the entry is a file
		  if (is_file($filepath) && filectime($filepath) > $latest_ctime) {
		    $latest_ctime = filectime($filepath);
		    $latest_filename = $entry;
		  }
		}
		return [$latest_ctime, $latest_filename];
	}

	$data = getLatestVisaRequirementsFilename($visa_requirements_folder);
	$latest_visa_requirements_filename = $visa_requirements_folder . "/" . $data[1];

?><!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="utf-8">
    <title><?=$title?></title>

    <meta http-equiv="content-type" content="text/html; charset=utf-8" />
  	<meta http-equiv="expires" content="0" />
  	<meta http-equiv="Content-Language" content="en" />

  	<meta name="description" content="<?=$description?>" />
  	<meta name="keywords" content="travel, scope, power, passport, pass, reisepass, visa, visa-free, country, world, freedom, movement" />

  	<meta name="language" content="english, en" />
  	<meta name="revisit-after" content="1 day" />

  	<meta name="robots" content="index, follow" />

  	<meta http-equiv="X-UA-Compatible" content="chrome=1">

  	<meta name="viewport" content="width=device-width, user-scalable=no, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0">
  	<meta name="apple-mobile-web-app-capable" content="yes">
  	<meta name="apple-mobile-web-app-status-bar-style" content="black">

  	<meta property="og:site_name" content="<?=$brand?>" />
  	<meta property="og:description" content="<?=$title?>" />
  	<meta property="og:type" content="website" />
  	<meta property="og:image" content="//cdn.markuslerner.com/wordpress/wp-content/uploads/2016/04/travelscope_4k_1_cropped-640x400@2x.png" />

    <!-- HTML5 shim, for IE6-8 support of HTML5 elements -->
    <!--[if lt IE 9]>
      <script src="//html5shim.googlecode.com/svn/trunk/html5.js"></script>
    <![endif]-->

    <!-- HTML5 shim and Respond.js for IE8 support of HTML5 elements and media queries -->
    <!-- WARNING: Respond.js doesn't work if you view the page via file:// -->
    <!--[if lt IE 9]>
    <script>
      (function(){
        var ef = function(){};
        window.console = window.console || {log:ef,warn:ef,error:ef,dir:ef};
      }());
    </script>
    <script src="//cdnjs.cloudflare.com/ajax/libs/html5shiv/3.7.2/html5shiv.min.js"></script>
    <script src="//cdnjs.cloudflare.com/ajax/libs/html5shiv/3.7.2/html5shiv-printshiv.min.js"></script>
    <script src="//cdnjs.cloudflare.com/ajax/libs/es5-shim/3.4.0/es5-shim.js"></script>
    <script src="//cdnjs.cloudflare.com/ajax/libs/es5-shim/3.4.0/es5-sham.js"></script>
    <script src="//oss.maxcdn.com/respond/1.4.2/respond.min.js"></script>
    <![endif]-->

    <link rel="canonical" href="<?=URL?>" />

    <link rel="apple-touch-icon" href="/apple-touch-icon.png" />
  	<link rel="shortcut icon" href="/favicon.ico" type="image/x-icon" />

    <link rel="preload" href="//fonts.googleapis.com/css?family=Open+Sans:300italic,400italic,600italic,300,600,400" as="style" />
    <link rel="preload" href="<?=CDN_URL?>assets/fonts/fonts.css?v=<?=VERSION?>" as="style" />
{'fraction_non_alphanumeric': 0.19718654434250765, 'fraction_numerical': 0.019571865443425075, 'mean_word_length': 4.075108628181254, 'pattern_counts': {'":': 0, '<': 115, '<?xml version=': 0, '>': 125, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 2, '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': '6092198', 'n_tokens_mistral': 3073, 'n_tokens_neox': 2869, 'n_words': 520}