<commit_before>'use strict';

class ResponseHeader {
    constructor(systemProps, metaProps, optionalProps) {
        this['x-ms-version'] = '2016-05-31';
        this['Date'] = new Date().toGMTString();
        systemProps = systemProps || {};
        metaProps = metaProps || {};
        optionalProps = optionalProps || {};
        Object.keys(systemProps).forEach(key => {
            this[key] = systemProps[key];
        });
        Object.keys(optionalProps).forEach(key => {
            this[key] = optionalProps[key];
        });
        Object.keys(metaProps).forEach((key) => {
            this[`x-ms-meta-${key}`] = metaProps[key]; 
        });
    }
}

module.exports = ResponseHeader;<commit_msg>Content-Length is always set to zero by default unless explicitly overwritten.<commit_after>'use strict';

class ResponseHeader {
    constructor(systemProps, metaProps, optionalProps) {
        this['x-ms-version'] = '2016-05-31';
        this['Date'] = new Date().toGMTString();
        this['Content-Length'] = 0;
        systemProps = systemProps || {};
        metaProps = metaProps || {};
        optionalProps = optionalProps || {};
        Object.keys(systemProps).forEach(key => {
            this[key] = systemProps[key];
        });
        Object.keys(optionalProps).forEach(key => {
            this[key] = optionalProps[key];
        });
        Object.keys(metaProps).forEach((key) => {
            this[`x-ms-meta-${key}`] = metaProps[key]; 
        });
    }
}

module.exports = ResponseHeader;
{'fraction_non_alphanumeric': 0.1623931623931624, 'fraction_numerical': 0.011176857330703484, 'mean_word_length': 2.482837528604119, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 9, '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': '3683038', 'n_tokens_mistral': 442, 'n_tokens_neox': 429, 'n_words': 69}