<commit_before><?php
error_reporting(E_ALL);
ini_set('display_errors','On');

// keep php 5.3 happy
date_default_timezone_set('Europe/London');

// dynamic ROOT
if (!defined('ROOT')) {
	define('ROOT', str_replace('/eatStatic_config.php', '', str_replace('\\', '/', realpath(__FILE__))));
}

// data folder path (assumes admin_site and data folders on same level)
define('DATA_ROOT', str_replace('siteroot','ontheroad', ROOT));

// eatStatic library path (assumes admin_site and data folders on same level)
define('EATSTATIC_ROOT', str_replace('siteroot','library/eatStatic', ROOT));

$production = false;
if($_SERVER['HTTP_HOST'] == 'ontheroad.rickhurst.co.uk'){
	$production = true;
}

require_once(EATSTATIC_ROOT."/eatStatic.class.php");
require_once(EATSTATIC_ROOT."/eatStaticError.class.php");
require_once(EATSTATIC_ROOT."/eatStaticStorage.class.php");

if($production){
	define('USE_CACHE', true);
} else {
	define('USE_CACHE', false);
}

define('NICE_DATE_FORMAT', 'D, d M Y');
define('SKIN','ontheroad');
define('BLOG_TITLE', 'Rick on the Road');
define('BLOG_TAG_LINE', 'Adventures of a wannabe nomadic web developer');
define('BLOG_AUTHOR', '<NAME>');
define('PAGE_EXT', '');
define('SITE_ROOT','/'); // change this if you move the location of the site index.php e.g. '/blog/';
define('DISQUS_ENABLED', false);
define('DISQUS_IDENTIFIER','');
define('GOOGLE_ANALYTICS_ID','');
define('GLOBAL_KEYWORDS', 'mobile working, camping, solar power, camper van');
define('GLOBAL_DESCRIPTION', 'Rick on the road is a blog written by <NAME> about his experiences of working and living on the road');
define('LOGIN_REQUIRED', false);
define('LOGIN_URL', 'login');
define('STORAGE_TYPE', 'ES_JSON');
define('SNAPSHOT', false);
define('POSTS_PER_PAGE', 10);

define('WP_URLS', true); // use wordpress url scheme

define('CACHE_ROOT', str_replace('siteroot','ontheroad/cache', ROOT));

// SQL fake filesystem settings
define('SQL_FS', false);
if('SQL_FS'){
    define('DB_SERVER', 'localhost');
    define('DB_USERNAME', '');
    define('DB_PASSWORD', '');
    define('DB_DATABASE', '');
    define('SQL_FS_TABLE', 'eatstatic_fs');
    require_once(EATSTATIC_ROOT."/eatStaticSQL.class.php");
    require_once(EATSTATIC_ROOT."/eatStaticFakeFS.class.php");
}

//$login_exceptions = array('login','logged-out');<commit_msg>added GA identifier (TODO: move disqus and GA to a local_settings file so they are not picked up by people from github<commit_after><?php
error_reporting(E_ALL);
ini_set('display_errors','On');

// keep php 5.3 happy
date_default_timezone_set('Europe/London');

// dynamic ROOT
if (!defined('ROOT')) {
	define('ROOT', str_replace('/eatStatic_config.php', '', str_replace('\\', '/', realpath(__FILE__))));
}

// data folder path (assumes admin_site and data folders on same level)
define('DATA_ROOT', str_replace('siteroot','ontheroad', ROOT));

// eatStatic library path (assumes admin_site and data folders on same level)
define('EATSTATIC_ROOT', str_replace('siteroot','library/eatStatic', ROOT));

$production = false;
if($_SERVER['HTTP_HOST'] == 'ontheroad.rickhurst.co.uk'){
	$production = true;
}

require_once(EATSTATIC_ROOT."/eatStatic.class.php");
require_once(EATSTATIC_ROOT."/eatStaticError.class.php");
require_once(EATSTATIC_ROOT."/eatStaticStorage.class.php");

if($production){
	define('USE_CACHE', true);
} else {
	define('USE_CACHE', false);
}

define('NICE_DATE_FORMAT', 'D, d M Y');
define('SKIN','ontheroad');
define('BLOG_TITLE', 'Rick on the Road');
define('BLOG_TAG_LINE', 'Adventures of a wannabe nomadic web developer');
define('BLOG_AUTHOR', '<NAME>');
define('PAGE_EXT', '');
define('SITE_ROOT','/'); // change this if you move the location of the site index.php e.g. '/blog/';
define('DISQUS_ENABLED', true);
define('DISQUS_IDENTIFIER','rickontheroad');
define('GOOGLE_ANALYTICS_ID','UA-562825-12');
define('GLOBAL_KEYWORDS', 'mobile working, camping, solar power, camper van');
define('GLOBAL_DESCRIPTION', 'Rick on the road is a blog written by <NAME> about his experiences of working and living on the road');
define('LOGIN_REQUIRED', false);
define('LOGIN_URL', 'login');
define('STORAGE_TYPE', 'ES_JSON');
define('SNAPSHOT', false);
define('POSTS_PER_PAGE', 10);

define('WP_URLS', true); // use wordpress url scheme

define('CACHE_ROOT', str_replace('siteroot','ontheroad/cache', ROOT));

// SQL fake filesystem settings
define('SQL_FS', false);
if('SQL_FS'){
    define('DB_SERVER', 'localhost');
    define('DB_USERNAME', '');
    define('DB_PASSWORD', '');
    define('DB_DATABASE', '');
    define('SQL_FS_TABLE', 'eatstatic_fs');
    require_once(EATSTATIC_ROOT."/eatStaticSQL.class.php");
    require_once(EATSTATIC_ROOT."/eatStaticFakeFS.class.php");
}

//$login_exceptions = array('login','logged-out');
{'fraction_non_alphanumeric': 0.17937408107540434, 'fraction_numerical': 0.0033606385213190504, 'mean_word_length': 6.963210702341137, 'pattern_counts': {'":': 0, '<': 9, '<?xml version=': 0, '>': 7, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, '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': '4486462', 'n_tokens_mistral': 1661, 'n_tokens_neox': 1609, 'n_words': 350}