<commit_before>#include "ResTexture.hpp"

#include "../Exc.hpp"
#include "../util/Image.hpp"
#include "../util/util.hpp"



using namespace morda;



//static
std::shared_ptr<ResTexture> ResTexture::load(const stob::Node& chain, const papki::File& fi){
//	TRACE(<< "ResTexture::Load(): enter" << std::endl)

//	TRACE(<< "ResTexture::Load(): Loading image, file path = " << fileVal->value() << std::endl)
	fi.setPath(chain.side("file").up().value());
	Image image(fi);
//	TRACE(<< "ResTexture::Load(): image loaded" << std::endl)
	image.flipVertical();

	return std::move(utki::makeShared<ResTexture>(image));
}<commit_msg>std::move<commit_after>#include "ResTexture.hpp"

#include "../Exc.hpp"
#include "../util/Image.hpp"
#include "../util/util.hpp"



using namespace morda;



//static
std::shared_ptr<ResTexture> ResTexture::load(const stob::Node& chain, const papki::File& fi){
//	TRACE(<< "ResTexture::Load(): enter" << std::endl)

//	TRACE(<< "ResTexture::Load(): Loading image, file path = " << fileVal->value() << std::endl)
	fi.setPath(chain.side("file").up().value());
	Image image(fi);
//	TRACE(<< "ResTexture::Load(): image loaded" << std::endl)
	image.flipVertical();

	return utki::makeShared<ResTexture>(image);
}
{'fraction_non_alphanumeric': 0.22945484133441824, 'fraction_numerical': 0.0, 'mean_word_length': 5.577540106951871, 'pattern_counts': {'":': 0, '<': 35, '<?xml version=': 0, '>': 9, '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': '5197480', 'n_tokens_mistral': 433, 'n_tokens_neox': 417, 'n_words': 84}