<commit_before>#
# Copyright (c) 2013 Juniper Networks, Inc. All rights reserved.
#

"""
Service monitor to instantiate/scale/monitor services like firewall, LB, ...
"""

import gevent
from cfgm_common.discovery import DiscoveryService
from gevent import monkey
monkey.patch_all()
import sys
import requests
import ConfigParser
import cgitb
import logging
import logging.handlers
import argparse
import socket
import time
import datetime

import re
import os

import pycassa
from pycassa.system_manager import *

from cfgm_common.imid import *
from cfgm_common import vnc_cpu_info

from vnc_api.vnc_api import *

from pysandesh.sandesh_base import Sandesh
from pysandesh.gen_py.sandesh.ttypes import SandeshLevel
from cfgm_common.uve.service_instance.ttypes import *
from cfgm_common.sandesh.vns.ttypes import Module
from cfgm_common.sandesh.vns.constants import ModuleNames
from sandesh.svc_mon_introspect import ttypes as sandesh

# nova imports
from novaclient import client as nc
from novaclient import exceptions as nc_exc

import discovery.client as client

_SVC_VN_MGMT = "svc-vn-mgmt"
_SVC_VN_LEFT = "svc-vn-left"
_SVC_VN_RIGHT = "svc-vn-right"
_MGMT_STR = "management"
_LEFT_STR = "left"
_RIGHT_STR = "right"
_OTHER_STR = "other"

_SVC_VNS = {_MGMT_STR:  [_SVC_VN_MGMT,  '250.250.1.0/24'],<commit_msg>fix breakage from prev commit<commit_after>#
# Copyright (c) 2013 Juniper Networks, Inc. All rights reserved.
#

"""
Service monitor to instantiate/scale/monitor services like firewall, LB, ...
"""

import gevent
from cfgm_common.discovery import DiscoveryService
from gevent import monkey
monkey.patch_all()
import sys
import requests
import ConfigParser
import cgitb
import logging
import logging.handlers
import argparse
import socket
import time
import datetime

import re
import os

import pycassa
from pycassa.system_manager import *

from cfgm_common.imid import *
from cfgm_common import vnc_cpu_info

from vnc_api.vnc_api import *

from pysandesh.sandesh_base import Sandesh
from pysandesh.gen_py.sandesh.ttypes import SandeshLevel
from cfgm_common.uve.service_instance.ttypes import *
from sandesh_common.vns.ttypes import Module
from sandesh_common.vns.constants import ModuleNames
from sandesh.svc_mon_introspect import ttypes as sandesh

# nova imports
from novaclient import client as nc
from novaclient import exceptions as nc_exc

import discovery.client as client

_SVC_VN_MGMT = "svc-vn-mgmt"
_SVC_VN_LEFT = "svc-vn-left"
_SVC_VN_RIGHT = "svc-vn-right"
_MGMT_STR = "management"
_LEFT_STR = "left"
_RIGHT_STR = "right"
_OTHER_STR = "other"

_SVC_VNS = {_MGMT_STR:  [_SVC_VN_MGMT,  '250.250.1.0/24'],
{'fraction_non_alphanumeric': 0.06930693069306931, 'fraction_numerical': 0.010662604722010662, 'mean_word_length': 5.61712846347607, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 2, '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': '656006', 'n_tokens_mistral': 960, 'n_tokens_neox': 909, 'n_words': 261}