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

Created by <NAME> on 2012-07-08.
Copyright (c) 2009-2015 Exa Networks. All rights reserved.
"""

# from exabgp.protocol.family import AFI
# from exabgp.protocol.family import SAFI

from exabgp.bgp.message import OUT

# from exabgp.bgp.message.update.nlri.nlri import NLRI
from exabgp.bgp.message.update.nlri.mpls import MPLS
# from exabgp.bgp.message.update.nlri.qualifier import RouteDistinguisher


# ====================================================== Both MPLS and Inet NLRI
# RFC 3107 / RFC 4364

# @NLRI.register(AFI.ipv4,SAFI.mpls_vpn)
# @NLRI.register(AFI.ipv6,SAFI.mpls_vpn)
class MPLSVPN (MPLS):
	def __init__ (self, afi, safi, action=OUT.UNSET):
		MPLS.__init__(self, afi, safi, action)

	@classmethod
	def new (cls, afi, safi, packed, mask, nexthop):
		instance = cls(afi,safi,OUT.announce)
		instance.cidr = CIDR(packed, mask)
		instance.nexthop = nexthop
		return instance

	def __eq__(self, other):<commit_msg>oops simple typo fix<commit_after># encoding: utf-8
"""
bgp.py

Created by <NAME> on 2012-07-08.
Copyright (c) 2009-2015 Exa Networks. All rights reserved.
"""

# from exabgp.protocol.family import AFI
# from exabgp.protocol.family import SAFI

from exabgp.bgp.message import OUT

# from exabgp.bgp.message.update.nlri.nlri import NLRI
from exabgp.bgp.message.update.nlri.cidr import CIDR
from exabgp.bgp.message.update.nlri.mpls import MPLS
# from exabgp.bgp.message.update.nlri.qualifier import RouteDistinguisher


# ====================================================== Both MPLS and Inet NLRI
# RFC 3107 / RFC 4364

# @NLRI.register(AFI.ipv4,SAFI.mpls_vpn)
# @NLRI.register(AFI.ipv6,SAFI.mpls_vpn)
class MPLSVPN (MPLS):
	def __init__ (self, afi, safi, action=OUT.UNSET):
		MPLS.__init__(self, afi, safi, action)

	@classmethod
	def new (cls, afi, safi, packed, mask, nexthop):
		instance = cls(afi,safi,OUT.ANNOUNCE)
		instance.cidr = CIDR(packed, mask)
		instance.nexthop = nexthop
		return instance

	def __eq__(self, other):
{'fraction_non_alphanumeric': 0.16600199401794616, 'fraction_numerical': 0.026919242273180457, 'mean_word_length': 4.885630498533724, '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': '7311446', 'n_tokens_mistral': 834, 'n_tokens_neox': 769, 'n_words': 178}