<commit_before>function AMFExplorerAMFLib() {}

(function() { with (FBL) { 

const NS_SEEK_SET = 0;
const NS_SEEK_CUR = 1;
const NS_SEEK_END = 2;

// AMF Version Constants
const AMF0_VERSION = 0;
const AMF1_VERSION = 1; // There is no AMF1 but FMS uses it for some reason, hence special casing.
const AMF3_VERSION = 3;

// AMF0 Constants
const AMF0_kNumberType		= 0;
const AMF0_kBooleanType		= 1;
const AMF0_kStringType		= 2;
const AMF0_kObjectType		= 3;
const AMF0_kMovieClipType	= 4;
const AMF0_kNullType		= 5;
const AMF0_kUndefinedType	= 6;
const AMF0_kReferenceType	= 7;
const AMF0_kECMAArrayType	= 8;
const AMF0_kObjectEndType	= 9;
const AMF0_kStrictArrayType	= 10;
const AMF0_kDateType		= 11;
const AMF0_kLongStringType	= 12; 
const AMF0_kUnsupportedType	= 13;
const AMF0_kRecordsetType	= 14;
const AMF0_kXMLObjectType	= 15;
const AMF0_kTypedObjectType	= 16;
const AMF0_kAvmPlusObjectType = 17;

// AMF3 Constants
const AMF3_kUndefinedType	= 0;
const AMF3_kNullType		= 1;
const AMF3_kFalseType		= 2;
const AMF3_kTrueType		= 3;
const AMF3_kIntegerType		= 4;
const AMF3_kDoubleType		= 5;
const AMF3_kStringType		= 6;
const AMF3_kXMLType			= 7;
const AMF3_kDateType		= 8;
const AMF3_kArrayType		= 9;
const AMF3_kObjectType		= 10;
const AMF3_kAvmPlusXmlType	= 11;
const AMF3_kByteArrayType	= 12;
const AMF3_EMPTY_STRING		= "";
const AMF3_UINT29_MASK		= 0x1FFFFFFF; // 2^29 - 1
const AMF3_INT28_MAX_VALUE	= 0x0FFFFFFF; // 2^28 - 1
const AMF3_INT28_MIN_VALUE	= 0xF0000000; // -2^28 in 2^29 scheme

// AbstractMessage Constants
const HAS_NEXT_FLAG = 128;
const BODY_FLAG = 1;
const CLIENT_ID_FLAG = 2;
const DESTINATION_FLAG = 4;
const HEADERS_FLAG = 8;
const MESSAGE_ID_FLAG = 16;
const TIMESTAMP_FLAG = 32;
const TIME_TO_LIVE_FLAG = 64;
const CLIENT_ID_BYTES_FLAG = 1;
const MESSAGE_ID_BYTES_FLAG = 2;

//AsyncMessage Constants
const CORRELATION_ID_FLAG = 1;
const CORRELATION_ID_BYTES_FLAG = 2;

// Simplified implementaiton of the class alias registry 
var classAliasRegistry =
{	
	"DSK": "flex.messaging.messages.AcknowledgeMessageExt",
	"DSA": "flex.messaging.messages.AsyncMessageExt",
	"DSC": "flex.messaging.messages.CommandMessageExt"	<commit_msg>Fixing typo.<commit_after>function AMFExplorerAMFLib() {}

(function() { with (FBL) { 

const NS_SEEK_SET = 0;
const NS_SEEK_CUR = 1;
const NS_SEEK_END = 2;

// AMF Version Constants
const AMF0_VERSION = 0;
const AMF1_VERSION = 1; // There is no AMF1 but FMS uses it for some reason, hence special casing.
const AMF3_VERSION = 3;

// AMF0 Constants
const AMF0_kNumberType		= 0;
const AMF0_kBooleanType		= 1;
const AMF0_kStringType		= 2;
const AMF0_kObjectType		= 3;
const AMF0_kMovieClipType	= 4;
const AMF0_kNullType		= 5;
const AMF0_kUndefinedType	= 6;
const AMF0_kReferenceType	= 7;
const AMF0_kECMAArrayType	= 8;
const AMF0_kObjectEndType	= 9;
const AMF0_kStrictArrayType	= 10;
const AMF0_kDateType		= 11;
const AMF0_kLongStringType	= 12; 
const AMF0_kUnsupportedType	= 13;
const AMF0_kRecordsetType	= 14;
const AMF0_kXMLObjectType	= 15;
const AMF0_kTypedObjectType	= 16;
const AMF0_kAvmPlusObjectType = 17;

// AMF3 Constants
const AMF3_kUndefinedType	= 0;
const AMF3_kNullType		= 1;
const AMF3_kFalseType		= 2;
const AMF3_kTrueType		= 3;
const AMF3_kIntegerType		= 4;
const AMF3_kDoubleType		= 5;
const AMF3_kStringType		= 6;
const AMF3_kXMLType			= 7;
const AMF3_kDateType		= 8;
const AMF3_kArrayType		= 9;
const AMF3_kObjectType		= 10;
const AMF3_kAvmPlusXmlType	= 11;
const AMF3_kByteArrayType	= 12;
const AMF3_EMPTY_STRING		= "";
const AMF3_UINT29_MASK		= 0x1FFFFFFF; // 2^29 - 1
const AMF3_INT28_MAX_VALUE	= 0x0FFFFFFF; // 2^28 - 1
const AMF3_INT28_MIN_VALUE	= 0xF0000000; // -2^28 in 2^29 scheme

// AbstractMessage Constants
const HAS_NEXT_FLAG = 128;
const BODY_FLAG = 1;
const CLIENT_ID_FLAG = 2;
const DESTINATION_FLAG = 4;
const HEADERS_FLAG = 8;
const MESSAGE_ID_FLAG = 16;
const TIMESTAMP_FLAG = 32;
const TIME_TO_LIVE_FLAG = 64;
const CLIENT_ID_BYTES_FLAG = 1;
const MESSAGE_ID_BYTES_FLAG = 2;

//AsyncMessage Constants
const CORRELATION_ID_FLAG = 1;
const CORRELATION_ID_BYTES_FLAG = 2;

// Simplified implementation of the class alias registry 
var classAliasRegistry =
{	
	"DSK": "flex.messaging.messages.AcknowledgeMessageExt",
	"DSA": "flex.messaging.messages.AsyncMessageExt",
	"DSC": "flex.messaging.messages.CommandMessageExt"	
{'fraction_non_alphanumeric': 0.08327534214799351, 'fraction_numerical': 0.06402226861517049, 'mean_word_length': 5.168812589413448, 'pattern_counts': {'":': 6, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 6, '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': '5818454', 'n_tokens_mistral': 2018, 'n_tokens_neox': 1821, 'n_words': 423}