<commit_before># Copyright 2015 <NAME> <<EMAIL>>
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at:
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
"""
Unifying package for ESCAPEv2 functions.

'cfg' defines the default configuration settings such as the concrete
RequestHandler and strategy classes, the initial Adapter classes, etc.

`CONFIG` contains the ESCAPEv2 dependent configuration as an
:any:`ESCAPEConfig`.
"""
__project__ = "ESCAPEv2"
__authors__ = "<NAME>, <NAME>, <NAME>"
__copyright__ = "Copyright 2015, under Apache License Version 2.0"
__credits__ = "<NAME>, <NAME>, <NAME>, <NAME>, " \
              "<NAME>, <NAME>, <NAME>, and Sahel " \
              "Sahhaf"
__license__ = "Apache License, Version 2.0"
__version__ = "2.0.0"
__maintainer__ = "<NAME>"
__email__ = "<EMAIL>"
__status__ = "prototype"

# Default configuration object which contains static and running
# configuration for Layer APIs, DomainManagers, Adapters and other components
cfg = {"service": {  # Service Adaptation Sublayer
                     "MAPPER": {"module": "escape.service.sas_mapping",
                                "class": "ServiceGraphMapper",
                                "mapping-enabled": False},
                     "STRATEGY": {"module": "escape.service.sas_mapping",
                                  "class": "DefaultServiceMappingStrategy",
                                  "THREADED": False},
                     "REST-API": {"module": "escape.service.sas_API",
                                  "class": "ServiceRequestHandler",
                                  "address": "0.0.0.0", "port": 8008,
                                  "prefix": "escape"}},
       "orchestration": {  # Resource Orchestration Sublayer
                           "MAPPER": {"module": "escape.orchest.ros_mapping",
                                      "class": "ResourceOrchestrationMapper",
                                      "mapping-enabled": True},
                           "STRATEGY": {"module": "escape.orchest.ros_mapping",
                                        "class": "ESCAPEMappingStrategy",
                                        "THREADED": False},
                           "AGENT": {"module": "escape.orchest.ros_API",
                                     "class": "ROSAgentRequestHandler",
                                     "prefix": "escape",
                                     "address": "0.0.0.0",
                                     "port": 8888},
                           "Cf-Or": {"module": "escape.orchest.ros_API",
                                     "class": "CfOrRequestHandler",
                                     "prefix": "cfor",
                                     "address": "0.0.0.0",
                                     "port": 8889}},
       "adaptation": {  # Controller Adaptation Sublayer
                        # Default managers need to start at init
                        "DEFAULTS": ["REMOTE-ESCAPE","SDN","OPENSTACK","UN"],
                        # "DEFAULTS": [],
                        # Specific Domain Adapters for DomainManagers
                        "INTERNAL-POX": {"module": "escape.adapt.adapters",
                                         "class": "InternalPOXAdapter",
                                         "address": "127.0.0.1",
                                         "port": 6653},
                        "SDN-POX": {"module": "escape.adapt.adapters",
                                    "class": "SDNDomainPOXAdapter",
                                    "address": "192.168.1.101", "port": 6633},
                        "MININET": {"module": "escape.adapt.adapters",
                                    "class": "InternalMininetAdapter"},
                        "VNFStarter": {"module": "escape.adapt.adapters",
                                       "class": "VNFStarterAdapter",
                                       "username": "mininet",
                                       "password": "<PASSWORD>",
                                       "server": "127.0.0.1", "port": 830},
                        "ESCAPE-REST": {"module": "escape.adapt.adapters",
                                        "class": "RemoteESCAPEv2RESTAdapter",
                                        # "url": "http://localhost:8083"},
                                        "url": "http://192.168.1.111:8888/escape/"},
                        "OpenStack-REST": {"module": "escape.adapt.adapters",
                                           "class": "OpenStackRESTAdapter",
                                           # "url": "http://localhost:8081"},
                                           "url": "http://192.168.1.103:8888/virtualizer/"},
                        "UN-REST": {"module": "escape.adapt.adapters",
                                    "class": "UniversalNodeRESTAdapter",
                                    # "url": "http://localhost:8082"},
                                    "url": "http://192.168.1.104:8080"},
                        # Specific Domain Managers
                        "INTERNAL": {"module": "escape.adapt.managers",
                                     "class": "InternalDomainManager",
                                     "poll": False},
                        "REMOTE-ESCAPE": {"module": "escape.adapt.managers",
                                          "class": "RemoteESCAPEDomainManager",
                                          "poll": False},
                        "OPENSTACK": {"module": "escape.adapt.managers",<commit_msg>Reset config to local testing<commit_after># Copyright 2015 <NAME> <<EMAIL>>
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at:
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
"""
Unifying package for ESCAPEv2 functions.

'cfg' defines the default configuration settings such as the concrete
RequestHandler and strategy classes, the initial Adapter classes, etc.

`CONFIG` contains the ESCAPEv2 dependent configuration as an
:any:`ESCAPEConfig`.
"""
__project__ = "ESCAPEv2"
__authors__ = "<NAME>, <NAME>, <NAME>"
__copyright__ = "Copyright 2015, under Apache License Version 2.0"
__credits__ = "<NAME>, <NAME>, <NAME>, <NAME>, " \
              "<NAME>, <NAME>, <NAME>, and Sahel " \
              "Sahhaf"
__license__ = "Apache License, Version 2.0"
__version__ = "2.0.0"
__maintainer__ = "<NAME>"
__email__ = "<EMAIL>"
__status__ = "prototype"

# Default configuration object which contains static and running
# configuration for Layer APIs, DomainManagers, Adapters and other components
cfg = {"service": {  # Service Adaptation Sublayer
                     "MAPPER": {"module": "escape.service.sas_mapping",
                                "class": "ServiceGraphMapper",
                                "mapping-enabled": False},
                     "STRATEGY": {"module": "escape.service.sas_mapping",
                                  "class": "DefaultServiceMappingStrategy",
                                  "THREADED": False},
                     "REST-API": {"module": "escape.service.sas_API",
                                  "class": "ServiceRequestHandler",
                                  "address": "0.0.0.0", "port": 8008,
                                  "prefix": "escape"}},
       "orchestration": {  # Resource Orchestration Sublayer
                           "MAPPER": {"module": "escape.orchest.ros_mapping",
                                      "class": "ResourceOrchestrationMapper",
                                      "mapping-enabled": True},
                           "STRATEGY": {"module": "escape.orchest.ros_mapping",
                                        "class": "ESCAPEMappingStrategy",
                                        "THREADED": False},
                           "AGENT": {"module": "escape.orchest.ros_API",
                                     "class": "ROSAgentRequestHandler",
                                     "prefix": "escape",
                                     "address": "0.0.0.0",
                                     "port": 8888},
                           "Cf-Or": {"module": "escape.orchest.ros_API",
                                     "class": "CfOrRequestHandler",
                                     "prefix": "cfor",
                                     "address": "0.0.0.0",
                                     "port": 8889}},
       "adaptation": {  # Controller Adaptation Sublayer
                        # Default managers need to start at init
                        "DEFAULTS": ["REMOTE-ESCAPE", "SDN", "OPENSTACK", "UN"],
                        # "DEFAULTS": [],
                        # Specific Domain Adapters for DomainManagers
                        "INTERNAL-POX": {"module": "escape.adapt.adapters",
                                         "class": "InternalPOXAdapter",
                                         "address": "127.0.0.1",
                                         "port": 6653},
                        "SDN-POX": {"module": "escape.adapt.adapters",
                                    "class": "SDNDomainPOXAdapter",
                                    # "address": "192.168.1.101", "port": 6633},
                                    "address": "0.0.0.0", "port": 6633},
                        "MININET": {"module": "escape.adapt.adapters",
                                    "class": "InternalMininetAdapter"},
                        "VNFStarter": {"module": "escape.adapt.adapters",
                                       "class": "VNFStarterAdapter",
                                       "username": "mininet",
                                       "password": "<PASSWORD>",
                                       "server": "127.0.0.1", "port": 830},
                        "ESCAPE-REST": {"module": "escape.adapt.adapters",
                                        "class": "RemoteESCAPEv2RESTAdapter",
                                        "url": "http://localhost:8083"},
                        # "url": "http://192.168.1.111:8888/escape/"},
                        "OpenStack-REST": {"module": "escape.adapt.adapters",
                                           "class": "OpenStackRESTAdapter",
                                           "url": "http://localhost:8081"},
                        # "url": "http://192.168.1.103:8888/virtualizer/"},
                        "UN-REST": {"module": "escape.adapt.adapters",
                                    "class": "UniversalNodeRESTAdapter",
                                    "url": "http://localhost:8082"},
                        # "url": "http://192.168.1.104:8080"},
                        # Specific Domain Managers
                        "INTERNAL": {"module": "escape.adapt.managers",
                                     "class": "InternalDomainManager",
                                     "poll": False},
                        "REMOTE-ESCAPE": {"module": "escape.adapt.managers",
                                          "class": "RemoteESCAPEDomainManager",
                                          "poll": False},
                        "OPENSTACK": {"module": "escape.adapt.managers",
{'fraction_non_alphanumeric': 0.12218622809203422, 'fraction_numerical': 0.02292549215051084, 'mean_word_length': 1.25933571026459, 'pattern_counts': {'":': 170, '<': 35, '<?xml version=': 0, '>': 35, 'https://': 0, 'lorem ipsum': 0, 'www.': 2, 'xml': 0}, 'pii_count': 19, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 94, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '6929289', 'n_tokens_mistral': 3071, 'n_tokens_neox': 2738, 'n_words': 696}