<commit_before> package primes.bramble;

import java.io.Serializable;
import java.util.ArrayList;

import primes.PrimeGenerator;
import bramble.node.slave.ISlaveNodeRunner;
import bramble.node.slave.SlaveNode;

/**
 * This is an example of how a SlaveNode can be run.
 * 
 * This class is responsible for passing a job from the 
 * API to a class that will accept a job.
 * 
 * @author Tom
 *
 */
public class SlaveNodeRunner implements ISlaveNodeRunner{
	
	private static String IPADDR;
	
	@SuppressWarnings("unused")
	public static void main(String[] args){	
		
		if(args.length != 1){
			System.out.println("Didn't find an IP on the command line, exiting");
			System.exit(1);
		} else {
			IPADDR = args[0];
			System.out.println("Slave node initiated, my IP is " + IPADDR);
		}
		
		new SlaveNodeRunner();
	}
	
	public SlaveNodeRunner(){
		(new SlaveNode<>(IPADDR, this)).listenForever();
	}

	@Override
	public void runJob(int jobID, ArrayList<Serializable> initializationData) {	
		//System.out.print("[" + jobID + "] ");
		PrimeGenerator primeGenerator = new PrimeGenerator(IPADDR, jobID, initializationData);
		primeGenerator.run();
	}

}
<commit_msg>Refactor static variables out of slave node runner<commit_after> package primes.bramble;

import java.io.Serializable;
import java.util.ArrayList;

import primes.PrimeGenerator;
import bramble.node.slave.ISlaveNodeRunner;
import bramble.node.slave.SlaveNode;

/**
 * This is an example of how a SlaveNode can be run.
 * 
 * This class is responsible for passing a job from the 
 * API to a class that will accept a job.
 * 
 * @author Tom
 *
 */
public class SlaveNodeRunner implements ISlaveNodeRunner{
	
	private final String ipAddress;
	
	public static void main(String[] args){
		
		if(args.length != 1){
			System.out.println("Didn't find an IP on the command line, exiting");
			return;
		}
		
		String ipAddress = args[0];
		System.out.println("Slave node initiated, my IP is " + ipAddress);
		(new SlaveNodeRunner(ipAddress)).initialize();
	}
	
	public SlaveNodeRunner(String ipAddress){
		this.ipAddress = ipAddress;
	}
	
	public void initialize(){
		(new SlaveNode<>(this.ipAddress, this)).listenForever();
	}

	@Override
	public void runJob(int jobID, ArrayList<Serializable> initializationData) {	
		//System.out.print("[" + jobID + "] ");
		PrimeGenerator primeGenerator = new PrimeGenerator(this.ipAddress, jobID, initializationData);
		primeGenerator.run();
	}

}

{'fraction_non_alphanumeric': 0.11316113161131611, 'fraction_numerical': 0.002050020500205002, 'mean_word_length': 4.213675213675214, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 7, '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': '5517801', 'n_tokens_mistral': 825, 'n_tokens_neox': 743, 'n_words': 222}