<commit_before>define(['flight/lib/component'], function(defineComponent) {

  var CurrentLocation = defineComponent(currentLocation);

  function currentLocation() {

    this.defaultAttrs({
      enableHighAccuracy: false,
      timeout: Infinity,
      maximumAge: 0
    });

    this.isSupported = function() {
      return 'geolocation' in navigator;
    };

    this.locationUpdate = function(position) {
      var position = {
        coords: {
          latitude: position.coords.latitude,
          longitude: position.coords.longitude
        }
      };
      this.trigger('location-current', position);
    };
<commit_msg>Adding rest of the coords object<commit_after>define(['flight/lib/component'], function(defineComponent) {

  var CurrentLocation = defineComponent(currentLocation);

  function currentLocation() {

    this.defaultAttrs({
      enableHighAccuracy: false,
      timeout: Infinity,
      maximumAge: 0
    });

    this.isSupported = function() {
      return 'geolocation' in navigator;
    };

    this.locationUpdate = function(position) {
      this.trigger('location-current', {
        timestamp: position.timestamp,
        coords: {
          latitude: position.coords.latitude,
          longitude: position.coords.longitude,
          altitude: position.coords.altitude,
          accuracy: position.coords.accuracy
          altitudeAccuracy: position.coords.altitudeAccuracy
          heading: position.coords.heading
          speed: position.coords.speed
        }
      });
    };

{'fraction_non_alphanumeric': 0.10471204188481675, 'fraction_numerical': 0.0013089005235602095, 'mean_word_length': 2.7021791767554477, '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': '1625803', 'n_tokens_mistral': 430, 'n_tokens_neox': 409, 'n_words': 76}