<commit_before>var assert = require('assert');
var boomerangCache = require('../src/boomerang-cache');

try {
    var boomerang = boomerangCache.create('test1');
}
catch (ex) {
    console.log(ex);
}

describe('Core -', function () {

    it('Testing set() and get()', function () {
        var key = "boomerang_key",
            value = "boomerang_value";

        boomerang.set(key, value);

        if (boomerang.check()) {
            // expect(boomerang.get(key)).toBe(value);
            assert.equal(boomerang.get(key), value, "We expect value to be " + value);<commit_msg>added: before and after functions added in test file.<commit_after>var assert = require('assert');
var boomerangCache = require('../src/boomerang-cache');

try {
    var boomerang = boomerangCache.create('test1');
}
catch (ex) {
    console.log(ex);
}

describe('LocalStorage -', function () {

    before(function() {
        try {
            localStorage.clear();
        }
        catch (ex) {}
    });

    after(function() {
        try {
            localStorage.clear();
        }
        catch (ex) {}
    });

    it('Testing set() and get()', function () {
        var key = "boomerang_key",
            value = "boomerang_value";

        boomerang.set(key, value);

        if (boomerang.check()) {
            // expect(boomerang.get(key)).toBe(value);
            assert.equal(boomerang.get(key), value, "We expect value to be " + value);
{'fraction_non_alphanumeric': 0.16189811584089323, 'fraction_numerical': 0.0013956734124214933, 'mean_word_length': 2.430622009569378, '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': '4126195', 'n_tokens_mistral': 453, 'n_tokens_neox': 442, 'n_words': 93}