<commit_before><?php

/**
* For ease of use, this class mostly contains static methods that build on PHP's string functions.
*/
class Gwilym_String
{
	/**
	* Returns $str with $left inserted at the beginning of the string, if it does not already start with $left
	*
	* @param mixed $str
	* @param str $left
	*/
	public static function unltrim ($str, $left)
	{
		if (substr($str, 0, strlen($left)) !== $left)
		{
			return $left . $str;
		}
		return $str;
	}
}<commit_msg>minor change to String class<commit_after><?php

/**
* For ease of use, this class mostly contains static methods that build on PHP's string functions.
*/
class Gwilym_String
{
	/**
	* Returns $str with $left inserted at the beginning of the string, if it does not already start with $left
	*
	* @param mixed $str
	* @param str $left
	*/
	public static function unltrim ($str, $left)
	{
		if (substr($str, 0, strlen($left)) === $left)
		{
			return $str;
		}
		return $left . $str;
	}
}
{'fraction_non_alphanumeric': 0.12957157784743992, 'fraction_numerical': 0.0020898641588296763, 'mean_word_length': 3.5402843601895735, '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': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '6305041', 'n_tokens_mistral': 336, 'n_tokens_neox': 317, 'n_words': 124}