<commit_before>package com.joelj.distributedinvoke;

import org.jetbrains.annotations.NotNull;
import org.jetbrains.annotations.Nullable;

import java.io.Serializable;
import java.util.UUID;

/**
 * Represents an object that has been sent to a remote machine.
 * The Transport has a unique ID that can be used to match up with a response.
 *
 * User: <NAME>
 * Date: 3/2/13
 * Time: 10:45 AM
 */
public class Transport<T> implements Serializable {
	private final String id;
	private final T object;

	@NotNull
	public static <T> Transport<T> wrap(@Nullable T object) {
		String id = UUID.randomUUID().toString();
		return new Transport<T>(id, object);
	}
<commit_msg>response objects need the ability to use their own ID.<commit_after>package com.joelj.distributedinvoke;

import org.jetbrains.annotations.NotNull;
import org.jetbrains.annotations.Nullable;

import java.io.Serializable;
import java.util.UUID;

/**
 * Represents an object that has been sent to a remote machine.
 * The Transport has a unique ID that can be used to match up with a response.
 *
 * User: <NAME>
 * Date: 3/2/13
 * Time: 10:45 AM
 */
public class Transport<T> implements Serializable {
	private final String id;
	private final T object;

	@NotNull
	public static <T> Transport<T> wrap(@Nullable T object) {
		String id = UUID.randomUUID().toString();
		return new Transport<T>(id, object);
	}

	@NotNull
	public static <T> Transport<T> wrapWithId(@Nullable T object, @NotNull String id) {
		return new Transport<T>(id, object);
	}

{'fraction_non_alphanumeric': 0.10508922670191673, 'fraction_numerical': 0.010575016523463317, 'mean_word_length': 4.368794326241135, 'pattern_counts': {'":': 0, '<': 16, '<?xml version=': 0, '>': 16, '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': '6543150', 'n_tokens_mistral': 478, 'n_tokens_neox': 457, 'n_words': 168}