<commit_before>define(function (require) {

  'use strict';

  /**
   * Module exports
   */

  return withSoda;

  /**
   * Module function
   */

  function withSoda() {
    this.attributes({
      SODABaseURI: null
    });

    this.querySODA = function querySODA(dataset, params) {
      params = params || {};
      var data = {
        callback: '?'
      };
      if (params.select) {
        data.$select = params.select.join(',');
      }
      if (params.filter) {
        var key;
        for (key in params.filter) {
          if (params.filter.hasOwnProperty(key)) {
            data[key] = params.filter[key].toString();
          }
        }
      }
      if (params.where) {
        data.$where = params.where;
      }
      return $.getJSON(
        this.attr.SODABaseURI + '/resource/' + dataset + '.json',<commit_msg>don't need the callback for SODA queries<commit_after>define(function (require) {

  'use strict';

  /**
   * Module exports
   */

  return withSoda;

  /**
   * Module function
   */

  function withSoda() {
    this.attributes({
      SODABaseURI: null
    });

    this.querySODA = function querySODA(dataset, params) {
      params = params || {};
      var data = {
      };
      if (params.select) {
        data.$select = params.select.join(',');
      }
      if (params.filter) {
        var key;
        for (key in params.filter) {
          if (params.filter.hasOwnProperty(key)) {
            data[key] = params.filter[key].toString();
          }
        }
      }
      if (params.where) {
        data.$where = params.where;
      }
      return $.getJSON(
        this.attr.SODABaseURI + '/resource/' + dataset + '.json',
{'fraction_non_alphanumeric': 0.14609421586165772, 'fraction_numerical': 0.0, 'mean_word_length': 1.7920133111480865, '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': '2335284', 'n_tokens_mistral': 531, 'n_tokens_neox': 510, 'n_words': 104}