<commit_before>define(["underscore", "jquery"], function(_, $) {
  return function (averageCartype) {

    var public = {};
    var private = {};

    private.createObject = function (averageCartype) {
      var queryObject = {
        c: [],
        sc: null,
        p: null,
        ecol: []
      };

      for (var carclass in averageCartype.carclass)
        queryObject.c.push(carclass);

      for (var color in averageCartype.colors)
        queryObject.ecol.push(color);

      var seatsRange = averageCartype.min_seats + ":" + averageCartype.max_seats;
      queryObject.sc = seatsRange;

      var priceRange = averageCartype.min_price + ":" + averageCartype.max_price;
      queryObject.p = priceRange;

      return queryObject;
    };

    private.createURL = function (queryObject) {
      var url = "http://m.mobile.de/svc/s/?";
      var params = $.param(queryObject);
      url = url.concat(params);

      return url;
    };

    public.getResults = function (averageCartype) {
      var queryObject = private.createObject(averageCartype);
      var url = private.createURL(queryObject);

      var results = $.getJSON(url, function(json) {
        return json;
      });

      return results;
    };

    return public;
  };
});
<commit_msg>return promise without success handler<commit_after>define(["underscore", "jquery"], function(_, $) {
  return function () {

    var public = {};
    var private = {};

    private.createObject = function (averageCartype) {
      var queryObject = {
        c: [],
        sc: null,
        p: null,
        ecol: []
      };

      for (var carclass in averageCartype.carclass)
        queryObject.c.push(carclass);

      for (var color in averageCartype.colors)
        queryObject.ecol.push(color);

      var seatsRange = averageCartype.min_seats + ":" + averageCartype.max_seats;
      queryObject.sc = seatsRange;

      var priceRange = averageCartype.min_price + ":" + averageCartype.max_price;
      queryObject.p = priceRange;

      return queryObject;
    };

    private.createURL = function (queryObject) {
      var url = "http://m.mobile.de/svc/s/?";
      var params = $.param(queryObject);
      url = url.concat(params);

      return url;
    };

    public.getResults = function (averageCartype) {
      var queryObject = private.createObject(averageCartype);
      var url = private.createURL(queryObject);

      return $.getJSON(url);
    };

    return public;
  };
});

{'fraction_non_alphanumeric': 0.12601626016260162, 'fraction_numerical': 0.0, 'mean_word_length': 2.5007112375533427, 'pattern_counts': {'":': 4, '<': 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': '2477567', 'n_tokens_mistral': 761, 'n_tokens_neox': 726, 'n_words': 155}