<commit_before>package roart.common.inmemory.redis;

import redis.clients.jedis.Jedis;
import roart.common.constants.Constants;
import roart.common.inmemory.model.Inmemory;

public class InmemoryJedis extends Inmemory {

    Jedis jedis;
    
    public InmemoryJedis(String server) {
        super(server);
        jedis = new Jedis(server);
    }

    @Override
    protected String getServer() {
        return Constants.REDIS;
    }

    @Override
    public int getLimit() {
        return 512000000;
    }

    @Override
    protected void set(String key, String value) {
        jedis.set(key, value);
    }

    @Override
    protected String get(String key) {
        String string = jedis.get(key);
        return string;
    }

    @Override
    protected void del(String key) {
        jedis.del(key);
    }<commit_msg>Redis size fix, for communication with small msg and data in memory (I3).<commit_after>package roart.common.inmemory.redis;

import redis.clients.jedis.Jedis;
import roart.common.constants.Constants;
import roart.common.inmemory.model.Inmemory;

public class InmemoryJedis extends Inmemory {

    Jedis jedis;
    
    public InmemoryJedis(String server) {
        super(server);
        jedis = new Jedis(server);
    }

    @Override
    protected String getServer() {
        return Constants.REDIS;
    }

    @Override
    public int getLimit() {
        return 256000000;
    }

    @Override
    protected void set(String key, String value) {
        jedis.set(key, value);
    }

    @Override
    protected String get(String key) {
        String string = jedis.get(key);
        return string;
    }

    @Override
    protected void del(String key) {
        jedis.del(key);
    }
{'fraction_non_alphanumeric': 0.09175377468060394, 'fraction_numerical': 0.011033681765389082, 'mean_word_length': 2.502032520325203, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, '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': '4558953', 'n_tokens_mistral': 552, 'n_tokens_neox': 534, 'n_words': 130}