<commit_before>#pragma once
namespace wd {

template<typename T>
class rect
{
public:
	rect();
	rect(const rect<T>& other) = default;
	rect(rect<T>&& other) = default;
	rect(T left, T top, T right, T bottom);

	rect<T>& operator=(const rect<T>& other) = default;
	rect<T>& operator=(rect<T>&& other) = default;

	T& operator[](int index);
	T operator[](int index) const;

	void set(T left, T top, T right, T bottom);

	point2<T>& topleft();
	point2<T>& bottomright();

	const point2<T>& topleft() const;
	const point2<T>& bottomright() const;

	T width() const;
	T height() const;

public:
	T left;
	T top;
	T right;
	T bottom;
};

template<typename T> T area(const rect<T>& r);
template<typename T> T perimeter(const rect<T>& r);

}

#include "wd_rect.hpp"<commit_msg>add typedefs for base types for rect<T> and set default constructor to default imp<commit_after>#pragma once
namespace wd {

template<typename T>
class rect
{
public:
	rect() = default;
	rect(const rect<T>& other) = default;
	rect(rect<T>&& other) = default;
	rect(T left, T top, T right, T bottom);

	rect<T>& operator=(const rect<T>& other) = default;
	rect<T>& operator=(rect<T>&& other) = default;

	T& operator[](int index);
	T operator[](int index) const;

	void set(T left, T top, T right, T bottom);

	point2<T>& topleft();
	point2<T>& bottomright();

	const point2<T>& topleft() const;
	const point2<T>& bottomright() const;

	T width() const;
	T height() const;

public:
	T left;
	T top;
	T right;
	T bottom;
};

template<typename T> T area(const rect<T>& r);
template<typename T> T perimeter(const rect<T>& r);


typedef rect<int8>  recti8;
typedef rect<int16> recti16;
typedef rect<int32> recti;
typedef rect<int64> recti64;

typedef rect<uint8>  rectui8;
typedef rect<uint16> rectui16;
typedef rect<uint32> rectui;
typedef rect<uint64> rectui64;

typedef rect<float>  rectf;
typedef rect<double> rectd;

}

#include "wd_rect.hpp"
{'fraction_non_alphanumeric': 0.1543694400837258, 'fraction_numerical': 0.01674515960230246, 'mean_word_length': 5.147909967845659, 'pattern_counts': {'":': 0, '<': 44, '<?xml version=': 0, '>': 44, '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': '722797', 'n_tokens_mistral': 752, 'n_tokens_neox': 706, 'n_words': 225}