<commit_before>'use strict';
const redis=require('redis');
const genio=require('../lib');
const client=redis.createClient();
genio(function*(){
    let val;
    let redis=new genio.Context(client);
    console.log(redis);
    val='works with Redis';
    yield redis.set('gen-io',val);
    val=yield redis.get('gen-io');
    console.log(`gen-io ${val}`);
});/*
client.set('ggg','val',function(err){
    if(err){
        console.error(err);
    }
    client.get('ggg',function(err,val){
        if(err){
            console.error(err);
        }
        console.log(val);
        process.exit(0);
    })
});*/<commit_msg>added logging<commit_after>'use strict';
const redis=require('redis');
const genio=require('../lib');
const client=redis.createClient();
genio(function*(){
    let val;
    console.log('creating context from Redis client');
    let redis=new genio.Context(client);
    console.log('context is ', redis);
    val='works with Redis';
    yield redis.set('gen-io',val);
    console.log('set value');
    val=yield redis.get('gen-io');
    console.log('get value');
    console.log(`gen-io ${val}`);
});/*
client.set('ggg','val',function(err){
    if(err){
        console.error(err);
    }
    client.get('ggg',function(err,val){
        if(err){
            console.error(err);
        }
        console.log(val);
        process.exit(0);
    })
});*/
{'fraction_non_alphanumeric': 0.2010233918128655, 'fraction_numerical': 0.0014619883040935672, 'mean_word_length': 3.111111111111111, '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': '5475658', 'n_tokens_mistral': 467, 'n_tokens_neox': 466, 'n_words': 76}