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

# Standard library import
import argparse
import ConfigParser
import sys

# Application library import
from pysandesh.sandesh_base import Sandesh, SandeshSystem, SandeshConfig
from pysandesh.gen_py.sandesh.ttypes import SandeshLevel
import mesos_manager.mesos_consts as mesos_consts
from sandesh_common.vns.constants import (HttpPortMesosManager,\
                                          DiscoveryServerPort)


def parse_args(args_str=None):
    if not args_str:
        args_str = ' '.join(sys.argv[1:])
    conf_parser = argparse.ArgumentParser(add_help=False)
    conf_parser.add_argument("-c", "--config-file", action='append',
                             help="Specify config file", metavar="FILE")
    args, remaining_argv = conf_parser.parse_known_args(args_str)

    defaults = {
        'mesos_api_server': mesos_consts._WEB_HOST,
        'mesos_api_port': mesos_consts._WEB_PORT,
        'http_server_port': HttpPortMesosManager,<commit_msg>Fix for input args -Fix for last break due to systemless test Partial-Bug: #1645814<commit_after>#
# Copyright (c) 2017 Juniper Networks, Inc. All rights reserved.
#

# Standard library import
import argparse
import ConfigParser
import sys

# Application library import
from pysandesh.sandesh_base import Sandesh, SandeshSystem, SandeshConfig
from pysandesh.gen_py.sandesh.ttypes import SandeshLevel
import mesos_manager.mesos_consts as mesos_consts
from sandesh_common.vns.constants import (HttpPortMesosManager,\
                                          DiscoveryServerPort)


def parse_args(args_str=None):
    if not args_str:
        args_str = sys.argv[1:]
    conf_parser = argparse.ArgumentParser(add_help=False)
    conf_parser.add_argument("-c", "--config-file", action='append',
                             help="Specify config file", metavar="FILE")
    args, remaining_argv = conf_parser.parse_known_args(args_str)

    defaults = {
        'mesos_api_server': mesos_consts._WEB_HOST,
        'mesos_api_port': mesos_consts._WEB_PORT,
        'http_server_port': HttpPortMesosManager,
{'fraction_non_alphanumeric': 0.08465855940130963, 'fraction_numerical': 0.007951356407857811, 'mean_word_length': 3.6099137931034484, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 4, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '1084063', 'n_tokens_mistral': 671, 'n_tokens_neox': 648, 'n_words': 146}