<commit_before><?php

$default_database = 'mysql';

if (isset($_ENV['OPENSHIFT_POSTGRESQL_DB_URL'])) {
	$pgsql_host = $_ENV['OPENSHIFT_POSTGRESQL_DB_HOST'].':'.$_ENV['OPENSHIFT_POSTGRESQL_DB_PORT'];
	$pgsql_database = $_ENV['OPENSHIFT_GEAR_NAME'];
	$pgsql_username = $_ENV['OPENSHIFT_POSTGRESQL_DB_USERNAME'];
	$pgsql_password = $_ENV['OPENSHIFT_POSTGRESQL_DB_PASSWORD'];
	$default_database = 'pgsql';
} elseif (isset($_ENV['DATABASE_URL'])) {
	preg_match('/^postgres:\/\/(?P<username>\w+):(?P<password>\w+)@(?P<hostname>\S+):(?P<port>\d+)\/(?P<database>\w+)$/', $_ENV('DATABASE_URL'), $dbparts);
	$pgsql_host = $dbparts['hostname'].':'.$dbparts['port'];
	$pgsql_database = $dbparts['database'];<commit_msg>More typo fixing<commit_after><?php

$default_database = 'mysql';

if (isset($_ENV['OPENSHIFT_POSTGRESQL_DB_URL'])) {
	$pgsql_host = $_ENV['OPENSHIFT_POSTGRESQL_DB_HOST'].':'.$_ENV['OPENSHIFT_POSTGRESQL_DB_PORT'];
	$pgsql_database = $_ENV['OPENSHIFT_GEAR_NAME'];
	$pgsql_username = $_ENV['OPENSHIFT_POSTGRESQL_DB_USERNAME'];
	$pgsql_password = $_ENV['<PASSWORD>'];
	$default_database = 'pgsql';
} elseif (isset($_ENV['DATABASE_URL'])) {
	preg_match('/^postgres:\/\/(?P<username>\w+):(?P<password>\w+)@(?P<hostname>\S+):(?P<port>\d+)\/(?P<database>\w+)$/', $_ENV['DATABASE_URL'], $dbparts);
	$pgsql_host = $dbparts['hostname'].':'.$dbparts['port'];
	$pgsql_database = $dbparts['database'];
{'fraction_non_alphanumeric': 0.23942652329749103, 'fraction_numerical': 0.0, 'mean_word_length': 10.168, 'pattern_counts': {'":': 0, '<': 16, '<?xml version=': 0, '>': 14, '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': '6054695', 'n_tokens_mistral': 576, 'n_tokens_neox': 573, 'n_words': 49}