<commit_before>/*
 * This file is part of the Spludo Framework.
 * Copyright (c) 2009 DracoBlue, http://dracoblue.net/
 *
 * Licensed under the terms of MIT License. For the full copyright and license
 * information, please see the LICENSE file in the root folder.
 */

/**
 * @class The memory storage.
 * 
 * @since 0.1 
 * @author DracoBlue
 */
MemoryStorage = function(name, options) {
    this.values = {};

    this.setOptions(options);

    storage_manager.addStorage(name, this);
};

process.mixin(true, MemoryStorage.prototype, Options.prototype, Logging.prototype);

MemoryStorage.prototype.set = function(key, value) {
   this.values[key] = value; 
};

MemoryStorage.prototype.get = function(key) {
   return this.values[key]; 
};

MemoryStorage.prototype.has = function(key) {
   return typeof this.values[key] !== "undefined"; 
};

MemoryStorage.prototype.remove = function(key) {
   delete this.values[key]; 
};<commit_msg>Coding standards.<commit_after>/*
 * This file is part of the Spludo Framework.
 * Copyright (c) 2009 DracoBlue, http://dracoblue.net/
 *
 * Licensed under the terms of MIT License. For the full copyright and license
 * information, please see the LICENSE file in the root folder.
 */

/**
 * @class The memory storage.
 * 
 * @since 0.1
 * @author DracoBlue
 */
MemoryStorage = function(name, options) {
    this.values = {};

    this.setOptions(options);

    storage_manager.addStorage(name, this);
};

process.mixin(true, MemoryStorage.prototype, Options.prototype, Logging.prototype);

MemoryStorage.prototype.set = function(key, value) {
    this.values[key] = value;
};

MemoryStorage.prototype.get = function(key) {
    return this.values[key];
};

MemoryStorage.prototype.has = function(key) {
    return typeof this.values[key] !== "undefined";
};

MemoryStorage.prototype.remove = function(key) {
    delete this.values[key];
};
{'fraction_non_alphanumeric': 0.13265849760255727, 'fraction_numerical': 0.006393180607352157, 'mean_word_length': 4.021390374331551, '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': '5134066', 'n_tokens_mistral': 586, 'n_tokens_neox': 562, 'n_words': 151}