<commit_before>package org.zeropage;

import java.util.Set;
import java.util.concurrent.ConcurrentHashMap;

public class MemCacheStorage implements CacheStorage {
    private ConcurrentHashMap<String,Set<String>> cacheTable;

    public MemCacheStorage() {
        this.cacheTable = new ConcurrentHashMap<>(100,1);
    }

    @Override
    public boolean hasKey(String key) { return cacheTable.containsKey(key); }

    @Override
    public Set<String> getData(String key) {
        return cacheTable.get(key);
    }

    @Override
    public void setData(String key, Set<String> data) {
        cacheTable.put(key,data);
    }
}
<commit_msg>fix(MemCacheStorage): Now null value or key is not inserted to cache storage<commit_after>package org.zeropage;

import java.util.Set;
import java.util.concurrent.ConcurrentHashMap;

public class MemCacheStorage implements CacheStorage {
    private ConcurrentHashMap<String,Set<String>> cacheTable;

    public MemCacheStorage() {
        this.cacheTable = new ConcurrentHashMap<>(100,1);
    }

    @Override
    public boolean hasKey(String key) { return cacheTable.containsKey(key); }

    @Override
    public Set<String> getData(String key) {
        return cacheTable.get(key);
    }

    @Override
    public void setData(String key, Set<String> data) {
        if(key!=null && data!=null) {
            cacheTable.put(key, data);
        }
    }
}

{'fraction_non_alphanumeric': 0.10228898426323318, 'fraction_numerical': 0.005722460658082976, 'mean_word_length': 3.5129032258064514, 'pattern_counts': {'":': 0, '<': 13, '<?xml version=': 0, '>': 13, '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': '3393371', 'n_tokens_mistral': 413, 'n_tokens_neox': 408, 'n_words': 96}