<commit_before>'use strict';


const levels = [
  'info',
  'log',
  'warn',
  'error',
];

// Since we are setting members dynamically, consumers must not rely on references to logger.* functions (they can change)
// but on reference to logger instead
const logger = {};
const setLogger = ({ logger: newLogger = defaultLogger } = {}) => {
  levels.forEach(level => {
    logger[level] = newLogger(level);
  });
};

// Do not create a new function, so we do not pollute the stack trace
const defaultLogger = level => global.console[level].bind(global.console);
<commit_msg>Fix line width<commit_after>'use strict';


const levels = [
  'info',
  'log',
  'warn',
  'error',
];

// Since we are setting members dynamically, consumers must not rely on
// references to logger.* functions (they can change)
// but on reference to logger instead
const logger = {};
const setLogger = ({ logger: newLogger = defaultLogger } = {}) => {
  levels.forEach(level => {
    logger[level] = newLogger(level);
  });
};

// Do not create a new function, so we do not pollute the stack trace
const defaultLogger = level => global.console[level].bind(global.console);

{'fraction_non_alphanumeric': 0.1373913043478261, 'fraction_numerical': 0.0, 'mean_word_length': 3.9188034188034186, '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': '7213700', 'n_tokens_mistral': 329, 'n_tokens_neox': 326, 'n_words': 122}