<commit_before>// Copyright (c) 2006  <NAME> <<EMAIL>>

package net.spy.memcached.ops;

import java.nio.ByteBuffer;
import java.util.Collection;
import java.util.Collections;

/**
 * Operation for retrieving data.
 */
public class GetOperation extends Operation {

	private Collection<String> keys=null;
	private String currentKey=null;
	private int currentFlags=0;
	private byte[] data=null;
	private int readOffset=0;

	private Callback cb=null;

	/**
	 * Construct an empty get operation.  Used for subclassing.
	 */
	protected GetOperation() {
		super();
	}

	public GetOperation(String key, Callback c) {
		this(Collections.singleton(key), c);
	}

	public GetOperation(Collection<String> k, Callback c) {
		this();
		keys=k;
		cb=c;
	}

	/**<commit_msg>	Ensure the keys fed into a get won't be modified after they're added.<commit_after>// Copyright (c) 2006  <NAME> <<EMAIL>>

package net.spy.memcached.ops;

import java.nio.ByteBuffer;
import java.util.Collection;
import java.util.Collections;
import java.util.HashSet;

/**
 * Operation for retrieving data.
 */
public class GetOperation extends Operation {

	private Collection<String> keys=null;
	private String currentKey=null;
	private int currentFlags=0;
	private byte[] data=null;
	private int readOffset=0;

	private Callback cb=null;

	/**
	 * Construct an empty get operation.  Used for subclassing.
	 */
	protected GetOperation() {
		super();
	}

	public GetOperation(String key, Callback c) {
		super();
		keys=Collections.singleton(key);
		cb=c;
	}

	public GetOperation(Collection<String> k, Callback c) {
		this();
		keys=new HashSet<String>(k);
		cb=c;
	}

	/**
{'fraction_non_alphanumeric': 0.12293577981651377, 'fraction_numerical': 0.007339449541284404, 'mean_word_length': 4.328990228013029, 'pattern_counts': {'":': 0, '<': 14, '<?xml version=': 0, '>': 14, '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': '6533746', 'n_tokens_mistral': 560, 'n_tokens_neox': 518, 'n_words': 151}