<commit_before>package peergos.user;


import org.ibex.nestedvm.util.Seekable;
import peergos.util.ByteArrayWrapper;

import java.util.HashMap;
import java.util.Map;
import java.util.concurrent.*;

public class MemoryDHTUserAPI extends DHTUserAPI
{
    class DummyFuture<V> implements Future<V> {
        private final V value;
        public DummyFuture(V value){this.value = value;}
        public boolean cancel(boolean b){return false;}
        public boolean isCancelled(){return false;}
        public boolean isDone(){return true;}
        public V get(){return value;}
        public V get(long l, java.util.concurrent.TimeUnit timeUnit){return value;}
    }

    private final Map<ByteArrayWrapper, byte[]> chunks = new HashMap<ByteArrayWrapper, byte[]>();

    public  Future<Boolean> put(byte[] key, byte[] value, final String user, final byte[] sharingKey, final byte[] mapKey, final byte[] proof)
    {
        ByteArrayWrapper wrapper = new ByteArrayWrapper(key);

        chunks.put(new ByteArrayWrapper(mapKey), value);
        return new DummyFuture<Boolean>(true);
    }

    public  Future<Boolean> contains(byte[] key)
    {
        boolean contains = chunks.containsKey(new ByteArrayWrapper(key));
        return new DummyFuture<Boolean>(contains);
    }

    public  Future<byte[]> get(byte[] key){
        ByteArrayWrapper keyWrapper = new ByteArrayWrapper(key);
        return new DummyFuture<byte[]>(chunks.get(keyWrapper));
    }

    public  void shutdown(){}
}<commit_msg>Removed spurious declaration.<commit_after>package peergos.user;


import org.ibex.nestedvm.util.Seekable;
import peergos.util.ByteArrayWrapper;

import java.util.HashMap;
import java.util.Map;
import java.util.concurrent.*;

public class MemoryDHTUserAPI extends DHTUserAPI
{
    class DummyFuture<V> implements Future<V> {
        private final V value;
        public DummyFuture(V value){this.value = value;}
        public boolean cancel(boolean b){return false;}
        public boolean isCancelled(){return false;}
        public boolean isDone(){return true;}
        public V get(){return value;}
        public V get(long l, java.util.concurrent.TimeUnit timeUnit){return value;}
    }

    private final Map<ByteArrayWrapper, byte[]> chunks = new HashMap<ByteArrayWrapper, byte[]>();

    public  Future<Boolean> put(byte[] key, byte[] value, final String user, final byte[] sharingKey, final byte[] mapKey, final byte[] proof)
    {
        chunks.put(new ByteArrayWrapper(mapKey), value);
        return new DummyFuture<Boolean>(true);
    }

    public  Future<Boolean> contains(byte[] key)
    {
        boolean contains = chunks.containsKey(new ByteArrayWrapper(key));
        return new DummyFuture<Boolean>(contains);
    }

    public  Future<byte[]> get(byte[] key){
        return new DummyFuture<byte[]>(chunks.get(new ByteArrayWrapper(key)));
    }

    public  void shutdown(){}
}
{'fraction_non_alphanumeric': 0.11401997933172581, 'fraction_numerical': 0.0, 'mean_word_length': 3.6688102893890675, 'pattern_counts': {'":': 0, '<': 23, '<?xml version=': 0, '>': 23, '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': '345957', 'n_tokens_mistral': 825, 'n_tokens_neox': 811, 'n_words': 223}