<commit_before>(function() {
  'use strict';

  angular
      .module('testGrowth')
      .factory('carsApi', carsApi);

  /** @ngInject */
  function carsApi($q, $resource) {
    var defered = null;
    var apiUrl = '/data/cars.json';
    var service = {
      apiUrl: apiUrl,
      getCars: getCars
    };
    var carsMethods = {
      get:{isArray: true}
    };
    return service;

    function getCars() {
      defered = $q.defer();
      var Data = $resource(apiUrl,{},carsMethods);
      Data.get({isArray: false},
        function(response) {
          var cars = [];
          angular.forEach(response, function(e){ cars.push(e); });
          defered.resolve(cars);
        },
        function(response){
          return defered.reject(response);<commit_msg>Relative URL in CarsApi<commit_after>(function() {
  'use strict';

  angular
      .module('testGrowth')
      .factory('carsApi', carsApi);

  /** @ngInject */
  function carsApi($q, $resource) {
    var defered = null;
    var apiUrl = '../data/cars.json';
    var service = {
      apiUrl: apiUrl,
      getCars: getCars
    };
    var carsMethods = {
      get:{isArray: true}
    };
    return service;

    function getCars() {
      defered = $q.defer();
      var Data = $resource(apiUrl,{},carsMethods);
      Data.get({isArray: false},
        function(response) {
          var cars = [];
          angular.forEach(response, function(e){ cars.push(e); });
          defered.resolve(cars);
        },
        function(response){
          return defered.reject(response);
{'fraction_non_alphanumeric': 0.15077319587628865, 'fraction_numerical': 0.0, 'mean_word_length': 2.2626050420168067, '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': '7478214', 'n_tokens_mistral': 493, 'n_tokens_neox': 474, 'n_words': 98}