<commit_before># Copyright 2015 Internap.
#
# 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.

import threading

from fake_switches.brocade.brocade_core import BrocadeSwitchCore
from fake_switches.cisco.cisco_core import CiscoSwitchCore
from fake_switches.dell.dell_core import DellSwitchCore
from fake_switches.dell10g.dell_core import Dell10GSwitchCore
from fake_switches.juniper.juniper_core import JuniperSwitchCore
from fake_switches.juniper.juniper_qfx_copper_core import JuniperQfxCopperSwitchCore
from fake_switches.ssh_service import SwitchSshService
from fake_switches.switch_configuration import SwitchConfiguration, Port
from fake_switches.telnet_service import SwitchTelnetService

COMMIT_DELAY = 1

cisco_switch_ip = "127.0.0.1"
cisco_switch_telnet_port = 11001
cisco_switch_ssh_port = 11002
cisco_switch_ssh_with_commit_delay_port = 12002
cisco_privileged_password = "<PASSWORD>"
cisco_auto_enabled_switch_telnet_port = 11004
cisco_auto_enabled_switch_ssh_port = 11005
brocade_switch_ip = "127.0.0.1"
brocade_switch_ssh_port = 11006
brocade_privileged_password = '<PASSWORD>'
brocade_switch_with_commit_delay_ssh_port = 12006
brocade_privileged_password = '<PASSWORD>'
juniper_switch_ip = "127.0.0.1"
juniper_switch_netconf_port = 11007
juniper_switch_netconf_with_commit_delay_port = 12007
juniper_qfx_copper_switch_ip = "127.0.0.1"
juniper_qfx_copper_switch_netconf_port = 11008
dell_switch_ip = "127.0.0.1"
dell_switch_telnet_port = 11010
dell_switch_ssh_port = 11009
dell_switch_with_commit_delay_ssh_port = 12009
dell_privileged_password = '<PASSWORD>'
dell10g_switch_ip = "127.0.0.1"
dell10g_switch_telnet_port = 11011
dell10g_switch_ssh_port = 11012
dell10g_switch_with_commit_delay_ssh_port = 12012
dell10g_privileged_password = '<PASSWORD>'


class ThreadedReactor(threading.Thread):
    _threaded_reactor = None

    @classmethod
    def start_reactor(cls):
        cls._threaded_reactor = ThreadedReactor()
<commit_msg>Remove duplicate declaration of brocade password<commit_after># Copyright 2015 Internap.
#
# 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.

import threading

from fake_switches.brocade.brocade_core import BrocadeSwitchCore
from fake_switches.cisco.cisco_core import CiscoSwitchCore
from fake_switches.dell.dell_core import DellSwitchCore
from fake_switches.dell10g.dell_core import Dell10GSwitchCore
from fake_switches.juniper.juniper_core import JuniperSwitchCore
from fake_switches.juniper.juniper_qfx_copper_core import JuniperQfxCopperSwitchCore
from fake_switches.ssh_service import SwitchSshService
from fake_switches.switch_configuration import SwitchConfiguration, Port
from fake_switches.telnet_service import SwitchTelnetService

COMMIT_DELAY = 1

cisco_switch_ip = "127.0.0.1"
cisco_switch_telnet_port = 11001
cisco_switch_ssh_port = 11002
cisco_switch_ssh_with_commit_delay_port = 12002
cisco_privileged_password = "<PASSWORD>"
cisco_auto_enabled_switch_telnet_port = 11004
cisco_auto_enabled_switch_ssh_port = 11005
brocade_switch_ip = "127.0.0.1"
brocade_switch_ssh_port = 11006
brocade_privileged_password = '<PASSWORD>'
brocade_switch_with_commit_delay_ssh_port = 12006
juniper_switch_ip = "127.0.0.1"
juniper_switch_netconf_port = 11007
juniper_switch_netconf_with_commit_delay_port = 12007
juniper_qfx_copper_switch_ip = "127.0.0.1"
juniper_qfx_copper_switch_netconf_port = 11008
dell_switch_ip = "127.0.0.1"
dell_switch_telnet_port = 11010
dell_switch_ssh_port = 11009
dell_switch_with_commit_delay_ssh_port = 12009
dell_privileged_password = '<PASSWORD>'
dell10g_switch_ip = "127.0.0.1"
dell10g_switch_telnet_port = 11011
dell10g_switch_ssh_port = 11012
dell10g_switch_with_commit_delay_ssh_port = 12012
dell10g_privileged_password = '<PASSWORD>'


class ThreadedReactor(threading.Thread):
    _threaded_reactor = None

    @classmethod
    def start_reactor(cls):
        cls._threaded_reactor = ThreadedReactor()

{'fraction_non_alphanumeric': 0.05975359342915811, 'fraction_numerical': 0.05708418891170431, 'mean_word_length': 6.894651539708266, 'pattern_counts': {'":': 0, '<': 12, '<?xml version=': 0, '>': 12, 'https://': 0, 'lorem ipsum': 0, 'www.': 2, 'xml': 0}, 'pii_count': 12, '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': '4772149', 'n_tokens_mistral': 1883, 'n_tokens_neox': 1662, 'n_words': 375}