<commit_before>define([
  'Class',
  'jquery'
], function(Class, $) {

	var CONVERTER_URL = "http://ogre.adc4gis.com/convert";

  var ShapefileService = Class.extend({

    init: function(options) {
      options = options || {};
      this.shapefile = options.shapefile;
    },

    toGeoJSON: function() {
      var deferred = $.Deferred();

			var xhr = new XMLHttpRequest();
			xhr.open("POST", CONVERTER_URL, true);
			xhr.onreadystatechange = function() {
				if (xhr.readyState == 4 && xhr.status == 200) {
					deferred.resolve(JSON.parse(xhr.responseText));
				}
			};

      var formData = new FormData();
      formData.append('upload', this.shapefile);
			xhr.send(formData);

      return deferred.promise();
    }

  });

  return ShapefileService;

});
<commit_msg>Tabs -> Spaces<commit_after>define([
  'Class',
  'jquery'
], function(Class, $) {

  var CONVERTER_URL = "http://ogre.adc4gis.com/convert";

  var ShapefileService = Class.extend({

    init: function(options) {
      options = options || {};
      this.shapefile = options.shapefile;
    },

    toGeoJSON: function() {
      var deferred = $.Deferred();

      var xhr = new XMLHttpRequest();
      xhr.open("POST", CONVERTER_URL, true);
      xhr.onreadystatechange = function() {
        if (xhr.readyState == 4 && xhr.status == 200) {
          deferred.resolve(JSON.parse(xhr.responseText));
        }
      };

      var formData = new FormData();
      formData.append('upload', this.shapefile);
      xhr.send(formData);

      return deferred.promise();
    }

  });

  return ShapefileService;

});

{'fraction_non_alphanumeric': 0.157035175879397, 'fraction_numerical': 0.00628140703517588, 'mean_word_length': 2.7838479809976246, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 4, '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': '1787367', 'n_tokens_mistral': 593, 'n_tokens_neox': 520, 'n_words': 95}