<commit_before>'use strict';

(function(module) {

  var uberObject = {};

  uberObject.dataAll = [];

  uberObject.getInfo = function() {
    var longitude = '-122.6765';
    var latitude = '45.5231';
    var ajaxQuery = {
      //url: 'http://localhost:3000/uber/' + latitude + '/' + longitude,
      url: 'data/uber.json',
      type: 'GET',
      success: function(data, textStatus, jqXHR) {
        //uberObject.dataAll = data.times;
        uberObject.dataAll = data;
        console.log(data);
        console.log(textStatus);
        console.log(jqXHR);
      },
      error: function(jqXHR, textStatus, errorThrown) {
        console.log('What happened?');
        console.log(jqXHR, textStatus, errorThrown);
      }
    };
    $.ajax(ajaxQuery);
  };

  module.uberObject = uberObject;
  uberObject.getInfo();
})(window);<commit_msg>modified uber-api to call the json local file<commit_after>'use strict';

(function(module) {

  var uberObject = {};

  uberObject.dataAll = [];
  
  uberObject.getInfo = function() {
    var longitude = '-122.6765';
    var latitude = '45.5231';
    var ajaxQuery = {
      //url: 'http://localhost:3000/uber/' + latitude + '/' + longitude,
      url: 'data/uber.json',
      type: 'GET',
      success: function(data, textStatus, jqXHR) {
        //uberObject.dataAll = data.times;
        uberObject.dataAll = data;
        console.log(data);
        console.log(textStatus);
        console.log(jqXHR);
      },
      error: function(jqXHR, textStatus, errorThrown) {
        console.log('What happened?');
        console.log(jqXHR, textStatus, errorThrown);
      }
    };
    $.ajax(ajaxQuery);
  };

  module.uberObject = uberObject;
  uberObject.getInfo();
})(window);
{'fraction_non_alphanumeric': 0.15737514518002324, 'fraction_numerical': 0.019744483159117306, 'mean_word_length': 2.5970772442588728, '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': '3483702', 'n_tokens_mistral': 608, 'n_tokens_neox': 554, 'n_words': 104}