<commit_before>package main.java.com.io;

/**
 * Simulated Process Job.
 * @author <NAME>
 */
public class Job {
    private int id;
    private String name;
    private int waitTime;
    private boolean completed;

    public Job(int id, String name, int waitTime)
    {
        this.id = id;
        this.name = name;
        this.waitTime = waitTime;
        this.completed = false;
    }

    public int getId() {
        return id;
    }

    public String getName() {
        return name;
    }

    public int getWaitTime() {
        return waitTime;
    }
    
    public boolean isCompleted() {
        return completed;
    }
        
    public String toString() {
        return "Job "+this.id+": name="+this.name+" waitTime="+this.waitTime+" completed="+this.completed;
    }
}<commit_msg>Added Map for work done for simulated a simulated job.<commit_after>package main.java.com.io;

import java.util.HashMap;
import java.util.Map;



/**
 * Simulated Process Job.
 * @author <NAME>
 */
public class Job {
    private int waitTime;
    private int ticks;
    private boolean completed;
    
    /** 
     * work progress used for gantt chart, 
     * 0 = Accepted at counter time.
     * 1 or more represents the time frame ie. 1 = from time 0 to 1.
     */
    private Map<Long, Integer> work = new HashMap();

    public Job(int waitTime)
    {
        this.waitTime = waitTime;
        this.completed = false;
        this.ticks = 0;
        work.put(0L,0);             
    }
 
    public boolean isCompleted() {
        return completed;
    }

    public Map<Long, Integer> getWork() {
        return work;
    }

    /**
     * Increments Simulated Process Clock Work Progress.
     * @param counter 
     */
    public void doTick(long counter)
    {
        if(++ticks == waitTime)
            completed = true;
        
        work.put(counter,ticks);
    }
        
    public String toString() {
        return "[Job: waitTime="+this.waitTime+" completed="+this.completed+" progress="+work.toString()+"]";
    }
}
{'fraction_non_alphanumeric': 0.1118195193722413, 'fraction_numerical': 0.00392349190779794, 'mean_word_length': 2.026706231454006, 'pattern_counts': {'":': 1, '<': 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': '3602123', 'n_tokens_mistral': 618, 'n_tokens_neox': 597, 'n_words': 175}