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

class StdTypeLoader implements \Ivory\Type\ITypeLoader
{
	public function loadType($schemaName, $typeName, \Ivory\Connection\IConnection $connection)
	{
		if ($schemaName != 'pg_catalog') {
			return null;
		}

		switch ($typeName) {
			case 'smallint':
			case 'int2':
			case 'integer':
			case 'int':
			case 'int4':
				return new IntegerType($typeName, $schemaName, $connection);

			case 'bigint':
			case 'int8':
				return new BigIntType($typeName, $schemaName, $connection);

			case 'numeric':
			case 'decimal':
				return new DecimalType($typeName, $schemaName, $connection);

			case 'real':
			case 'float4':
			case 'double precision':
			case 'float8':
				return new FloatType($typeName, $schemaName, $connection);

			case 'boolean':
			case 'bool':
				return new BooleanType($typeName, $schemaName, $connection);

			case 'text':
			case 'character':
			case 'char':
			case 'character varying':
			case 'varchar':
			case 'bpchar':
				return new StringType($typeName, $schemaName, $connection);

			case 'bytea':
				return new BinaryType($typeName, $schemaName, $connection);

			case 'bit':
				return new FixedBitStringType($typeName, $schemaName, $connection);

			case 'bit varying':
			case 'varbit':
				return new VarBitStringType($typeName, $schemaName, $connection);

			case 'json':
				return new JsonExactType($typeName, $schemaName, $connection);
			case 'jsonb':
				return new JsonBType($typeName, $schemaName, $connection);

			case 'xml':
				return new XmlType($typeName, $schemaName, $connection);

			case 'uuid':
				return new UuidType($typeName, $schemaName, $connection);

			case 'point':
				return new PointType($typeName, $schemaName, $connection);
			case 'line':
				return new LineType($schemaName, $typeName, $connection);
			case 'lseg':
				return new LineSegmentType($typeName, $schemaName, $connection);
			case 'box':
				return new BoxType($typeName, $schemaName, $connection);
			case 'path':
				return new PathType($typeName, $schemaName, $connection);
			case 'polygon':
				return new PolygonType($typeName, $schemaName, $connection);
			case 'circle':
				return new CircleType($typeName, $schemaName, $connection);

			case 'inet':
				return new InetType($typeName, $schemaName, $connection);
			case 'cidr':
				return new CidrType($typeName, $schemaName, $connection);
			case 'macaddr':
				return new MacAddrType($typeName, $schemaName, $connection);

			case 'money':
				return new MoneyType($typeName, $schemaName, $connection);

			default:
				return null;
		}
	}
}<commit_msg>fix StdTypeLoader after a wrong refactoring of BaseType constructor arguments<commit_after><?php
namespace Ivory\Type\Std;

class StdTypeLoader implements \Ivory\Type\ITypeLoader
{
	public function loadType($schemaName, $typeName, \Ivory\Connection\IConnection $connection)
	{
		if ($schemaName != 'pg_catalog') {
			return null;
		}

		switch ($typeName) {
			case 'smallint':
			case 'int2':
			case 'integer':
			case 'int':
			case 'int4':
				return new IntegerType($schemaName, $typeName, $connection);

			case 'bigint':
			case 'int8':
				return new BigIntType($schemaName, $typeName, $connection);

			case 'numeric':
			case 'decimal':
				return new DecimalType($schemaName, $typeName, $connection);

			case 'real':
			case 'float4':
			case 'double precision':
			case 'float8':
				return new FloatType($schemaName, $typeName, $connection);

			case 'boolean':
			case 'bool':
				return new BooleanType($schemaName, $typeName, $connection);

			case 'text':
			case 'character':
			case 'char':
			case 'character varying':
			case 'varchar':
			case 'bpchar':
				return new StringType($schemaName, $typeName, $connection);

			case 'bytea':
				return new BinaryType($schemaName, $typeName, $connection);

			case 'bit':
				return new FixedBitStringType($schemaName, $typeName, $connection);

			case 'bit varying':
			case 'varbit':
				return new VarBitStringType($schemaName, $typeName, $connection);

			case 'json':
				return new JsonExactType($schemaName, $typeName, $connection);
			case 'jsonb':
				return new JsonBType($schemaName, $typeName, $connection);

			case 'xml':
				return new XmlType($schemaName, $typeName, $connection);

			case 'uuid':
				return new UuidType($schemaName, $typeName, $connection);

			case 'point':
				return new PointType($schemaName, $typeName, $connection);
			case 'line':
				return new LineType($schemaName, $typeName, $connection);
			case 'lseg':
				return new LineSegmentType($schemaName, $typeName, $connection);
			case 'box':
				return new BoxType($schemaName, $typeName, $connection);
			case 'path':
				return new PathType($schemaName, $typeName, $connection);
			case 'polygon':
				return new PolygonType($schemaName, $typeName, $connection);
			case 'circle':
				return new CircleType($schemaName, $typeName, $connection);

			case 'inet':
				return new InetType($schemaName, $typeName, $connection);
			case 'cidr':
				return new CidrType($schemaName, $typeName, $connection);
			case 'macaddr':
				return new MacAddrType($schemaName, $typeName, $connection);

			case 'money':
				return new MoneyType($schemaName, $typeName, $connection);

			default:
				return null;
		}
	}
}
{'fraction_non_alphanumeric': 0.13434535104364326, 'fraction_numerical': 0.0018975332068311196, 'mean_word_length': 4.2604790419161676, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 2}, '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': '4024494', 'n_tokens_mistral': 1976, 'n_tokens_neox': 1614, 'n_words': 461}