<commit_before>/* 
 * Copyright (c) 2007-2008, Hazel Ltd. All Rights Reserved.
 * 
 * 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.
 *
 */

package com.hazelcast.nio;

import com.hazelcast.config.Config;
import com.hazelcast.impl.ClusterManager;
import com.hazelcast.impl.Node;

import java.io.IOException;
import java.net.InetSocketAddress;
import java.nio.channels.SelectionKey;
import java.nio.channels.SocketChannel;
import java.util.HashSet;
import java.util.Set;
import java.util.logging.Level;
import java.util.logging.Logger;

public class OutSelector extends SelectorBase {

    protected static Logger logger = Logger.getLogger(OutSelector.class.getName());

    private static final OutSelector instance = new OutSelector();

    private final Set<Integer> boundPorts = new HashSet<Integer>();

    private OutSelector() {
        super();
        super.waitTime = 1;
    }

    public static OutSelector get() {
        return instance;
    }

    public void connect(final Address address) {
        if (DEBUG)
            logger.log(Level.INFO, "connect to " + address);<commit_msg>Code cleanup<commit_after>/* 
 * Copyright (c) 2007-2008, Hazel Ltd. All Rights Reserved.
 * 
 * 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.
 *
 */

package com.hazelcast.nio;

import java.io.IOException;
import java.net.InetSocketAddress;
import java.nio.channels.SelectionKey;
import java.nio.channels.SocketChannel;
import java.util.HashSet;
import java.util.Set;
import java.util.logging.Level;
import java.util.logging.Logger;

import com.hazelcast.config.Config;
import com.hazelcast.impl.Node;

public class OutSelector extends SelectorBase {

    protected static Logger logger = Logger.getLogger(OutSelector.class.getName());

    private static final OutSelector instance = new OutSelector();

    private final Set<Integer> boundPorts = new HashSet<Integer>();

    private OutSelector() {
        super();
        super.waitTime = 1;
    }

    public static OutSelector get() {
        return instance;
    }

    public void connect(final Address address) {
        if (DEBUG)
            logger.log(Level.INFO, "connect to " + address);
{'fraction_non_alphanumeric': 0.09053497942386832, 'fraction_numerical': 0.00823045267489712, 'mean_word_length': 3.6402349486049927, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 7, 'https://': 0, 'lorem ipsum': 0, 'www.': 2, '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': '4611531', 'n_tokens_mistral': 884, 'n_tokens_neox': 843, 'n_words': 310}