<commit_before>var APIKeyCheck = require('./apiKeyCheck');
var Geocoder = require('leaflet-geocoder-mapzen/src/core');
var corslite = require('@mapbox/corslite');

Geocoder.prototype.serialize = function (params) {
  var data = '';

  for (var key in params) {
    if (params.hasOwnProperty(key)) {
      var param = params[key];
      var type = param.toString();
      var value;

      if (data.length) {
        data += '&';
      }

      switch (type) {
        case '[object Array]':
          value = (param[0].toString() === '[object Object]') ? JSON.stringify(param) : param.join(',');
          break;
        case '[object Object]':
          value = JSON.stringify(param);
          break;
        case '[object Date]':
          value = param.valueOf();
          break;
        default:
          value = param;<commit_msg>ditched the namespace for corslite<commit_after>var APIKeyCheck = require('./apiKeyCheck');
var Geocoder = require('leaflet-geocoder-mapzen/src/core');
var corslite = require('corslite');

Geocoder.prototype.serialize = function (params) {
  var data = '';

  for (var key in params) {
    if (params.hasOwnProperty(key)) {
      var param = params[key];
      var type = param.toString();
      var value;

      if (data.length) {
        data += '&';
      }

      switch (type) {
        case '[object Array]':
          value = (param[0].toString() === '[object Object]') ? JSON.stringify(param) : param.join(',');
          break;
        case '[object Object]':
          value = JSON.stringify(param);
          break;
        case '[object Date]':
          value = param.valueOf();
          break;
        default:
          value = param;
{'fraction_non_alphanumeric': 0.152753108348135, 'fraction_numerical': 0.0011841326228537595, 'mean_word_length': 2.2751937984496124, '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': '489867', 'n_tokens_mistral': 503, 'n_tokens_neox': 492, 'n_words': 121}