<commit_before># encoding: utf-8
"""
unknown.py

Created by <NAME> on 2009-11-05.
Copyright (c) 2009-2013 Exa Networks. All rights reserved.
"""

from exabgp.bgp.message.update.attribute import Attribute

# =================================================================== MED (4)

class Unknown (Attribute):
	MULTIPLE = False

	def __init__ (self,code,flag,data):
		self.ID = code
		self.FLAG = flag
		self.data = data

	def pack (self):
		return self.data

	def __len__ (self):
		return len(self.data)

	def __str__ (self):
		return self._str<commit_msg>commited to fast need to fix a few things<commit_after># encoding: utf-8
"""
unknown.py

Created by <NAME> on 2009-11-05.
Copyright (c) 2009-2013 Exa Networks. All rights reserved.
"""

from exabgp.bgp.message.update.attribute import Attribute

# =================================================================== MED (4)

class Unknown (Attribute):
	MULTIPLE = False

	def __init__ (self,code,flag,data):
		self.ID = code
		self.FLAG = flag
		self.data = data

	def pack (self):
		return self.data

	def __len__ (self):
		return len(self.data)

	def __str__ (self):
		r = ''
		even = None
		for v in self.data:
			if even is False:
				r += ' '
			r += '%02X' % ord(v)
			even = not even
		return '[ %s ]' % r
{'fraction_non_alphanumeric': 0.2198581560283688, 'fraction_numerical': 0.029944838455476755, 'mean_word_length': 3.828897338403042, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, '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': '2362132', 'n_tokens_mistral': 488, 'n_tokens_neox': 412, 'n_words': 130}