<commit_before>#ifndef MESSAGES_H
#define	MESSAGES_H

#include <mtp/ptp/Stream.h>

namespace mtp { namespace msg
{
	struct DeviceInfo
	{
		u16					StandardVersion;
		u32					VendorExtensionId;
		u16					VendorExtensionVersion;
		std::string			VendorExtensionDesc;
		u16					FunctionalMode;
		std::vector<u16>	OperationsSupported;
		std::vector<u16>	EventsSupported;
		std::vector<u16>	DevicePropertiesSupported;
		std::vector<u16>	CaptureFormats;
		std::vector<u16>	ImageFormats;
		std::string			Manufactorer;
		std::string			Model;
		std::string			DeviceVersion;
		std::string			SerialNumber;

		void Read(Stream &stream)
		{
			stream >> StandardVersion;
			stream >> VendorExtensionId;
			stream >> VendorExtensionVersion;
			stream >> VendorExtensionDesc;
			stream >> FunctionalMode;
			stream >> OperationsSupported;
			stream >> EventsSupported;
			stream >> DevicePropertiesSupported;
			stream >> CaptureFormats;
			stream >> ImageFormats;
			stream >> Manufactorer;
			stream >> Model;
			stream >> DeviceVersion;
			stream >> SerialNumber;
		}
	};

	struct ObjectHandles
	{
		std::vector<u32> ObjectHandles;

		void Read(Stream &stream)
		{
			stream >> ObjectHandles;
		}
	};

	struct StorageIDs
	{
		std::vector<u32> StorageIDs;

		void Read(Stream &stream)
		{
			stream >> StorageIDs;
		}
	};

	struct StorageInfo
	{
		u16			StorageType;
		u16			FilesystemType;
		u16			AccessCapability;
		u64			MaxCapacity;
		u64			FreeSpaceInBytes;
		u32			FreeSpaceInImages;
		std::string	StorageDescription;
		std::string	VolumeLabel;


		void Read(Stream &stream)
		{
			stream >> StorageType;
			stream >> FilesystemType;
			stream >> AccessCapability;
			stream >> MaxCapacity;
			stream >> FreeSpaceInBytes;
			stream >> FreeSpaceInImages;
			stream >> StorageDescription;
			stream >> VolumeLabel;
		}
	};

	struct ObjectInfo
	{
		u32			StorageId;
		u16			ObjectFormat;
		u16			ProtectinStatus;
		u32			ObjectCompressedSize;
		u16			ThumbFormat;
		u32			ThumbCompressedSize;
		u32			ThumbPixWidth;
		u32			ThumbPixHeight;
		u32			ImagePixWidth;
		u32			ImagePixHeight;
		u32			ImageBitDepth;
		u32			ParentObject;
		u16			AssociationType;
		u32			AssociationDesc;
		u32			SequenceNumber;
		std::string	Filename;
		std::string	CaptureDate;
		std::string	ModificationDate;
		std::string	Keywords;

		void Read(Stream &stream)
		{
			stream >> StorageId;
			stream >> ObjectFormat;
			stream >> ProtectinStatus;
			stream >> ObjectCompressedSize;
			stream >> ThumbFormat;
			stream >> ThumbCompressedSize;
			stream >> ThumbPixWidth;
			stream >> ThumbPixHeight;
			stream >> ImagePixWidth;
			stream >> ImagePixHeight;
			stream >> ImageBitDepth;
			stream >> ParentObject;
			stream >> AssociationType;
			stream >> AssociationDesc;
			stream >> SequenceNumber;
			stream >> Filename;
			stream >> CaptureDate;
			stream >> ModificationDate;
			stream >> Keywords;
		}
	};

}}


#endif	/* MESSAGES_H */
<commit_msg>fixed typo<commit_after>#ifndef MESSAGES_H
#define	MESSAGES_H

#include <mtp/ptp/Stream.h>

namespace mtp { namespace msg
{
	struct DeviceInfo
	{
		u16					StandardVersion;
		u32					VendorExtensionId;
		u16					VendorExtensionVersion;
		std::string			VendorExtensionDesc;
		u16					FunctionalMode;
		std::vector<u16>	OperationsSupported;
		std::vector<u16>	EventsSupported;
		std::vector<u16>	DevicePropertiesSupported;
		std::vector<u16>	CaptureFormats;
		std::vector<u16>	ImageFormats;
		std::string			Manufactorer;
		std::string			Model;
		std::string			DeviceVersion;
		std::string			SerialNumber;

		void Read(Stream &stream)
		{
			stream >> StandardVersion;
			stream >> VendorExtensionId;
			stream >> VendorExtensionVersion;
			stream >> VendorExtensionDesc;
			stream >> FunctionalMode;
			stream >> OperationsSupported;
			stream >> EventsSupported;
			stream >> DevicePropertiesSupported;
			stream >> CaptureFormats;
			stream >> ImageFormats;
			stream >> Manufactorer;
			stream >> Model;
			stream >> DeviceVersion;
			stream >> SerialNumber;
		}
	};

	struct ObjectHandles
	{
		std::vector<u32> ObjectHandles;

		void Read(Stream &stream)
		{
			stream >> ObjectHandles;
		}
	};

	struct StorageIDs
	{
		std::vector<u32> StorageIDs;

		void Read(Stream &stream)
		{
			stream >> StorageIDs;
		}
	};

	struct StorageInfo
	{
		u16			StorageType;
		u16			FilesystemType;
		u16			AccessCapability;
		u64			MaxCapacity;
		u64			FreeSpaceInBytes;
		u32			FreeSpaceInImages;
		std::string	StorageDescription;
		std::string	VolumeLabel;


		void Read(Stream &stream)
		{
			stream >> StorageType;
			stream >> FilesystemType;
			stream >> AccessCapability;
			stream >> MaxCapacity;
			stream >> FreeSpaceInBytes;
			stream >> FreeSpaceInImages;
			stream >> StorageDescription;
			stream >> VolumeLabel;
		}
	};

	struct ObjectInfo
	{
		u32			StorageId;
		u16			ObjectFormat;
		u16			ProtectionStatus;
		u32			ObjectCompressedSize;
		u16			ThumbFormat;
		u32			ThumbCompressedSize;
		u32			ThumbPixWidth;
		u32			ThumbPixHeight;
		u32			ImagePixWidth;
		u32			ImagePixHeight;
		u32			ImageBitDepth;
		u32			ParentObject;
		u16			AssociationType;
		u32			AssociationDesc;
		u32			SequenceNumber;
		std::string	Filename;
		std::string	CaptureDate;
		std::string	ModificationDate;
		std::string	Keywords;

		void Read(Stream &stream)
		{
			stream >> StorageId;
			stream >> ObjectFormat;
			stream >> ProtectionStatus;
			stream >> ObjectCompressedSize;
			stream >> ThumbFormat;
			stream >> ThumbCompressedSize;
			stream >> ThumbPixWidth;
			stream >> ThumbPixHeight;
			stream >> ImagePixWidth;
			stream >> ImagePixHeight;
			stream >> ImageBitDepth;
			stream >> ParentObject;
			stream >> AssociationType;
			stream >> AssociationDesc;
			stream >> SequenceNumber;
			stream >> Filename;
			stream >> CaptureDate;
			stream >> ModificationDate;
			stream >> Keywords;
		}
	};

}}


#endif	/* MESSAGES_H */

{'fraction_non_alphanumeric': 0.09649272882805816, 'fraction_numerical': 0.02189905902480753, 'mean_word_length': 3.669329073482428, 'pattern_counts': {'":': 0, '<': 19, '<?xml version=': 0, '>': 191, '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': '2532347', 'n_tokens_mistral': 2438, 'n_tokens_neox': 1959, 'n_words': 419}