<commit_before>const _ = require('lodash');

// ported from the nunjucks urlencode filter
module.exports = function (obj) {
  if (_.isString(obj)) {
    return encodeURIComponent(obj);
  } else {
    let parts;

    if (_.isArray(obj)) {
      parts = obj.map(function (item) {
        return encodeURIComponent(item[0]) + '=' + encodeURIComponent(item[1]);
      });
    } else {<commit_msg>added comment<commit_after>const _ = require('lodash');

// ported from the nunjucks urlencode filter
// note: handlebars-helpers' `encodeURI` doesn't handle arrays or objects
module.exports = function (obj) {
  if (_.isString(obj)) {
    return encodeURIComponent(obj);
  } else {
    let parts;

    if (_.isArray(obj)) {
      parts = obj.map(function (item) {
        return encodeURIComponent(item[0]) + '=' + encodeURIComponent(item[1]);
      });
    } else {
{'fraction_non_alphanumeric': 0.14685314685314685, 'fraction_numerical': 0.004662004662004662, 'mean_word_length': 3.38265306122449, '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': '4194918', 'n_tokens_mistral': 272, 'n_tokens_neox': 281, 'n_words': 63}