<commit_before>package readinstruction;

import java.util.UUID;

/**
 * Created by Karol on 2017-04-20.
 */
public class ReadInstructionImpl extends ReadInstruction {
    public ReadInstructionImpl(UUID instructionId, int readAddres, int arrivalTime, boolean hasDeadline) {
        super(instructionId, readAddres, arrivalTime, hasDeadline);
    }
}<commit_msg>Implement read method for ReadInstructionImpl<commit_after>package readinstruction;

import java.util.UUID;

/**
 * Created by Karol on 2017-04-20.
 */
public class ReadInstructionImpl extends ReadInstruction {
    private int waitTime;

    public ReadInstructionImpl(UUID instructionId, int readAddres, int arrivalTime, boolean hasDeadline) {
        super(instructionId, readAddres, arrivalTime, hasDeadline);
    }

    public int read(int actualTime){
        this.waitTime = actualTime - super.getArrivalTime();
        return super.getReadAddres();
    }
}
{'fraction_non_alphanumeric': 0.08441558441558442, 'fraction_numerical': 0.017316017316017316, 'mean_word_length': 4.316091954022989, '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': '7239813', 'n_tokens_mistral': 269, 'n_tokens_neox': 260, 'n_words': 70}