<commit_before>/*
	This file is part of the Rendering library.
	Copyright (C) 2012 <NAME> <<EMAIL>>
	
	This library is subject to the terms of the Mozilla Public License, v. 2.0.
	You should have received a copy of the MPL along with this library; see the 
	file LICENSE. If not, you can obtain one at http://mozilla.org/MPL/2.0/.
*/
#ifndef RENDERING_GENERICATTRIBUTE_STREAMER_H
#define RENDERING_GENERICATTRIBUTE_STREAMER_H

#include <string>

namespace Util {
class GenericAttribute;
class GenericAttributeMap;
template<class ObjType> class ReferenceAttribute;
}
namespace Rendering {
class Mesh;
namespace Serialization {

/*! Adds a handler for Util::_CounterAttribute<Mesh> to Util::GenericAttributeSerialization.
	Should be called at least once before a GenericAttribute is serialized which
	may contain a Mesh.
	\note Texture-Serialization may be added here when needed.
	\note The return value is always true and can be used for static initialization.
*/
RENDERINGAPI bool initGenericAttributeSerialization();

typedef Util::ReferenceAttribute<Mesh> MeshAttribute_t;
RENDERINGAPI const std::string GATypeNameMesh("Mesh");
RENDERINGAPI const std::string embeddedMeshPrefix("$[mmf_b64]");
RENDERINGAPI std::pair<std::string, std::string> serializeGAMesh(const std::pair<const Util::GenericAttribute *,
																	const Util::GenericAttributeMap *> & attributeAndContext);
RENDERINGAPI MeshAttribute_t * unserializeGAMesh(const std::pair<std::string,
													const Util::GenericAttributeMap *> & contentAndContext);

}
}

#endif /* RENDERING_GENERICATTRIBUTE_STREAMER_H */<commit_msg>bad exports<commit_after>/*
	This file is part of the Rendering library.
	Copyright (C) 2012 <NAME> <<EMAIL>>
	
	This library is subject to the terms of the Mozilla Public License, v. 2.0.
	You should have received a copy of the MPL along with this library; see the 
	file LICENSE. If not, you can obtain one at http://mozilla.org/MPL/2.0/.
*/
#ifndef RENDERING_GENERICATTRIBUTE_STREAMER_H
#define RENDERING_GENERICATTRIBUTE_STREAMER_H

#include <string>

namespace Util {
class GenericAttribute;
class GenericAttributeMap;
template<class ObjType> class ReferenceAttribute;
}
namespace Rendering {
class Mesh;
namespace Serialization {

/*! Adds a handler for Util::_CounterAttribute<Mesh> to Util::GenericAttributeSerialization.
	Should be called at least once before a GenericAttribute is serialized which
	may contain a Mesh.
	\note Texture-Serialization may be added here when needed.
	\note The return value is always true and can be used for static initialization.
*/
RENDERINGAPI bool initGenericAttributeSerialization();

typedef Util::ReferenceAttribute<Mesh> MeshAttribute_t;
const std::string GATypeNameMesh("Mesh");
const std::string embeddedMeshPrefix("$[mmf_b64]");
RENDERINGAPI std::pair<std::string, std::string> serializeGAMesh(const std::pair<const Util::GenericAttribute *,
																	const Util::GenericAttributeMap *> & attributeAndContext);
RENDERINGAPI MeshAttribute_t * unserializeGAMesh(const std::pair<std::string,
													const Util::GenericAttributeMap *> & contentAndContext);

}
}

#endif /* RENDERING_GENERICATTRIBUTE_STREAMER_H */
{'fraction_non_alphanumeric': 0.0856962822936358, 'fraction_numerical': 0.00630119722747322, 'mean_word_length': 5.559917355371901, 'pattern_counts': {'":': 0, '<': 23, '<?xml version=': 0, '>': 23, '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': '2757325', 'n_tokens_mistral': 988, 'n_tokens_neox': 917, 'n_words': 303}