<commit_before><?php
/**
 * ca-config.php
 *
 * API initialization portion of the cityapi class
 *
 * Modify this file to include your API key and user token.
 *
 * You can also configure debug message output handling. 
 *
 */
define("APIKEY","Your City API key here");             // The City API key to use by default
define("USERTOKEN", "Your user token here");           // The City API user token by default

// Called by the CityApi class to output a debug message.
// Allows you to configure the debug message behavior.  By default it emits a paragraph element 
// with class "ca-debug" containing the message, and writes the message to the PHP error log.
function ca_debug_message($msg) {
	echo '<p class="ca-debug">' . $msg . '</p>';
	error_log($msg);
}
<commit_msg>Added missing ?> at the end.  Added check to see if the API key and token constants were already defined so that the project could be included in a submodule without having to edit the project's ca-config.php<commit_after><?php
/**
 * ca-config.php
 *
 * API initialization portion of the cityapi class
 *
 * Modify this file to include your API key and user token.
 *
 * You can also configure debug message output handling. 
 *
 */
if(!defined('APIKEY')) {
  define("APIKEY","Your City API key here");             // The City API key to use by default
}

if(!defined('USERTOKEN')) {
  define("USERTOKEN", "Your user token here");           // The City API user token by default
}

// Called by the CityApi class to output a debug message.
// Allows you to configure the debug message behavior.  By default it emits a paragraph element 
// with class "ca-debug" containing the message, and writes the message to the PHP error log.
function ca_debug_message($msg) {
	echo '<p class="ca-debug">' . $msg . '</p>';
	error_log($msg);
}

?>
{'fraction_non_alphanumeric': 0.10386740331491713, 'fraction_numerical': 0.0, 'mean_word_length': 3.363855421686747, 'pattern_counts': {'":': 0, '<': 9, '<?xml version=': 0, '>': 9, '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': '4964780', 'n_tokens_mistral': 494, 'n_tokens_neox': 495, 'n_words': 239}