<commit_before>if (typeof(std) === "undefined") /** @namespace */ std = {};

/* Map data structure
 * Constructor:
 *   e.g. X = new std.map('mapTest'); 
 *
 * APIs:
 *   set(key,value)      : Write element to memory
 *   copy(map)           : Write all elements in a given associate array to this map (in memory)
 *                           e.g. M = {'a':'x','b':'y'};  X.copy(M); 
 *   get(key)            : Read element with given key from memory, return the value
 *   get(key,cb)         : Read element with given key from memory first, if not exists, read
 *                         from backend storage then. Callback: cb(success, value)   
 *   erase(key)          : Erase element from memory
 *   clear()             : Clear content in memory
 *   flush(cb)           : Flush changes to backend storage. Callback: cb(success)
 *   retrieve(keys,cb)   : Retrieve elements with given list of keys from backend to memory
 *                         Callback: cb(success)
 *   restore(cb)         : Restore all elements from backend to memory. Callback: cb(success)
 *   reset(cb)           : Clear content in both memory and backend. Callback: cb(success)
 *   name()              : Return name of the map
 *   data()              : Return all elements in memory, as an associate array
 *   keys()              : Return all keys in both memory and backend, as an array.
 *   size()              : Return number of elements in memory and backend
 *   empty()             : Return true if map is emty   
 */

std.map = function(name) 
{
    this._type = 'map';
    this._name = name;
    this._mapName = keyName(this._type,this._name);<commit_msg>change description in map.em<commit_after>if (typeof(std) === "undefined") /** @namespace */ std = {};

/* Map data structure
 * Constructor:
 *   e.g. X = new std.map('mapTest'); 
 *
 * APIs:
 *   set(key,value)      : Write element to memory
 *   copy(map)           : Write all elements in given associative array to this map (in memory)
 *                           e.g. M = {'a':'x','b':'y'};  X.copy(M); 
 *   get(key)            : Read element with given key from memory, return the value
 *   get(key,cb)         : Read element with given key from memory first, if not exists, read
 *                         from backend storage then. Callback: cb(success, value)   
 *   erase(key)          : Erase element from memory
 *   clear()             : Clear content in memory
 *   flush(cb)           : Flush changes to backend storage. Callback: cb(success)
 *   retrieve(keys,cb)   : Retrieve elements with given list of keys from backend to memory
 *                         Callback: cb(success)
 *   restore(cb)         : Restore all elements from backend to memory. Callback: cb(success)
 *   reset(cb)           : Clear content in both memory and backend. Callback: cb(success)
 *   name()              : Return name of the map
 *   data()              : Return all elements in memory, as an associative array
 *   keys()              : Return all keys in both memory and backend, as an array.
 *   size()              : Return number of elements in memory and backend
 *   empty()             : Return true if map is emty   
 */

std.map = function(name) 
{
    this._type = 'map';
    this._name = name;
    this._mapName = keyName(this._type,this._name);
{'fraction_non_alphanumeric': 0.10695992768906297, 'fraction_numerical': 0.0, 'mean_word_length': 2.03473491773309, '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': '4643117', 'n_tokens_mistral': 917, 'n_tokens_neox': 902, 'n_words': 345}