<commit_before><?php 

// Configuration file - copy from config-dist.php to config.php
// and then edit.  Since this has passwords and other secrets
// never check config.php into a source repository

// We store the configuration in a global object
unset($CFG);
global $CFG;
$CFG = new stdClass();

// This is the URL where the software is hosted
// Do not add a trailing slash to this string 
// If you get this value wonr, the first problem will be that CSS files will not load
$CFG->wwwroot = 'http://localhost/tsugi';
# $CFG->wwwroot = 'http://localhost:8888/tsugi';   // For MAMP

// This allows you to serve the materials in the static folder using 
// a content distribution network - it is normal and typical for this 
// to be the same as wwwroot
$CFG->staticroot = $CFG->wwwroot;

// Allows bootstrap files to come from a different CDN than the rest
// of the static files.   In particular Bootstrap provides its files
// via the following netdna URL 
$CFG->bootstrap = $CFG->staticroot . "/static/bootstrap";
# $CFG->bootstrap = "//netdna.bootstrapcdn.com/bootstrap/3.0.2";

// This should not be changes.  It allows included files to reference
// library files with an absolute path.
$CFG->dirroot = realpath(dirname(__FILE__));

// This is where TSUGI will store uploaded files.  It is ideal for this
// not to be in the same folder as the rest of the application, but you 
// may have no other choice to leave this unset (default)
// Make sure that this folder is readable and writable by the web server.
# $CFG->dataroot = $CFG->dirroot . '/_files/a';

// This is how the system will refer to itself.
$CFG->servicename = 'TSUGI (dev)';

// Default time zone - see http://www.php.net/....
$CFG->timezone = 'America/New_York';

// When this is true it enables a Developer test harness that can launch
// tools using LTI.  It allows quick testing without setting up an LMS 
// course, etc.
$CFG->DEVELOPER = true;

// Database connection information to configure the PDO connection
// You need to point this at a database with am account and password
// that can create tables.   To make the initial tables go into Admin
// to run the upgrade.php script which auto-creates the tables.
$CFG->pdo       = 'mysql:host=127.0.0.1;dbname=tsugi';
$CFG->database  = 'tsugi';
$CFG->dbuser    = 'ltiuser';
$CFG->dbpass    = '<PASSWORD>';

// The dbprefix allows you to give all the tables a prefix
// in case your hosting only gives you one database.  This
// can be short like "t_" and can even be an empty string if you 
// can make a separate database for each instance of TSUGI.
// This allows you to host multiple instances of TSUIG in a 
// single database if your hosting choices are limited.
$CFG->dbprefix  = 'tsugi_';

// This is the PW that you need to access the Administration
// features of this application.
$CFG->adminpw = '<PASSWORD>!'; 

// These values configure the cookie used to record the overall 
// login in a long-lived encrypted cookie.   Look at the library 
// code create_secure_cookie() for more detail on how these operate.
$CFG->cookiesecret = 'something-highly-secret-2f518066bd757a289b543';
$CFG->cookiename = 'TSUGIAUTO';
$CFG->cookiepad = '390b246ea9'; 

// This is ued to make sure that out constructed session ids
// based on resource_link_id, oauth_consumer_key, etc are not
// predictable or guessable.   Just make this a long random string.
// See getCompositeKey() for detail on how this operates.
$CFG->sessionsalt = "something-very-secret-<KEY>";

// Set to false if you do not want analytics - this uses the ga.js
// analytics and sets three custom parameters 
// (oauth_consumer_key, context_id, and context_title) 
// is they are set.
$CFG->analytics_key = false;  // "UA-423997-16";
$CFG->analytics_name = false; // "dr-chuck.com";

// This makes it so that when you are completely disconnected, various tools
// will not access network resources (like Google's map library)
// Also the Google login will be faked.  Don't run this in production.
$CFG->OFFLINE = false;  

// This allows you to make your own tool folders.  These are scanned
// for database.php and index.php files to do automatic table creation
// as well as making lists of tools in various UI places.
$CFG->tool_folders = array("core", "mod", "samples");

// Leave these here
require_once $CFG->dirroot."/setup.php";
require_once $CFG->dirroot."/lib/lms_lib.php";

// No trailing tag to avoid inadvertent white space
<commit_msg>Update config-dist with MAMP example PDO string<commit_after><?php 

// Configuration file - copy from config-dist.php to config.php
// and then edit.  Since this has passwords and other secrets
// never check config.php into a source repository

// We store the configuration in a global object
unset($CFG);
global $CFG;
$CFG = new stdClass();

// This is the URL where the software is hosted
// Do not add a trailing slash to this string 
// If you get this value wonr, the first problem will be that CSS files will not load
$CFG->wwwroot = 'http://localhost/tsugi';
# $CFG->wwwroot = 'http://localhost:8888/tsugi';   // For MAMP

// This allows you to serve the materials in the static folder using 
// a content distribution network - it is normal and typical for this 
// to be the same as wwwroot
$CFG->staticroot = $CFG->wwwroot;

// Allows bootstrap files to come from a different CDN than the rest
// of the static files.   In particular Bootstrap provides its files
// via the following netdna URL 
$CFG->bootstrap = $CFG->staticroot . "/static/bootstrap";
# $CFG->bootstrap = "//netdna.bootstrapcdn.com/bootstrap/3.0.2";

// This should not be changes.  It allows included files to reference
// library files with an absolute path.
$CFG->dirroot = realpath(dirname(__FILE__));

// This is where TSUGI will store uploaded files.  It is ideal for this
// not to be in the same folder as the rest of the application, but you 
// may have no other choice to leave this unset (default)
// Make sure that this folder is readable and writable by the web server.
# $CFG->dataroot = $CFG->dirroot . '/_files/a';

// This is how the system will refer to itself.
$CFG->servicename = 'TSUGI (dev)';

// Default time zone - see http://www.php.net/....
$CFG->timezone = 'America/New_York';

// When this is true it enables a Developer test harness that can launch
// tools using LTI.  It allows quick testing without setting up an LMS 
// course, etc.
$CFG->DEVELOPER = true;

// Database connection information to configure the PDO connection
// You need to point this at a database with am account and password
// that can create tables.   To make the initial tables go into Admin
// to run the upgrade.php script which auto-creates the tables.
$CFG->pdo       = 'mysql:host=127.0.0.1;dbname=tsugi';
# $CFG->pdo       = 'mysql:host=127.0.0.1;port=8889;dbname=tsugi'; // MAMP
$CFG->database  = 'tsugi';
$CFG->dbuser    = 'ltiuser';
$CFG->dbpass    = '<PASSWORD>';

// The dbprefix allows you to give all the tables a prefix
// in case your hosting only gives you one database.  This
// can be short like "t_" and can even be an empty string if you 
// can make a separate database for each instance of TSUGI.
// This allows you to host multiple instances of TSUIG in a 
// single database if your hosting choices are limited.
$CFG->dbprefix  = 'tsugi_';

// This is the PW that you need to access the Administration
// features of this application.
$CFG->adminpw = '<PASSWORD>5<PASSWORD>57a2<PASSWORD>543!'; 

// These values configure the cookie used to record the overall 
// login in a long-lived encrypted cookie.   Look at the library 
// code create_secure_cookie() for more detail on how these operate.
$CFG->cookiesecret = 'something-highly-secret-2f518066bd757a289b543';
$CFG->cookiename = 'TSUGIAUTO';
$CFG->cookiepad = '390b246ea9'; 

// This is ued to make sure that out constructed session ids
// based on resource_link_id, oauth_consumer_key, etc are not
// predictable or guessable.   Just make this a long random string.
// See getCompositeKey() for detail on how this operates.
$CFG->sessionsalt = "something-very-secret-2f518066bd757a289b543";

// Set to false if you do not want analytics - this uses the ga.js
// analytics and sets three custom parameters 
// (oauth_consumer_key, context_id, and context_title) 
// is they are set.
$CFG->analytics_key = false;  // "UA-423997-16";
$CFG->analytics_name = false; // "dr-chuck.com";

// This makes it so that when you are completely disconnected, various tools
// will not access network resources (like Google's map library)
// Also the Google login will be faked.  Don't run this in production.
$CFG->OFFLINE = false;  

// This allows you to make your own tool folders.  These are scanned
// for database.php and index.php files to do automatic table creation
// as well as making lists of tools in various UI places.
$CFG->tool_folders = array("core", "mod", "samples");

// Leave these here
require_once $CFG->dirroot."/setup.php";
require_once $CFG->dirroot."/lib/lms_lib.php";

// No trailing tag to avoid inadvertent white space

{'fraction_non_alphanumeric': 0.10361206229979013, 'fraction_numerical': 0.013365735115431349, 'mean_word_length': 3.536072144288577, 'pattern_counts': {'":': 0, '<': 12, '<?xml version=': 0, '>': 69, 'https://': 0, 'lorem ipsum': 0, 'www.': 10, 'xml': 0}, 'pii_count': 3, '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': '5954857', 'n_tokens_mistral': 2736, 'n_tokens_neox': 2621, 'n_words': 1189}