<commit_before>package com.mercateo.rest.hateoas.client;

import java.util.Optional;

import lombok.NonNull;
import lombok.Value;

public interface SSEObserver<T> {
	@Value
	public static class ParseError {
		String eventId;

		@NonNull
		Exception cause;

		byte[] body;
	}

	public void onEvent(Response<T> response);

	public void onSignal(String signal);

	public void onParseError(ParseError e);

	/**
	 * this is called when some errors connection error occurred. Due to
	 * https://github.com/jersey/jersey/issues/3537 it is not possible to
	 * distinguish between errors at this moment
	 *
	 */
	public void onConnectionError();

	public default Optional<String> lastKnownEventId() {
		return Optional.empty();
	}

}<commit_msg>fixed typo<commit_after>package com.mercateo.rest.hateoas.client;

import java.util.Optional;

import lombok.NonNull;
import lombok.Value;

public interface SSEObserver<T> {
	@Value
	public static class ParseError {
		String eventId;

		@NonNull
		Exception cause;

		byte[] body;
	}

	public void onEvent(Response<T> response);

	public void onSignal(String signal);

	public void onParseError(ParseError e);

	/**
	 * this is called when some connection error occurred. Due to
	 * https://github.com/jersey/jersey/issues/3537 it is not possible to
	 * distinguish between errors at this moment
	 *
	 */
	public void onConnectionError();

	public default Optional<String> lastKnownEventId() {
		return Optional.empty();
	}

}
{'fraction_non_alphanumeric': 0.09575923392612859, 'fraction_numerical': 0.005471956224350205, 'mean_word_length': 4.281588447653429, 'pattern_counts': {'":': 0, '<': 9, '<?xml version=': 0, '>': 9, 'https://': 2, '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': '5043467', 'n_tokens_mistral': 482, 'n_tokens_neox': 444, 'n_words': 134}