<commit_before>var Duplex = require('readable-stream').Duplex;
var Readable = require('readable-stream').Readable;
var Writable = require('readable-stream').Writable;

module.exports = function (elem) {
    var welem = {};
    
    welem.getAttribute = function (key, cb) {
        var value = elem.getAttribute(key);
        if (cb) cb(value);
        return value;
    };
    
    welem.getAttributes = function (cb) {
        var attrs = elem.getAttributes();
        if (cb) cb(attrs);
        return attrs;
    };
    
    welem.setAttribute = function (key, value) {
        elem.setAttribute(key, value);
    };
    
    welem.removeAttribute = function (key) {
        elem.removeAttribute(key);
    };
    
    welem.createReadStream = function (opts) {<commit_msg>patch through the name<commit_after>var Duplex = require('readable-stream').Duplex;
var Readable = require('readable-stream').Readable;
var Writable = require('readable-stream').Writable;

module.exports = function (elem) {
    var welem = {};
    
    welem.name = elem.name;
    
    welem.getAttribute = function (key, cb) {
        var value = elem.getAttribute(key);
        if (cb) cb(value);
        return value;
    };
    
    welem.getAttributes = function (cb) {
        var attrs = elem.getAttributes();
        if (cb) cb(attrs);
        return attrs;
    };
    
    welem.setAttribute = function (key, value) {
        elem.setAttribute(key, value);
    };
    
    welem.removeAttribute = function (key) {
        elem.removeAttribute(key);
    };
    
    welem.createReadStream = function (opts) {
{'fraction_non_alphanumeric': 0.13081761006289308, 'fraction_numerical': 0.0, 'mean_word_length': 2.504405286343612, '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': '3541415', 'n_tokens_mistral': 481, 'n_tokens_neox': 484, 'n_words': 105}