<commit_before><?php
	// Display any php errors (for development purposes)
	error_reporting(E_ALL);
	ini_set('display_errors', '1');

	/***************************/
	/* TEMPLATE WIZARD CONFIG  */
	/***************************/
	// The URL for where the "wizard" folder is located
	$code = explode(".", $_SERVER['HTTP_HOST'], 2)[0];

	$_SESSION['template_wizard_url'] = $_SERVER['DOCUMENT_ROOT'].'/wizard';
	require_once __DIR__.'/wizard/resources/blti.php';
	require_once __DIR__.'/wizard/resources/cryptastic.php';
	require_once($_SERVER['DOCUMENT_ROOT'].'/vendor/phpseclib/phpseclib/phpseclib/Crypt/AES.php');

  $dbType = getenv("DB_TYPE");
  $dbName = getenv("DB_NAME");
  $dbHost = getenv("DB_HOST");
  $dbUser = getenv("DB_USER");
  $dbPass = getenv("DB_PASS");
  $dsn = "$dbType:dbname=$dbName;host=$dbHost;user=$dbUser;password=$dbPass";
  $dbh = new PDO($dsn);



  $result = $dbh->prepare('SELECT * FROM accounts WHERE code = ?');
  $result->execute(array($code));

  $account = $result->fetch(PDO::FETCH_OBJ);

  // Strings to help encrypt/decrypt user OAuth tokens
	$salt = $account->salt;
	$pass = $account->pass;

	// Your Canvas OAuth2 Developer information. Used for getting OAuth tokens from users
	$client_id = getenv("CLIENT_ID");
	$clientSecret = getenv("CLIENT_SECRET");

	// The Shared Secret you use when setting up the Template Wizard LTI tool
	$lti_secret = $account->lti_secret;

	// Message to display if the OAuth token request fails
	$oauth_error_message = 'There is a problem, contact someone to fix it';
<commit_msg>Add Port to db string<commit_after><?php
	// Display any php errors (for development purposes)
	error_reporting(E_ALL);
	ini_set('display_errors', '1');

	/***************************/
	/* TEMPLATE WIZARD CONFIG  */
	/***************************/
	// The URL for where the "wizard" folder is located
	$code = explode(".", $_SERVER['HTTP_HOST'], 2)[0];

	$_SESSION['template_wizard_url'] = $_SERVER['DOCUMENT_ROOT'].'/wizard';
	require_once __DIR__.'/wizard/resources/blti.php';
	require_once __DIR__.'/wizard/resources/cryptastic.php';
	require_once($_SERVER['DOCUMENT_ROOT'].'/vendor/phpseclib/phpseclib/phpseclib/Crypt/AES.php');

  $dbType = getenv("DB_TYPE");
  $dbName = getenv("DB_NAME");
  $dbHost = getenv("DB_HOST");
  $dbPort = getenv("DB_PORT");
  $dbUser = getenv("DB_USER");
  $dbPass = getenv("DB_PASS");
  $dsn = "$dbType:dbname=$dbName;host=$dbHost;port=$dbPort;user=$dbUser;password=$<PASSWORD>";
  $dbh = new PDO($dsn);



  $result = $dbh->prepare('SELECT * FROM accounts WHERE code = ?');
  $result->execute(array($code));

  $account = $result->fetch(PDO::FETCH_OBJ);

  // Strings to help encrypt/decrypt user OAuth tokens
	$salt = $account->salt;
	$pass = $account->pass;

	// Your Canvas OAuth2 Developer information. Used for getting OAuth tokens from users
	$client_id = getenv("CLIENT_ID");
	$clientSecret = getenv("CLIENT_SECRET");

	// The Shared Secret you use when setting up the Template Wizard LTI tool
	$lti_secret = $account->lti_secret;

	// Message to display if the OAuth token request fails
	$oauth_error_message = 'There is a problem, contact someone to fix it';

{'fraction_non_alphanumeric': 0.1892063492063492, 'fraction_numerical': 0.0025396825396825397, 'mean_word_length': 5.154296875, 'pattern_counts': {'":': 0, '<': 6, '<?xml version=': 0, '>': 16, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, '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': '162678', 'n_tokens_mistral': 1118, 'n_tokens_neox': 1059, 'n_words': 244}