<commit_before>package org.eclipse.scanning.api.event.queues.beans;

import org.eclipse.scanning.api.event.IdBean;
import org.eclipse.scanning.api.event.status.Status;
import org.eclipse.scanning.api.event.status.StatusBean;

/**
 * Base class for all atoms/beans which will be handled by the 
 * {@link IQueueService}.
 * 
 * @author <NAME>
 *
 */
public abstract class Queueable extends StatusBean implements IQueueable {
	
	protected long runTime;
	protected String beamline;

	protected Queueable() {
		super();
		setStatus(Status.NONE);
		setPreviousStatus(Status.NONE);
	}
	
	@Override
	public String getBeamline() {
		return beamline;
	}
	
	@Override
	public void setBeamline(String beamline) {
		this.beamline = beamline;
	}

	@Override
	public long getRunTime() {
		return runTime;
	}

	@Override
	public void setRunTime(long runTime) {
		this.runTime = runTime;
	}

	public void merge(Queueable with) {
		super.merge(with);
		this.runTime = with.runTime;
		this.beamline = with.beamline;
	}

	@Override
	public int hashCode() {
		final int prime = 31;
		int result = super.hashCode();
		result = prime * result + (int) (runTime ^ (runTime >>> 32));
		return result;
	}

	@Override
	public boolean equals(Object obj) {
		if (this == obj)
			return true;
		if (!super.equals(obj))
			return false;
		if (getClass() != obj.getClass())
			return false;
		Queueable other = (Queueable) obj;
		if (runTime != other.runTime)
			return false;
		return true;
	}
	
	@Override
	public String toString() {
		String clazzName = this.getClass().getSimpleName();
		return clazzName + "[previousStatus=" + previousStatus + ", status="
				+ status + ", name=" + name + ", message=" + message
				+ ", percentComplete=" + percentComplete + ", userName="
				+ userName + ", hostName=" + hostName + ", submissionTime=" 
				+ submissionTime + ", properties=" + getProperties()
		        + ", id=" + getUniqueId() + "]";
	}

}
<commit_msg>Adds serialVersion for serialize (not sure why...).<commit_after>package org.eclipse.scanning.api.event.queues.beans;

import org.eclipse.scanning.api.event.queues.IQueueService;
import org.eclipse.scanning.api.event.status.Status;
import org.eclipse.scanning.api.event.status.StatusBean;

/**
 * Base class for all atoms/beans which will be handled by the 
 * {@link IQueueService}.
 * 
 * @author <NAME>
 *
 */
public abstract class Queueable extends StatusBean implements IQueueable {
	
	private static final long serialVersionUID = 5067469791394115873L;
	
	protected long runTime;
	protected String beamline;

	protected Queueable() {
		super();
		setStatus(Status.NONE);
		setPreviousStatus(Status.NONE);
	}
	
	@Override
	public String getBeamline() {
		return beamline;
	}
	
	@Override
	public void setBeamline(String beamline) {
		this.beamline = beamline;
	}

	@Override
	public long getRunTime() {
		return runTime;
	}

	@Override
	public void setRunTime(long runTime) {
		this.runTime = runTime;
	}

	public void merge(Queueable with) {
		super.merge(with);
		this.runTime = with.runTime;
		this.beamline = with.beamline;
	}

	@Override
	public int hashCode() {
		final int prime = 31;
		int result = super.hashCode();
		result = prime * result + (int) (runTime ^ (runTime >>> 32));
		return result;
	}

	@Override
	public boolean equals(Object obj) {
		if (this == obj)
			return true;
		if (!super.equals(obj))
			return false;
		if (getClass() != obj.getClass())
			return false;
		Queueable other = (Queueable) obj;
		if (runTime != other.runTime)
			return false;
		return true;
	}
	
	@Override
	public String toString() {
		String clazzName = this.getClass().getSimpleName();
		return clazzName + "[previousStatus=" + previousStatus + ", status="
				+ status + ", name=" + name + ", message=" + message
				+ ", percentComplete=" + percentComplete + ", userName="
				+ userName + ", hostName=" + hostName + ", submissionTime=" 
				+ submissionTime + ", properties=" + getProperties()
		        + ", id=" + getUniqueId() + "]";
	}

}

{'fraction_non_alphanumeric': 0.13184329482672025, 'fraction_numerical': 0.006780512305374184, 'mean_word_length': 3.764354066985646, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 11, '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': '987115', 'n_tokens_mistral': 1413, 'n_tokens_neox': 1272, 'n_words': 324}