<commit_before># encoding: utf-8
"""
nlri/__init__.py

Created by <NAME> on 2013-08-07.
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.update.nlri.prefix import Prefix
from exabgp.bgp.message.update.nlri.nlri import NLRI
from exabgp.bgp.message.update.nlri.mpls import MPLS
from exabgp.bgp.message.update.nlri.mpls import MPLSVPN
from exabgp.bgp.message.update.nlri.vpls import VPLS
from exabgp.bgp.message.update.nlri.flow import Flow
from exabgp.bgp.message.update.nlri.evpn import EVPN
from exabgp.bgp.message.update.nlri.rtc import RouteTargetConstraint

NLRI.register_nlri(Prefix,AFI.ipv4,SAFI.unicast)
NLRI.register_nlri(Prefix,AFI.ipv6,SAFI.unicast)
NLRI.register_nlri(Prefix,AFI.ipv4,SAFI.multicast)
NLRI.register_nlri(Prefix,AFI.ipv6,SAFI.multicast)

NLRI.register_nlri(MPLS,AFI.ipv4,SAFI.nlri_mpls)
NLRI.register_nlri(MPLS,AFI.ipv6,SAFI.nlri_mpls)
NLRI.register_nlri(MPLSVPN,AFI.ipv4,SAFI.mpls_vpn)
NLRI.register_nlri(MPLSVPN,AFI.ipv6,SAFI.mpls_vpn)

NLRI.register_nlri(VPLS,AFI.l2vpn,SAFI.vpls)
NLRI.register_nlri(EVPN,AFI.l2vpn,SAFI.evpn)

NLRI.register_nlri(Flow,AFI.ipv4,SAFI.flow_ip)
NLRI.register_nlri(Flow,AFI.ipv6,SAFI.flow_ip)
NLRI.register_nlri(Flow,AFI.ipv4,SAFI.flow_vpn)
NLRI.register_nlri(Flow,AFI.ipv6,SAFI.flow_vpn)

NLRI.register_nlri(RouteTargetConstraint,AFI.ipv4,SAFI.rtc)<commit_msg>register RTC class in NLRI<commit_after># encoding: utf-8
"""
nlri/__init__.py

Created by <NAME> on 2013-08-07.
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.update.nlri.prefix import Prefix
from exabgp.bgp.message.update.nlri.nlri import NLRI
from exabgp.bgp.message.update.nlri.mpls import MPLS
from exabgp.bgp.message.update.nlri.mpls import MPLSVPN
from exabgp.bgp.message.update.nlri.vpls import VPLS
from exabgp.bgp.message.update.nlri.flow import Flow
from exabgp.bgp.message.update.nlri.evpn import EVPN
from exabgp.bgp.message.update.nlri.rtc import RouteTargetConstraint


NLRI.register_nlri(Prefix,AFI.ipv4,SAFI.unicast)
NLRI.register_nlri(Prefix,AFI.ipv6,SAFI.unicast)
NLRI.register_nlri(Prefix,AFI.ipv4,SAFI.multicast)
NLRI.register_nlri(Prefix,AFI.ipv6,SAFI.multicast)

NLRI.register_nlri(MPLS,AFI.ipv4,SAFI.nlri_mpls)
NLRI.register_nlri(MPLS,AFI.ipv6,SAFI.nlri_mpls)
NLRI.register_nlri(MPLSVPN,AFI.ipv4,SAFI.mpls_vpn)
NLRI.register_nlri(MPLSVPN,AFI.ipv6,SAFI.mpls_vpn)

NLRI.register_nlri(VPLS,AFI.l2vpn,SAFI.vpls)
NLRI.register_nlri(EVPN,AFI.l2vpn,SAFI.evpn)

NLRI.register_nlri(Flow,AFI.ipv4,SAFI.flow_ip)
NLRI.register_nlri(Flow,AFI.ipv6,SAFI.flow_ip)
NLRI.register_nlri(Flow,AFI.ipv4,SAFI.flow_vpn)
NLRI.register_nlri(Flow,AFI.ipv6,SAFI.flow_vpn)

NLRI.register_nlri(RouteTargetConstraint,AFI.ipv4,SAFI.rtc)

{'fraction_non_alphanumeric': 0.11993067590987869, 'fraction_numerical': 0.02218370883882149, 'mean_word_length': 6.906849315068493, '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': '969682', 'n_tokens_mistral': 1327, 'n_tokens_neox': 1309, 'n_words': 147}