<commit_before>package com.enernoc.rnd.openfire.cluster.session;

import java.io.IOException;
import java.io.ObjectInput;
import java.io.ObjectOutput;
import java.util.ArrayList;
import java.util.Collection;

import org.jivesoftware.openfire.session.IncomingServerSession;
import org.jivesoftware.openfire.session.Session;
import org.jivesoftware.util.cache.ClusterTask;
import org.jivesoftware.util.cache.ExternalizableUtil;

import com.enernoc.rnd.openfire.cluster.session.task.GetIncomingSessionTask;

public class ClusterIncomingSession extends ClusterSession implements
		IncomingServerSession {

	String streamID;
	String localDomain;
	Collection<String> validDomains = new ArrayList<String>();
	
	public ClusterIncomingSession( String streamID, byte[] nodeID ) {
		super( null, nodeID );
		this.streamID = streamID;
	}
	
	@Override
	void doCopy(Session s) {
		IncomingServerSession inS = (IncomingServerSession)s;
		this.localDomain =  inS.getLocalDomain();
		this.validDomains = inS.getValidatedDomains();

	}

	@Override
	void doReadExternal(ExternalizableUtil ext, ObjectInput in)
			throws IOException, ClassNotFoundException {
		this.streamID = ext.readSafeUTF(in);
		this.localDomain = ext.readSafeUTF(in);
		ext.readStrings(in, this.validDomains);
	}

	@Override
	void doWriteExternal(ExternalizableUtil ext, ObjectOutput out)
			throws IOException {
		ext.writeSafeUTF( out, streamID );
		ext.writeSafeUTF( out, localDomain );
		ext.writeStrings( out, validDomains );
	}

	@Override
	ClusterTask getSessionUpdateTask() {
		return new GetIncomingSessionTask( this.streamID );
	}

	@Override
	public String getLocalDomain() {
		return this.localDomain;
	}

	@Override
	public Collection<String> getValidatedDomains() {
		super.checkUpdate();
		return this.validDomains;
	}
}<commit_msg>removed more unnecessary @override annotations.<commit_after>package com.enernoc.rnd.openfire.cluster.session;

import java.io.IOException;
import java.io.ObjectInput;
import java.io.ObjectOutput;
import java.util.ArrayList;
import java.util.Collection;

import org.jivesoftware.openfire.session.IncomingServerSession;
import org.jivesoftware.openfire.session.Session;
import org.jivesoftware.util.cache.ClusterTask;
import org.jivesoftware.util.cache.ExternalizableUtil;

import com.enernoc.rnd.openfire.cluster.session.task.GetIncomingSessionTask;

public class ClusterIncomingSession extends ClusterSession implements
		IncomingServerSession {

	String streamID;
	String localDomain;
	Collection<String> validDomains = new ArrayList<String>();
	
	public ClusterIncomingSession( String streamID, byte[] nodeID ) {
		super( null, nodeID );
		this.streamID = streamID;
	}
	
	@Override
	void doCopy(Session s) {
		IncomingServerSession inS = (IncomingServerSession)s;
		this.localDomain =  inS.getLocalDomain();
		this.validDomains = inS.getValidatedDomains();

	}

	@Override
	void doReadExternal(ExternalizableUtil ext, ObjectInput in)
			throws IOException, ClassNotFoundException {
		this.streamID = ext.readSafeUTF(in);
		this.localDomain = ext.readSafeUTF(in);
		ext.readStrings(in, this.validDomains);
	}

	@Override
	void doWriteExternal(ExternalizableUtil ext, ObjectOutput out)
			throws IOException {
		ext.writeSafeUTF( out, streamID );
		ext.writeSafeUTF( out, localDomain );
		ext.writeStrings( out, validDomains );
	}

	@Override
	ClusterTask getSessionUpdateTask() {
		return new GetIncomingSessionTask( this.streamID );
	}

	public String getLocalDomain() {
		return this.localDomain;
	}

	public Collection<String> getValidatedDomains() {
		super.checkUpdate();
		return this.validDomains;
	}
}
{'fraction_non_alphanumeric': 0.096398891966759, 'fraction_numerical': 0.0, 'mean_word_length': 5.613553113553113, 'pattern_counts': {'":': 0, '<': 9, '<?xml version=': 0, '>': 9, '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': '2896661', 'n_tokens_mistral': 1173, 'n_tokens_neox': 1107, 'n_words': 224}