<commit_before><?php

global $project;
$project = 'mysite';

global $database;
$database = 'SS_ssnewdocstest';

require_once('conf/ConfigureFromEnv.php');

MySQLDatabase::set_connection_charset('utf8');

// This line set's the current theme. More themes can be
// downloaded from http://www.silverstripe.org/themes/
SSViewer::set_theme('docs');

// enable nested URLs for this site (e.g. page/sub-page/)
SiteTree::enable_nested_urls();

// render the user documentation first
Director::addRules(20, array(
	'Security//$Action/$ID/$OtherID' => 'Security',
));
DocumentationViewer::set_link_base('');
DocumentationViewer::$check_permission = false;
Director::addRules(10, array(
	'$Action' => 'DocumentationViewer',
	'' => '->current/en/cms'
));
DocumentationService::set_automatic_registration(false);
DocumentationService::register("cms", realpath("../../master/cms/docs/"), '2.4');

// We want this to be reviewed by the whole community
BasicAuth::protect_entire_site(false);<commit_msg>Changes preview location to Sapphire instead of CMS for source of md files<commit_after><?php

global $project;
$project = 'mysite';

global $database;
$database = 'SS_ssnewdocstest';

require_once('conf/ConfigureFromEnv.php');

MySQLDatabase::set_connection_charset('utf8');

// This line set's the current theme. More themes can be
// downloaded from http://www.silverstripe.org/themes/
SSViewer::set_theme('docs');

// enable nested URLs for this site (e.g. page/sub-page/)
SiteTree::enable_nested_urls();

// render the user documentation first
Director::addRules(20, array(
	'Security//$Action/$ID/$OtherID' => 'Security',
));
DocumentationViewer::set_link_base('');
DocumentationViewer::$check_permission = false;
Director::addRules(10, array(
	'$Action' => 'DocumentationViewer',
	'' => '->current/en/cms'
));
DocumentationService::set_automatic_registration(false);
DocumentationService::register("cms", realpath("../../master/sapphire/docs/"), '2.4');

// We want this to be reviewed by the whole community
BasicAuth::protect_entire_site(false);
{'fraction_non_alphanumeric': 0.16258570029382957, 'fraction_numerical': 0.0068560235063663075, 'mean_word_length': 6.429090909090909, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 11, 'https://': 0, 'lorem ipsum': 0, 'www.': 2, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 2, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '4196999', 'n_tokens_mistral': 662, 'n_tokens_neox': 636, 'n_words': 143}