<commit_before>package org.flexiblepower.messaging;

import java.util.concurrent.TimeoutException;

import javax.measure.Measurable;
import javax.measure.quantity.Duration;

public interface ConnectionFuture {

    void cancel();

    boolean isCancelled();

    boolean isConnected();

    void awaitConnection();

    void awaitConnection(Measurable<Duration> timetout) throws TimeoutException;

}<commit_msg>Added necessary exceptions to interface<commit_after>package org.flexiblepower.messaging;

import java.util.concurrent.TimeoutException;

import javax.measure.Measurable;
import javax.measure.quantity.Duration;

public interface ConnectionFuture {

    void cancel();

    boolean isCancelled();

    boolean isConnected();

    void awaitConnection() throws InterruptedException;

    void awaitConnection(Measurable<Duration> timeout) throws TimeoutException, InterruptedException;

}
{'fraction_non_alphanumeric': 0.08138238573021182, 'fraction_numerical': 0.0, 'mean_word_length': 5.602941176470588, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, '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': '140463', 'n_tokens_mistral': 242, 'n_tokens_neox': 226, 'n_words': 55}