<commit_before><?php
namespace Ivory\Type\Std;

/**
 * Logical boolean (true/false).
 *
 * Represented as the PHP `bool` type.
 *
 * @see http://www.postgresql.org/docs/9.4/static/datatype-boolean.html
 */
class BooleanType extends \Ivory\Type\BaseType
{
	public function parseValue($str)
	{
		if ($str === null) {
			return null;
		}

		switch (strtoupper(trim($str))) {<commit_msg>BooleanType: do not accept untrimmed input<commit_after><?php
namespace Ivory\Type\Std;

/**
 * Logical boolean (true/false).
 *
 * Represented as the PHP `bool` type.
 *
 * @see http://www.postgresql.org/docs/9.4/static/datatype-boolean.html
 */
class BooleanType extends \Ivory\Type\BaseType
{
	public function parseValue($str)
	{
		if ($str === null) {
			return null;
		}

		switch (strtoupper($str)) {
{'fraction_non_alphanumeric': 0.15842839036755388, 'fraction_numerical': 0.005069708491761723, 'mean_word_length': 3.7590361445783134, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 2, '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': '4650130', 'n_tokens_mistral': 292, 'n_tokens_neox': 281, 'n_words': 61}