<commit_before>#pragma once
#include <SFML/Graphics/Texture.hpp>
#include <memory>
#include <map>

namespace fse
{
	class AssetLoader {
	public:

		class Texture
		{
		public:
			Texture();
			Texture(const Texture &texture);
			Texture(AssetLoader* loader, std::string path, sf::Texture* tex);
			~Texture();
			sf::Texture& get() const;

			Texture& operator=(const Texture& texture);
			sf::Texture* operator->() const;
		private:
			AssetLoader* loader_;
			std::string path_;
			sf::Texture* tex_;
		};

		AssetLoader();
		~AssetLoader();

		sf::Texture& getSFTexture(std::string path);
		AssetLoader::Texture getTexture(std::string path);
		void releaseSFTexture(std::string path);<commit_msg>AssetLoader: Add operator<commit_after>#pragma once
#include <SFML/Graphics/Texture.hpp>
#include <memory>
#include <map>

namespace fse
{
	class AssetLoader {
	public:

		class Texture
		{
		public:
			Texture();
			Texture(const Texture &texture);
			Texture(AssetLoader* loader, std::string path, sf::Texture* tex);
			~Texture();
			sf::Texture& get() const;

			Texture& operator=(const Texture& texture);
			sf::Texture* operator->() const;
			sf::Texture& operator*() const
			{
				return *tex_;
			}
		private:
			AssetLoader* loader_;
			std::string path_;
			sf::Texture* tex_;
		};

		AssetLoader();
		~AssetLoader();

		sf::Texture& getSFTexture(std::string path);
		AssetLoader::Texture getTexture(std::string path);
		void releaseSFTexture(std::string path);
{'fraction_non_alphanumeric': 0.14605978260869565, 'fraction_numerical': 0.0, 'mean_word_length': 4.64367816091954, 'pattern_counts': {'":': 0, '<': 9, '<?xml version=': 0, '>': 11, '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': '4179534', 'n_tokens_mistral': 542, 'n_tokens_neox': 462, 'n_words': 116}