<commit_before><?php

/**
 * Function library for Rhymix
 * 
 * Copyright (c) Rhymix Developers and Contributors
 */


/** Get the first value of an array.
 * 
 * @param array $array The input array
 * @return mixed
 */
function array_first(array $array)
{
	return reset($array);
}

/** Get the first key of an array.
 * 
 * @param array $array The input array<commit_msg>Add shortcut function to system configuration<commit_after><?php

/**
 * Function library for Rhymix
 * 
 * Copyright (c) Rhymix Developers and Contributors
 */

/**
 * Get system configuration.
 * 
 * @param string $key
 * @return mixed
 */
function config($key)
{
	return Rhymix\Framework\Config::get($key);
}

/** Get the first value of an array.
 * 
 * @param array $array The input array
 * @return mixed
 */
function array_first(array $array)
{
	return reset($array);
}

/** Get the first key of an array.
 * 
 * @param array $array The input array
{'fraction_non_alphanumeric': 0.12311015118790497, 'fraction_numerical': 0.0, 'mean_word_length': 3.5441176470588234, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 3, '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': '3996141', 'n_tokens_mistral': 289, 'n_tokens_neox': 281, 'n_words': 104}