<commit_before>package ibis.smartsockets.hub;

import ibis.smartsockets.direct.DirectSocketAddress;
import ibis.smartsockets.direct.DirectSocketFactory;
import ibis.smartsockets.hub.connections.VirtualConnections;
import ibis.smartsockets.hub.state.HubList;
import ibis.smartsockets.hub.state.StateCounter;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;


abstract class CommunicationThread implements Runnable {

    protected static final int DEFAULT_TIMEOUT = 5000;
       
    protected final String name;
    protected final StateCounter state;         
    
    protected static final Logger hublogger = 
        LoggerFactory.getLogger("ibis.smartsockets.hub"); 
        
    protected final Connections connections;     
    
    protected final HubList knownHubs;
    protected final VirtualConnections virtualConnections;
    protected final DirectSocketFactory factory;    
    
    protected DirectSocketAddress local;
    protected String localAsString;
    protected Thread thread;
    
    private boolean end = false;
    
    protected CommunicationThread(String name, StateCounter state, 
            Connections connections, HubList knownHubs, VirtualConnections vcs, 
            DirectSocketFactory factory) {

        this.name = name;
        this.state = state;
        this.connections = connections;
        this.knownHubs = knownHubs;
        this.virtualConnections = vcs;
        this.factory = factory;        
    }
    <commit_msg>set smartsockets hub timeout to a minute (not 5 seconds)<commit_after>package ibis.smartsockets.hub;

import ibis.smartsockets.direct.DirectSocketAddress;
import ibis.smartsockets.direct.DirectSocketFactory;
import ibis.smartsockets.hub.connections.VirtualConnections;
import ibis.smartsockets.hub.state.HubList;
import ibis.smartsockets.hub.state.StateCounter;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;


abstract class CommunicationThread implements Runnable {

    protected static final int DEFAULT_TIMEOUT = 60000;
       
    protected final String name;
    protected final StateCounter state;         
    
    protected static final Logger hublogger = 
        LoggerFactory.getLogger("ibis.smartsockets.hub"); 
        
    protected final Connections connections;     
    
    protected final HubList knownHubs;
    protected final VirtualConnections virtualConnections;
    protected final DirectSocketFactory factory;    
    
    protected DirectSocketAddress local;
    protected String localAsString;
    protected Thread thread;
    
    private boolean end = false;
    
    protected CommunicationThread(String name, StateCounter state, 
            Connections connections, HubList knownHubs, VirtualConnections vcs, 
            DirectSocketFactory factory) {

        this.name = name;
        this.state = state;
        this.connections = connections;
        this.knownHubs = knownHubs;
        this.virtualConnections = vcs;
        this.factory = factory;        
    }
    
{'fraction_non_alphanumeric': 0.05748663101604278, 'fraction_numerical': 0.004679144385026738, 'mean_word_length': 3.1225895316804406, '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': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '1364733', 'n_tokens_mistral': 788, 'n_tokens_neox': 759, 'n_words': 199}